-
-
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
upload virtualenv.py to https://bootstrap.pypa.io/ #632
Comments
The problem is that |
I was able to make it work with this:
|
Yeah, that works. At that point it's not really much simpler than the recommended approach, though ;-) |
That's why this issue exists. =) |
Sorry, I don't follow. The recommended approach is simpler, what are you proposing? Obviously not that your alternative (more complex) approach be used instead. Do you have a suggestion for simplifying the install process? The title of the issue implies that you think having |
I propose this:
It is the most simple way to bootstrap everything. It will help to get custom Python installation on systems with no |
It is also possible to use |
And where it will install |
Into the user site packages if there is a --user
|
But it won't work. You can use Sorry if I'm not following your proposal. I assume you know this, but https://raw.githubusercontent.com/pypa/virtualenv/master/virtualenv.py is the current master release of virtualenv, so that would be the same as the https://bootstrap.pypa.io/virtualenv.py you propose. So your proposal is essentially to have a "nicer" URL for that file, is that right? If so, then I'm -1 on that, as I don't want to have to provide support for people who try to use it without understanding the limitations. There is a good reason the documentation says, in a highlighted note:
|
Forgive me if I'm wrong, but couldn't we just embed the wheel files it virtualenv.py and as a fallback if we can't find any restore them to a temp location?
|
@dstufft Yes, that would work. But unpacking takes a lot of time, and having virtualenv be fast is important too (think something like tox that creates lots of virtualenvs). Using the embedded versions as a fallback gives the speed back at the cost of size (the main distribution doubles in size) or maintenance (we maintain two flavours of Basically lots of trade-offs, and honestly I don't see a single-file virtualenv as being so important as to warrant the effort. YMMV, of course. Anyone who wants to try it out can build their own custom virtualenv with the wheels embedded - see https://virtualenv.pypa.io/en/latest/virtualenv.html#creating-your-own-bootstrap-scripts for the details. |
Yea sure. I'm on the fence about if it's worth it or not :)
|
Personally, I wouldn't object to someone making a PR, as long as the current setup remained the default (i.e., the wheels on PyPI remained the same size and were the unbundled format). I don't think it's likely anyone will bother, though. |
The basic aim in this issue, to me, seems to be allowing bootstrapping the build tools without requiring root. The ostensible problem being that currently the tools always need some extra flags provided in order to achieve this, that aren't exactly well-advertised (at least for this purpose). Yet another workaround is to download wheels of Honestly someone could easily write a script to do all that rather easily, that encompasses any of these methods, but what we need to find is the best / most easily supported method. Since AFAIK the @pypa's sentiment is still making the |
Well |
On Thu, Jul 24, 2014 at 9:52 AM, Matt Iversen [email protected]
https://bitbucket.org/techtonik/locally/src/tip/06.get-virtualenv.py?at=default Done. Thanks for the hint with packages. I also encountered another bug:
This check is wrong. My filesystem under Linux doesn't support symlinking, |
Couldn't virtualenv.py download the necessary support stuff when it's not there, to a re-used cache location? I'm very much for a standard bootstrapping solution that requires Python and only Python to be there, too (i.e. use "python -c" to download the bootstrap, so no need for wget or curl either). |
On Sat, Jul 26, 2014 at 2:17 PM, Jürgen Hermann [email protected]
|
This can only work on Python 3.x because it's the only one that validates TLS.
|
Or just embed hashes of particular versions to get with that release of virtualenv.py? |
On Sat, Jul 26, 2014 at 8:37 PM, Matt Iversen [email protected]
|
I have created a experimental project, that enbed "get_pip.py" into a bootstrap file: https://github.com/jedie/bootstrap_env See also: pypa/packaging-problems#55 |
The ideas in issue may resolve #1042. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Just add a comment if you want to keep it open. Thank you for your contributions. |
wget https://bootstrap.pypa.io/virtualenv.py
is much easier thanFrom
use locally from source
at https://virtualenv.pypa.io/en/latest/virtualenv.html#installationThe text was updated successfully, but these errors were encountered: