diff options
| author | Brian Potchik <brian@vector35.com> | 2019-01-17 21:24:41 -0500 |
|---|---|---|
| committer | Brian Potchik <brian@vector35.com> | 2019-01-17 21:24:41 -0500 |
| commit | 251c79b66fd552a7499e96d7ab13e3e36c726e00 (patch) | |
| tree | 37bb04c1e5bedc9755dee1ce248b4bb85a158d14 /scripts/install_api.py | |
| parent | 5f4b0984c0f2ff59bb82b959d49b11ee534976bd (diff) | |
Update Linux install scripts.
Diffstat (limited to 'scripts/install_api.py')
| -rw-r--r--[-rwxr-xr-x] | scripts/install_api.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/install_api.py b/scripts/install_api.py index 646bd4fe..0ffd04ab 100755..100644 --- a/scripts/install_api.py +++ b/scripts/install_api.py @@ -8,10 +8,11 @@ import os from site import check_enableusersite # Handle both normal environments and virtualenvs -from distutils.sysconfig import get_python_lib as getsitepackages try: - from site import getusersitepackages + from site import getusersitepackages, getsitepackages except ImportError: + from sysconfig import get_path + getsitepackages = lambda: get_path('purelib') getusersitepackages = getsitepackages # Hacky command line parsing to accept a silent-install -s flag like linux-setup.sh: |
