pypa/virtualenv — Issue #204: --relocatable doesn't work with PyPy
Author: jonashaag
Created: 2011-12-16 17:37:33+00:00
State: open

To reproduce, create a new PyPy virtualenv

```
$ virtualenv2 -p pypy foo
Running virtualenv with interpreter /usr/bin/pypy
New pypy executable in foo/bin/pypy
Installing setuptools............done.
Installing pip...............done.
```

and try to make it relocatable:
```
$ virtualenv2 --relocatable foo
Script foo/bin/pip-2.7 cannot be made relative (it's not a normal script that starts with #!/tmp/foo/bin/python)
Script foo/bin/pip cannot be made relative (it's not a normal script that starts with #!/tmp/foo/bin/python)
[...]
```

The problem is that the shebang uses `pypy` not `python`:
```
$ head -n 1 foo/bin/pip
#!/tmp/foo/bin/pypy
```