Large project directories take a long time to install. #6916
Labels
auto-locked
Outdated issues that have been locked by automation
resolution: duplicate
Duplicate of an existing issue/PR
type: enhancement
Improvements to functionality
Environment
I tried updating pip, but it seems my system's a little broken. I don't think it'll make a difference however.
Description
I'm using a Tox like software that creates and installs a lot of virtualenvs to test against. This means I have a folder with a lot of files and data in it. When running
pip install .
pip creates a temporary directory and seems to copy the entire directory into that location.Navigating to the location of the final temporary directory I can see all the files being copied over.
Expected behavior
For the installation to not take over 30 minutes because it's copying files it has no need for.
How to Reproduce
Copy any large directory into a Python project and use
pip install .
.Describe the solution you'd like
Maybe using something similar to building an sdist would work? This is as the following installs fine and in under a minute:
It should be noted that using the
-e
option seems to bypass the requirement to make a temporary directory, and works fine.The text was updated successfully, but these errors were encountered: