-
-
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
Add an option to propagate --always-copy
to virtualenv
#1929
Comments
It's fair enough to know that the suggested solution to this use case is to use the |
Considering this only matters during env creation, I don’t think it’s a good idea to implement it as an option (yes I know the same can be said to |
Hmm always copy is different from using global site packages right? So if you didn’t do it at env creation you couldn’t just toggle it on? From an api standpoint we’d want to call this something else since calling a cli flag |
IIRC By default, executables are symlinked on POSIX, and copied on Windows, because Windows symlinks are next to useless. The flag forces virtualenv to copy everything on POSIX as well. I don’t know what the use case is (never used it myself). |
The use case was this error installing Python sip module from sources (non the dev part is not pip installable, code generator, header files, distutils extension):
So, wrapping up with the questions:
Having tried both, I think the effort to open the way for this option is not worth the value it offers. The I can close the Issue, but, if there is some interest in the env variable only flag, I have an half done work I can contribute and complete till merged. |
Okay, I'd say lets just leave it alone for now. Thanks for looking into this and for being thorough, it's a big help! |
Just to avoid some more search:
now does the trick. |
@naufraghi Where do you find the magic command? I was thinking about writing it into the documentation, but cannot find it being used anywhere in Pew, virtualenv, and Pipenv 🤔🤔🤔 |
According to pypa/pipenv#1929 and pypa/pipenv#2084, this is an environment variable to control virtualenv behaviour...although I cannot find any reference to this claim. Implementing it for now (but not in master until I can confirm this).
I found the snippet in the linked issue about Vagrant 🤔 🤷♂️ and it works without touching |
pipenv depends on pip, which conflicts with some distro versions of pip, see bug [1]. While at it, workaround lib64 issues on CentOS by passing `--always-copy` when creating the venv [2]. [1] pyenv/pyenv#1141 [2] pypa/pipenv#1929 Change-Id: I6af1a5fdbe8d37f75ab8b09b050449ad432191ad Signed-off-by: Alexandru Avadanii <[email protected]>
* Update docs/submodules/fuel from branch 'master' - [build] Use python -m pip workaround pipenv depends on pip, which conflicts with some distro versions of pip, see bug [1]. While at it, workaround lib64 issues on CentOS by passing `--always-copy` when creating the venv [2]. [1] pyenv/pyenv#1141 [2] pypa/pipenv#1929 Change-Id: I6af1a5fdbe8d37f75ab8b09b050449ad432191ad Signed-off-by: Alexandru Avadanii <[email protected]>
pipenv depends on pip, which conflicts with some distro versions of pip, see bug [1]. While at it, workaround lib64 issues on CentOS by passing `--always-copy` when creating the venv [2]. [1] pyenv/pyenv#1141 [2] pypa/pipenv#1929 Change-Id: I6af1a5fdbe8d37f75ab8b09b050449ad432191ad Signed-off-by: Alexandru Avadanii <[email protected]> (cherry picked from commit 54164b8)
If someone struggling with this nowadays, I found the bug in newer version of
More information about flags here: Virtualenv issue: |
Some packages (
sip
from PyQt in my case), are installing some header files in the virtualenv, currently theinclude/
folder is symlinked to the system non-nt
one, and so non writable.The
virtualenv
script offers the--always-copy
option (active by default onnt
systems) to copy all the files.The
pew
script by default forwards all the unknown arguments tovirtualenv
.I have the local patch working because I'd like to use
pipenv
in my project.NOTE:
venv
has a different argument,--symlinks
/--copies
, with the same use, butpew
currently usesvirtualenv
.--always-copy
option topipenv install
PIPENV_ALWAYS_COPY
env varThe text was updated successfully, but these errors were encountered: