[packages/mozjs68] use get_python_lib() to determine target for sitecustomize.py

atler atler at pld-linux.org
Wed Jan 19 01:47:20 CET 2022


commit eba48753e7e6008f3807c439a6ee9683019e0f3e
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/mozjs68.git/commitdiff/eba48753e7e6008f3807c439a6ee9683019e0f3e



More information about the pld-cvs-commit mailing list