Skip to content

Creating virtualenvs from a virtualenv always yells at me #1193

@Julian

Description

@Julian

Creating a virtualenv from within a virtualenv (on PyPy only?) always spits out spurious Path not in prefix warnings, that appear to come from https://github.com/pypa/virtualenv/blob/master/virtualenv.py#L1087.

Functionally, everything appears fine, and from reading the surrounding code their quickly, it seems like the warning is incorrect in this case (and that the next block of code is going to find the correct value), but it's difficult to tell.

Reproducer:

~/Desktop
⊙  rm -rf foo bar && pypy ~/Development/virtualenv/virtualenv.py --quiet foo && echo "DONE" && foo/bin/pypy ~/Development/virtualenv/virtualenv.py --quiet bar                                                                                                                                                                                              Julian@Macnetic
DONE
Path not in prefix '/Users/Julian/Desktop/foo/include' '/usr/local/Cellar/pypy/6.0.0/libexec'

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions