File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 1515 fix for :bbissue: `134 `)
1616 - Extend :ref: `command-rmvirtualenv ` to allow removing more than one
1717 environment at a time. (contributed by :bbuser: `ciberglo `)
18+ - Change the definition of
19+ ``virtualenvwrapper_get_site_packages_dir `` to ask ``distutils ``
20+ for the ``site-packages `` directory instead of trying to build the
21+ path ourselves in the shell script. This should resolve
22+ :bbissue: `112 ` and improve support for Python interpreters other
23+ than C Python. Thanks to Carl Meyer and Dario Bertini for their
24+ contributions toward the fix.
1825
19263.1
2027
Original file line number Diff line number Diff line change 33test_dir=$( cd $( dirname $0 ) && pwd)
44source " $test_dir /setup.sh"
55
6- # unset HOOK_VERBOSE_OPTION
7-
86setUp () {
97 rm -rf " $WORKON_HOME "
108 mkdir -p " $WORKON_HOME "
Original file line number Diff line number Diff line change @@ -609,7 +609,7 @@ function virtualenvwrapper_get_python_version {
609609
610610# Prints the path to the site-packages directory for the current environment.
611611function virtualenvwrapper_get_site_packages_dir {
612- echo " $VIRTUAL_ENV /lib /python` virtualenvwrapper_get_python_version ` /site-packages "
612+ " $VIRTUAL_ENV /bin /python" -c " import distutils; print(distutils.sysconfig.get_python_lib()) "
613613}
614614
615615# Path management for packages outside of the virtual env.
You can’t perform that action at this time.
0 commit comments