Skip to content

poetry re-installs up-to-date packages when virtualenvs.create is false #1711

@jstriebel

Description

@jstriebel
  • I am on the latest Poetry version. (1.0.0b9)

  • I have searched the issues of this repo and believe that this is not a duplicate.

  • If an exception occurs when executing a command, I executed it again in debug mode (-vvv option).

  • OS version and name: Debian buster

  • Poetry version: 1.0.0b9

Issue

Thanks for the great work! With current releases we experience that already up-to-date packages (with the correct versions) are reinstalled by poetry, as it tries to update them. This seems to happen because we don't use poetry's virtualenv feature (using poetry config virtualenvs.create false).

Here's a part of the poetry install output, when running it the second time:

  - Updating humanfriendly (4.18 /usr/local/lib/python3.6/dist-packages -> 4.18)
  - Updating imageio (2.6.1 /usr/local/lib/python3.6/dist-packages -> 2.6.1)
  - Updating importlab (0.5.1 /usr/local/lib/python3.6/dist-packages -> 0.5.1)

It seems that dist-packages can never match the version, so poetry tries to upgrade them, even when the version actually matches.

Output of poetry debug info:

Poetry
Version: 1.0.0b9
Python:  3.6.8

Virtualenv
Python:         3.6.8
Implementation: CPython
Path:           NA

System
Platform: linux
OS:       posix
Python:   /usr

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working as expected

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions