pypa/virtualenv — Issue #224: virtualenv 1.7.1.1 breaks --relocatable for python 2.7.1
Author: cap
Created: 2012-02-17 05:39:57+00:00
State: open

I just upgraded virtualenv on an ubuntu natty system and am no longer able to make relocatable virtualenvs. Downgrading to 1.7 solves the problem, so this was probably introduced with the fix for --relocatable and python 3 in 1.7.1.

~~~
ubuntu@waldzell:~$ python --version
Python 2.7.1+
ubuntu@waldzell:~$ virtualenv --version
1.7.1.1
ubuntu@waldzell:~$ virtualenv ve
New python executable in ve/bin/python
Installing setuptools............done.
Installing pip...............done.
ubuntu@waldzell:~$ virtualenv --relocatable ve
Making script ve/bin/easy_install-2.7 relative
Traceback (most recent call last):
File "/usr/local/bin/virtualenv", line 9, in
load_entry_point('virtualenv==1.7.1.1', 'console_scripts', 'virtualenv')()
File "/usr/local/lib/python2.7/dist-packages/virtualenv.py", line 914, in main
make_environment_relocatable(home_dir)
File "/usr/local/lib/python2.7/dist-packages/virtualenv.py", line 1556, in make_environment_relocatable
fixup_scripts(home_dir)
File "/usr/local/lib/python2.7/dist-packages/virtualenv.py", line 1605, in fixup_scripts
f.write(lines.join('\n').encode('utf-8'))
AttributeError: 'list' object has no attribute 'join'
~~~