-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Cannot override virtualenv.ini --copies values on commandline #1784
Comments
Thanks for reporting, will look into this; but feel free to put in a PR if you have availability. |
So the problem here is that in this case both copies and symlinks are set to True, and in such case we favour copy. The options object sadly doesn't know the source of the setting (ini file, env-var or cli flag) so we can't easily tell which to favour, so we picked the option that's more robust... in this case that's favouring copy. Not sure how to fix this. |
#1785 is an attempt to address this. |
Hello, this now has been released via https://pypi.org/project/virtualenv/20.0.19/ |
Issue
If I set the
--copies
parameter in~/.config/virtualenv/virtualenv.ini
I cannot override it later with--symlinks
on the commandline.Steps to Reproduce
Create
virtualenv.ini
file containingthen run
As you can see, there are no symlinks in any of the three virtualenvs. I would expect the last virtualenv to have symlinks instead of copies.
Remove
virtualenv.ini
and retryand the expected behaviour shows.
Environment
Provide at least:
pip list
of the host python wherevirtualenv
is installed:Output of the virtual environment creation
Make sure to run the creation with
-vvv --with-traceback
:The text was updated successfully, but these errors were encountered: