Closed
Description
Steps to reproduce:
- Generate a bootstrap script using
virtualenv.create_bootstrap_script()
- Populate a local directory of python packages to look at, include:
- Pip itself
- Any other package whose name begins with "pip-", such as https://github.com/nvie/pip-tools/
- Attempt to create a virtualenv using the bootstrap script generate in step 1 as follows:
python bootstrap.py ./ENV --never-download --extra-search-dir python_packages/
The install_pip
function in the generated bootstrap file will incorrectly pick the other package that begins with "pip-", and treat it as the real pip package to install. Because of this, the real pip is never installed into the virtualenv, and thus the command is unavailable for use.
The regex for finding the package should be more specific, or it should run some sort of test to determine which package is the real pip.
Metadata
Metadata
Assignees
Labels
No labels