-
-
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
--download option is problematic as a default #1279
Comments
Although,
Yes, it is, we only pull packages that are free,
This is true, but all those three packages maintain backwards compatibility historically, and there's no intention to change that as far as public API goes. Furthermore, this can also work in your advantage, as a potential security flaw/bug discovered in any of those packages after virtualenv release gets pulled in at creation time.
AFAIK, pip does have a vendored certificate validation, that can be overwritten with an OS packaged certificate. |
Closing this as per above, for now. |
I understand why the option
--download
has been switched on by default but I suggest to reconsider this because it mixes local and online sources of code in a confusing and potentially error-prone way.Virtualenv is a command line tool that has no obvious relation to the internet. Still, running
virtualenv foo
will produce different results based on whether an internet connection is available or not. This alone, IMHO, is enough to disqualify the current default behavior.The current behavior means that when I develop a package in a virtualenv that was created a week ago, and create a fresh virtualenv later on exactly the same unchanged system, I might not get an equivalent environment. In fact, there is no obvious way to recreate the environment from one week ago. My package (that uses setuptools in its setup.py), might be affected by a change of the environment in subtle ways.
Here is a Debian bug report (by a different author) that lists problems with the current default from a different point of view.
If the versions of setuptools or pip in an virtualenv are too old to
pip install
some package, I suggest that an error message is presented to the user that tells how to upgrade these packages manually. This functionality is needed even with the current behavior, because a user might be using an outdated virtualenv to install a package that requires a newer setuptools, say.The text was updated successfully, but these errors were encountered: