[packages/mozjs60] use get_python_lib() to determine target for sitecustomize.py
atler
atler at pld-linux.org
Wed Jan 19 09:33:58 CET 2022
commit 20dbbfd1e72838894f2627db96654693fd952a58
Author: Jan Palus <atler at pld-linux.org>
Date: Wed Jan 19 01:46:21 2022 +0100
use get_python_lib() to determine target for sitecustomize.py
follows mozjs78
system-virtualenv.patch | 9 +++++++++
1 file changed, 9 insertions(+)
---
diff --git a/system-virtualenv.patch b/system-virtualenv.patch
index f507a49..5758a68 100644
--- a/system-virtualenv.patch
+++ b/system-virtualenv.patch
@@ -11,3 +11,12 @@ diff -urN mozjs-60.1.0.orig/python/mozbuild/mozbuild/virtualenv.py mozjs-60.1.0/
@property
def bin_path(self):
+@@ -424,7 +424,7 @@
+ handle_package(package)
+
+ sitecustomize = os.path.join(
+- os.path.dirname(os.__file__), 'sitecustomize.py')
++ os.path.dirname(distutils.sysconfig.get_python_lib()), 'sitecustomize.py')
+ with open(sitecustomize, 'w') as f:
+ f.write(
+ '# Importing mach_bootstrap has the side effect of\n'
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/mozjs60.git/commitdiff/20dbbfd1e72838894f2627db96654693fd952a58
More information about the pld-cvs-commit
mailing list