##// END OF EJS Templates
Predict the Python version based on $VIRTUAL_ENV...
Predict the Python version based on $VIRTUAL_ENV Try to make prediction of the Python's site-package version used by virtualenv. If predicted path doesn't exist, continue with previous behaviour. This can be useful while working with different Python versions in virtual environments other than system-used (previously provided via `sys.version_info`). Note that this *only* updates $PYTHONPATH, so 3rd-libraries installed in virtualenv will be avialable. However the Python interpreter contiunues to be other than the bundled in the virtualenv (see `init_virtualenv()` docstring).

File last commit:

r13387:3b4dba0a
r26257:2704824e
Show More
setupegg.py
7 lines | 217 B | text/x-python | PythonLexer
#!/usr/bin/env python
"""Wrapper to run setup.py using setuptools."""
# Import setuptools and call the actual setup
import setuptools
with open('setup.py', 'rb') as f:
exec(compile(f.read(), 'setup.py', 'exec'))