]> git.pld-linux.org Git - packages/mozjs68.git/blobdiff - system-virtualenv.patch
use get_python_lib() to determine target for sitecustomize.py
[packages/mozjs68.git] / system-virtualenv.patch
index f507a4907f081921a6602ef243d95c527eca6fe0..5758a681bda184436419df154e31bbbb5c54c3ef 100644 (file)
@@ -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'
This page took 0.044775 seconds and 4 git commands to generate.