theory
theory copied to clipboard
Force python 2.6 on install (compatibility with 2.7 is an issue in virtualenv)
Please consider the following fix for the issue described below:
On a clean clone, ./install fails as follows.
% ./install.sh
installing theory prerequisites and Python virtual environment to /home/john/Desktop/src/theory//env/
New python executable in /home/john/Desktop/src/theory//env/bin/python
Traceback (most recent call last):
File "/home/john/Desktop/src/theory//env/lib/python2.7/site.py", line 67, in
Narrowing it down, the issue lies in a bug on virtual env (https://bugs.launchpad.net/ubuntu/+source/python-virtualenv/+bug/662611) in which runnig it from py2.7 is the culprit. Case in point, on my system python 2.7 is indeed the default one.
The issue is easily solved forcing the python which executes go-pylons to be 2.6.
Probably this should check more resiliently for the version of the python executable on different environments, but as far as it goes with typical aliasing of python versions (python2.5, python2.6, etc), this works properly.