Skip to content

--relocatable doesn't work with PyPy #204

Closed
@jonashaag

Description

@jonashaag

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions