Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix creation of entry points when path contains spaces
Before this patch: ```console $ virtualenv --version virtualenv 20.0.6.dev5+g9201422 from /usr/users/ga002/soranzon/software/nsoranzo_virtualenv/.venv/local/lib/python2.7/site-packages/virtualenv/__init__.pyc $ virtualenv 'foo bar' created virtual environment CPython2.7.17.final.0-64 in 403ms creator CPython2Posix(dest=/usr/users/ga002/soranzon/software/nsoranzo_virtualenv/foo bar, clear=False, global=False) seeder FromAppData(download=False, pip=latest, setuptools=latest, wheel=latest, via=copy, app_data_dir=/usr/users/ga002/soranzon/.local/share/virtualenv/seed-v1) activators PythonActivator,CShellActivator,FishActivator,PowerShellActivator,BashActivator $ head -n 3 foo\ bar/bin/pip #!/bin/sh '''exec' /usr/users/ga002/soranzon/software/nsoranzo_virtualenv/foo bar/bin/python "$0" "$@" ' ''' $ ./foo\ bar/bin/pip ./foo bar/bin/pip: 2: exec: /usr/users/ga002/soranzon/software/nsoranzo_virtualenv/foo: not found ``` After this patch: ```console $ virtualenv 'foo bar' created virtual environment CPython2.7.17.final.0-64 in 336ms creator CPython2Posix(dest=/usr/users/ga002/soranzon/software/nsoranzo_virtualenv/foo bar, clear=False, global=False) seeder FromAppData(download=False, pip=latest, setuptools=latest, wheel=latest, via=copy, app_data_dir=/usr/users/ga002/soranzon/.local/share/virtualenv/seed-v1) activators PythonActivator,CShellActivator,FishActivator,PowerShellActivator,BashActivator $ head -n 3 foo\ bar/bin/pip #!/bin/sh '''exec' "/usr/users/ga002/soranzon/software/nsoranzo_virtualenv/foo bar/bin/python" "$0" "$@" ' ''' $ ./foo\ bar/bin/pip Usage: pip <command> [options] ... ```
- Loading branch information