File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ def get_distutils_libdir(cmd, pkg):
7070
7171def get_distutils_clibdir (cmd , pkg ):
7272 """Returns the path where distutils put pure C libraries."""
73- return pjoin (_get_top_dir (pkg ), cmd .build_temp )
73+ return pjoin (_get_top_dir (pkg ), cmd .build_clib )
7474
7575def get_distutils_install_prefix (pkg , inplace ):
7676 """Returns the installation path for the current package."""
@@ -326,6 +326,8 @@ class scons(old_build_ext):
326326
327327 def initialize_options (self ):
328328 old_build_ext .initialize_options (self )
329+ self .build_clib = None
330+
329331 self .compiler = None
330332 self .cxxcompiler = None
331333 self .fcompiler = None
@@ -419,6 +421,10 @@ def finalize_options(self):
419421 self .pre_hooks = self .distribution .get_scons_pre_hooks ()
420422 self .post_hooks = self .distribution .get_scons_post_hooks ()
421423 self .pkg_names = self .distribution .get_scons_parent_names ()
424+ # This crap is needed to get the build_clib
425+ # directory
426+ build_clib_cmd = get_cmd ("build_clib" ).get_finalized_command ("build_clib" )
427+ self .build_clib = build_clib_cmd .build_clib
422428 else :
423429 self .sconscripts = []
424430 self .pre_hooks = []
You can’t perform that action at this time.
0 commit comments