-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Avoid copying files from local directory #4940
Comments
Please specify which pipenv version and operating system you use. |
I'm using |
I have the same problem, with MWE: mkdir test-pipenv
cd test-pipenv
printf "from setuptools import setup\nsetup(name='test-pipenv')" > setup.py
pipenv install . Output:
I believe the solution proposed by OP, which is in progress at #4966, would resolve this |
|
Is your feature request related to a problem? Please describe.
I have a dependency in my Pipfile which target a local path:
When I try to install dependencies
pipenv install
, it's really slow (> 10min for a single dependency).Moreover a warning is shown on the console:
I've investigated a bit and the root of the problem seems to be an issue with pip.
When building projects from local directories, pip first copies them to a temporary location.
The problem is that my folder is really big (> 400 Mo). It contains various non python files. It contains also a
.venv
folder which alone weighs 200Mo. So the copy phase is the bottleneck.The issue has been fixed on pip by removing the copying phase. This is the issue mentioned in the previous warning. At first it was a new option (
--use-feature=in-tree-build
) and in pip 22.0.2, this is the default behaviour.However the issue is still present in pipenv. It looks like pipenv is using its own copy of pip and it's not up to date.
Describe the solution you'd like
Updating https://github.com/pypa/pipenv/tree/main/pipenv/patched with the latest version of pip will solve my problem.
Describe alternatives you've considered
If it's not an option, I would like to pass arguments to the pip invoked by pipenv. If I can send the argument
--use-feature=in-tree-build
to pip, it should work as expected.If it's also not an option, I would appreciate any workaround to help me to decrease the build time.
The text was updated successfully, but these errors were encountered: