Python: use platform-specific site packages dir (#25998)
This commit is contained in:
parent
6ff5795342
commit
c0839b14d5
@ -129,7 +129,7 @@ def import_modules(self):
|
|||||||
modules = []
|
modules = []
|
||||||
root = os.path.join(
|
root = os.path.join(
|
||||||
self.prefix,
|
self.prefix,
|
||||||
self.spec['python'].package.config_vars['python_lib']['false']['false'],
|
self.spec['python'].package.config_vars['python_lib']['true']['false'],
|
||||||
)
|
)
|
||||||
|
|
||||||
# Some Python libraries are packages: collections of modules
|
# Some Python libraries are packages: collections of modules
|
||||||
|
@ -66,7 +66,7 @@ def import_modules(self):
|
|||||||
modules = []
|
modules = []
|
||||||
root = os.path.join(
|
root = os.path.join(
|
||||||
self.prefix,
|
self.prefix,
|
||||||
self.spec['python'].package.config_vars['python_lib']['false']['false'],
|
self.spec['python'].package.config_vars['python_lib']['true']['false'],
|
||||||
)
|
)
|
||||||
|
|
||||||
# Some Python libraries are packages: collections of modules
|
# Some Python libraries are packages: collections of modules
|
||||||
|
@ -892,7 +892,7 @@ def site_packages_dir(self):
|
|||||||
str: site-packages directory
|
str: site-packages directory
|
||||||
"""
|
"""
|
||||||
try:
|
try:
|
||||||
return self.config_vars['python_lib']['false']['false']
|
return self.config_vars['python_lib']['true']['false']
|
||||||
except KeyError:
|
except KeyError:
|
||||||
return self.default_site_packages_dir
|
return self.default_site_packages_dir
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user