question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Poetry install takes too long and installs the package again unnecessarily

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

Issue

I’m wondering why it takes 13-30 seconds to install my package (on two different machines). This occurs when the package and it’s dependencies are already installed. `$ time poetry install -vvv Using virtualenv: /Users/apayne/Envs/smithers Installing dependencies from lock file

Nothing to install or update

  • Skipping markupsafe (1.1.0) Already installed
  • Skipping click (7.0) Already installed
  • Skipping itsdangerous (1.1.0) Already installed
  • Skipping jinja2 (2.10) Already installed
  • Skipping werkzeug (0.14.1) Already installed
  • Skipping aniso8601 (4.0.1) Already installed
  • Skipping flask (1.0.2) Already installed
  • Skipping jsonschema (2.6.0) Already installed
  • Skipping pytz (2018.7) Already installed
  • Skipping six (1.11.0) Already installed
  • Skipping flask-restplus (0.12.1) Already installed
  • Skipping passlib (1.7.1) Already installed
  • Skipping peewee (3.7.1) Already installed
  • Installing smithers (0.1.0)

real 0m29.542s user 0m5.344s sys 0m2.370s`

Smithers is the name of the package I’m installing with poetry. The installing smithers step takes the majority of the time. Is poetry doing anything but creating a symlink? I don’t understand why this should take so long. If the package is already installed in editable mode, why does poetry try installing it again?

Much thanks!

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

11reactions
sdispatercommented, Dec 12, 2018

The install command installs the current project in editable mode by internally creating a temporary setup.py file and executing pip install -e .. It does it each time install is executed to ensure that any new elements like entrypoints are properly installed.

I plan on adding an option to install to disable the installation of the current project.

0reactions
sdispatercommented, Dec 15, 2018

@bertjwregeer This is one way to go, yes, and an easy one. I can probably target that for the 1.0.0 release.

Read more comments on GitHub >

github_iconTop Results From Across the Web

FAQ | Documentation | Poetry - Python dependency ...
FAQ Why is the dependency resolution process slow? While the dependency resolver at the heart of Poetry is highly optimized and should be...
Read more >
Pip installs unnecessarily conflicting dependencies for a ...
1 and setuptools 39.0.1 installed, and I run pip install . --no-cache-dir so every dependency will be downloaded anew. My poetry version is...
Read more >
Solving dependency management in Python with Poetry
Each time you run pip install your dependencies dependencies are at risk of being installed with a different version. Freezing all dependencies.
Read more >
Pipenv: promises a lot, delivers very little | Chris Warrick
The install took 10 minutes and 7 seconds, 9:50 of which were taken by locking dependencies and installing the locked dependencies — so,...
Read more >
3. How to package a Python
poetry install actually installs packages in “editable mode”, which means that it installs a link to your package's code on your computer (rather...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found