我有一个使用virtualenv.create_bootstrap_script()创建的自定义virtualenv脚本。我正在使用旧版本的virtualenv,并且已经愉快地使用curl:curl http://myserver/myvirtualenv | python
部署了enivronment一段时间了。我正在尝试更新到最新的virtualenv,以便我可以获得pip而不会在我自己的脚本中跳过箍。具有讽刺意味的是,这个功能打破了我的卷曲下载,因为新的virtualenv需要virtualenv_support目录,该目录包含setuptools和pip。有没有办法将所有这些打包成一个脚本,以便我可以回到单行安装?我自己可以这样做,但现有的工具很受欢迎。
# server:/root> curl http://mainserver/downloads/myvirtualenv | python26
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 107k 100 107k 0 0 4398k 0 --:--:-- --:--:-- --:--:-- 6065k
New python executable in /root/dctest/bin/python26
Also creating executable in /root/dctest/bin/python
Cannot find a wheel for setuptools
Cannot find a wheel for pip
Installing setuptools, pip...
Complete output from command /root/dctest/bin/python26 -c "import sys, pip; sys...d\"] + sys.argv[1:]))" setuptools pip:
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: No module named pip
----------------------------------------
...Installing setuptools, pip...done.
Traceback (most recent call last):
File "<stdin>", line 2559, in <module>
File "<stdin>", line 826, in main
File "<stdin>", line 994, in create_environment
File "<stdin>", line 962, in install_wheel
File "<stdin>", line 904, in call_subprocess
OSError: Command /root/dctest/bin/python26 -c "import sys, pip; sys...d\"] + sys.argv[1:]))" setuptools pip failed with error code 1
# server:/root>