File tree 2 files changed +16
-2
lines changed
2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -600,6 +600,15 @@ else
600
600
fi
601
601
fi
602
602
603
+ (
604
+ shopt -s nullglob
605
+ for extra_binary in " $PREFIX " /bin/python* -config; do
606
+ extra_binary_linkname=" $VIRTUALENV_PATH /bin/$( basename $extra_binary ) "
607
+ [[ -e " $extra_binary_linkname " ]] || \
608
+ ln -s " $extra_binary " " $extra_binary_linkname "
609
+ done
610
+ )
611
+
603
612
# # Create symlink in the `versions` directory for backward compatibility
604
613
if [ -d " ${VIRTUALENV_PATH} " ] && [ -n " ${COMPAT_VIRTUALENV_PATH} " ]; then
605
614
ln -fs " ${VIRTUALENV_PATH} " " ${COMPAT_VIRTUALENV_PATH} "
Original file line number Diff line number Diff line change @@ -29,10 +29,13 @@ unstub_pyenv() {
29
29
stub pyenv-exec " python2.7 -m venv --help : false"
30
30
stub pyenv-exec " python2 -m venv --help : false"
31
31
stub pyenv-exec " python -m venv --help : false"
32
- stub pyenv-exec " virtualenv * : echo PYENV_VERSION=\$ {PYENV_VERSION} \"\$ @\" "
32
+ stub pyenv-exec " virtualenv * : echo PYENV_VERSION=\$ {PYENV_VERSION} \"\$ @\" ; mkdir -p \"\$ 2/bin \" "
33
33
stub pyenv-exec " python -s -m ensurepip : false"
34
34
stub pyenv-exec " python -s */get-pip.py : true"
35
35
stub curl true
36
+ create_executable " ${PYENV_VERSION} " " python-config"
37
+ create_executable " ${PYENV_VERSION} " " python2-config"
38
+ create_executable " ${PYENV_VERSION} " " python2.7-config"
36
39
37
40
run pyenv-virtualenv " 2.7.11" " venv"
38
41
@@ -41,8 +44,10 @@ PYENV_VERSION=2.7.11 virtualenv ${PYENV_ROOT}/versions/2.7.11/envs/venv
41
44
Installing pip from https://bootstrap.pypa.io/pip/2.7/get-pip.py...
42
45
rehashed
43
46
OUT
44
- assert [ -x " ${PYENV_ROOT} /versions/2.7.11/envs/venv/bin/pydoc" ]
45
47
assert_success
48
+ for x in pydoc python-config python2-config python2.7-config; do
49
+ assert [ -x " ${PYENV_ROOT} /versions/2.7.11/envs/venv/bin/$x " ]
50
+ done
46
51
47
52
unstub_pyenv
48
53
unstub pyenv-virtualenv-prefix
You can’t perform that action at this time.
0 commit comments