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

atler atler at pld-linux.org
Wed Jan 19 09:30:06 CET 2022


commit 2281b2e6a0468370d2635bf362e4c3f6939f8ad3
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 bd34b88..06c3edb 100644
--- a/system-virtualenv.patch
+++ b/system-virtualenv.patch
@@ -10,3 +10,12 @@
  
      @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/mozjs52.git/commitdiff/2281b2e6a0468370d2635bf362e4c3f6939f8ad3



More information about the pld-cvs-commit mailing list