We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0623df commit 519337aCopy full SHA for 519337a
setup.py
@@ -1,14 +1,14 @@
1
# -*- coding:utf-8 -*-
2
+import site
3
import sys
-from distutils.core import setup
4
+import sysconfig
5
+from setuptools import setup
6
7
if '--user' in sys.argv: # There must be a better way to do this,
8
# if you know it, please tell me.
- import site
9
packages_path = site.getusersitepackages()
10
else:
- from distutils import sysconfig
11
- packages_path = sysconfig.get_python_lib()
+ packages_path = sysconfig.get_path('purelib')
12
13
version = '1'
14
0 commit comments