rvirtualenv
rvirtualenv copied to clipboard
setuptools_dummy generate scripts with fixed shebang #!/usr/bin/python2
PYPI packaged version of RVirtualEnv (0.3.1) always generate scripts(proj/bin/*.py ) with shebang #!/usr/bin/python2 ,which executable is not in the system, with or without --python option.
When I try to use rvirtualenv.py directory from github version, shebang of generated scripts (myproj/bin/*.py ) is appropriate executable(it is my pythonbrew's python). But "rvirtualenv" command in "python setup.py install" version from same repository source also generated "#!/usr/bin/python2" shebang same as PYPI version.
- OK: directly use rvirtualenv.py from respository source
- INVALID: installed rvirtualenv command from same repository source
So I think the problem is occured in (root) setup.py of RVirtualEnv.
When I cut 'setuptools_dummy', line of setup_requires from root setup.py,
then installed "rvirtualenv" command generate appropriate shebang.
My tested python env is:
- Python-2.7.2 installed by pythonbrew(it contains distribute and pip) on ubuntu amd64 11.04
Sincerely.
Good work, thanks for this issue!
It sounds more like a problem of setuptools_dummy, so I will probably remove them as a dependency (and fix setuptools_dummy later :)).
I hope this is why system-wide instalation of rvirtualenv (aka sudo python setup.py install) is broken now.
Thanks for quick reply. I hope you fix PYPI uploaded version soon.
I think your design dicision is much better than tradisional virtualenv, especially to support growing site.py module. I want to recommend RVirtualEnv instead of virtualenv, so it need to use with easy_install or pip install standard way.
i have some broken environment as well, so chasing the bug will be easier. hope i'll fix it pretty soon.
thx for you patience ;)
ha, i have finally found the problem (and some time to fix it :)).
it is not about setuptools-dummy itself, but about adding some files during build time, that should be ignored
but i feel MANIFEST.in is better approach, so i'll try to switch!