Dominique Leuenberger
e18a3dd9cf
Push GNOME:Next - GNOME 3.12.0 OBS-URL: https://build.opensuse.org/request/show/228689 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/python-gobject?expand=0&rev=28
31 lines
818 B
Diff
31 lines
818 B
Diff
Index: pygobject-3.11.92/py-compile
|
|
===================================================================
|
|
--- pygobject-3.11.92.orig/py-compile
|
|
+++ pygobject-3.11.92/py-compile
|
|
@@ -116,7 +116,11 @@ else
|
|
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'''
|
|
|
|
@@ -137,7 +141,11 @@ sys.stdout.write('\n')" || exit $?
|
|
|
|
# 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('')
|
|
+
|
|
+import os, py_compile, imp
|
|
|
|
# pypy does not use .pyo optimization
|
|
if hasattr(sys, 'pypy_translation_info'):
|