Skip to content
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

py25 virtualenv downgrade fails if tox is installed w/ easy_install (as egg) #132

Closed
pytoxbot opened this issue Sep 17, 2016 · 3 comments
Closed

Comments

@pytoxbot
Copy link

@pytoxbot pytoxbot commented Sep 17, 2016

VERSION-INFO: tox 1.6.1, setuptools>=0.9.8, python2.7

Run "tox -e py25" in a virtualenv where tox is installed with easy_install (as egg).
Python2.5 interpreter tries to access "virtualenv.py" that is bundled with tox in the egg, but cannot reach into the zipped egg (with the provided path).

Note the problem occurs before the actual downgrade.

xxx)shell> tox -e py25
GLOB sdist-make: /.../xxx/my_project/setup.py
py25 create: /.../xxx/my_project/.tox/py25
ERROR: invocation failed, logfile: /.../xxx/my_project/.tox/py25/log/py25-0.log
ERROR: actionid=py25
msg=getenv
cmdargs=['/usr/bin/python2.5', '/.../xxx/lib/python2.7/site-packages/tox-1.6.1-py2.7.egg/tox/vendor/virtualenv.py', '--setuptools', '--python', '/usr/bin/python2.5', 'py25']
...
/usr/bin/python2.5: can't open file '/.../xxx/lib/python2.7/site-packages/tox-1.6.1-py2.7.egg/tox/vendor/virtualenv.py': [Errno 20] Not a directory

ERROR: InvocationError: /usr/bin/python2.5 /.../xxx/lib/python2.7/site-packages/tox-1.6.1-py2.7.egg/tox/vendor/virtualenv.py --setuptools --python /usr/bin/python2.5 py25 (see /.../xxx/my_project/.tox/py25/log/py25-0.log)
@pytoxbot
Copy link
Author

@pytoxbot pytoxbot commented Sep 17, 2016

Original comment by @hpk42

fix issue132: removing zip_safe setting (so it defaults to false)
to allow installation of tox via easy_install/eggs. Thanks Jenisys.

→ <<cset 72ba41dbebee>>

@pytoxbot
Copy link
Author

@pytoxbot pytoxbot commented Sep 17, 2016

Original comment by @jenisys

Correct.

If you set "zip_safe=False" in tox's "setup.py" and install it with easy_install, you can run the example above without any problems. Probably the easiest solution.

NOTE: Removing the "zip_safe" attribute from the setup() call has the same effect.

@pytoxbot
Copy link
Author

@pytoxbot pytoxbot commented Sep 17, 2016

Original comment by @hpk42

does this mean tox is just missing a zip_safe=False setting?

@pytoxbot pytoxbot closed this Sep 17, 2016
@tox-dev tox-dev locked and limited conversation to collaborators Jan 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant