File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 11import glob
22import os
3+ import sysconfig
34from subprocess import Popen , PIPE
4- from distutils import sysconfig
55
66Import ('env' )
77
@@ -14,11 +14,15 @@ def call(cmd, silent=True):
1414
1515
1616prefix = env ['PREFIX' ]
17- target_path = os .path .normpath (sysconfig .get_python_lib () + os .path .sep + env ['MAPNIK_NAME' ])
17+ if "deb_system" in sysconfig .get_scheme_names ():
18+ python_modules_dir = sysconfig .get_path ("purelib" , "deb_system" )
19+ else :
20+ python_modules_dir = sysconfig .get_path ("purelib" )
21+ target_path = os .path .normpath (python_modules_dir + os .path .sep + env ['MAPNIK_NAME' ])
1822
1923py_env = env .Clone ()
2024
21- py_env .Append (CPPPATH = sysconfig .get_python_inc ( ))
25+ py_env .Append (CPPPATH = sysconfig .get_path ( 'include' ))
2226
2327py_env .Append (CPPDEFINES = env ['LIBMAPNIK_DEFINES' ])
2428
You can’t perform that action at this time.
0 commit comments