2014-04-03 22:49:09 +02:00
|
|
|
Index: pygobject-3.11.92/py-compile
|
2014-02-20 20:59:45 +01:00
|
|
|
===================================================================
|
2014-04-03 22:49:09 +02:00
|
|
|
--- pygobject-3.11.92.orig/py-compile
|
|
|
|
+++ pygobject-3.11.92/py-compile
|
|
|
|
@@ -116,7 +116,11 @@ else
|
2014-02-20 20:59:45 +01:00
|
|
|
fi
|
|
|
|
|
|
|
|
$PYTHON -c "
|
|
|
|
-import sys, os, py_compile, imp
|
|
|
|
+import sys
|
|
|
|
+# when this runs interactively, '' (cwd) is in sys.path. we don't want that.
|
|
|
|
+sys.path.remove('')
|
|
|
|
+
|
|
|
|
+import os, py_compile, imp
|
|
|
|
|
|
|
|
files = '''$files'''
|
|
|
|
|
2014-04-03 22:49:09 +02:00
|
|
|
@@ -137,7 +141,11 @@ sys.stdout.write('\n')" || exit $?
|
2014-02-20 20:59:45 +01:00
|
|
|
|
|
|
|
# this will fail for python < 1.5, but that doesn't matter ...
|
|
|
|
$PYTHON -O -c "
|
|
|
|
-import sys, os, py_compile, imp
|
|
|
|
+import sys
|
|
|
|
+# when this runs interactively, '' (cwd) is in sys.path. we don't want that.
|
|
|
|
+sys.path.remove('')
|
2014-04-03 22:49:09 +02:00
|
|
|
+
|
2014-02-20 20:59:45 +01:00
|
|
|
+import os, py_compile, imp
|
|
|
|
|
|
|
|
# pypy does not use .pyo optimization
|
|
|
|
if hasattr(sys, 'pypy_translation_info'):
|