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 15
15
fix for :bbissue: `134 `)
16
16
- Extend :ref: `command-rmvirtualenv ` to allow removing more than one
17
17
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.
18
25
19
26
3.1
20
27
Original file line number Diff line number Diff line change 3
3
test_dir=$( cd $( dirname $0 ) && pwd)
4
4
source " $test_dir /setup.sh"
5
5
6
- # unset HOOK_VERBOSE_OPTION
7
-
8
6
setUp () {
9
7
rm -rf " $WORKON_HOME "
10
8
mkdir -p " $WORKON_HOME "
Original file line number Diff line number Diff line change @@ -609,7 +609,7 @@ function virtualenvwrapper_get_python_version {
609
609
610
610
# Prints the path to the site-packages directory for the current environment.
611
611
function 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()) "
613
613
}
614
614
615
615
# Path management for packages outside of the virtual env.
You can’t perform that action at this time.
0 commit comments