Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 333538 Details for
Bug 448896
dev-python/pygobject-3.4.2-r1 (and others): py-compile coming from <automake-1.12.6 are broken with py3
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
py-compile automake-1.11 vs automake-1.12
py-compile.patch (text/plain), 1.88 KB, created by
Mike Gilbert
on 2012-12-28 00:12:08 UTC
(
hide
)
Description:
py-compile automake-1.11 vs automake-1.12
Filename:
MIME Type:
Creator:
Mike Gilbert
Created:
2012-12-28 00:12:08 UTC
Size:
1.88 KB
patch
obsolete
>--- /usr/share/automake-1.11/py-compile 2012-08-14 11:39:30.000000000 -0400 >+++ /usr/share/automake-1.12/py-compile 2012-12-17 20:55:26.000000000 -0500 >@@ -3,8 +3,7 @@ > > scriptversion=2011-06-08.12; # UTC > >-# Copyright (C) 2000, 2001, 2003, 2004, 2005, 2008, 2009, 2011 Free >-# Software Foundation, Inc. >+# Copyright (C) 2000-2012 Free Software Foundation, Inc. > > # This program is free software; you can redistribute it and/or modify > # it under the terms of the GNU General Public License as published by >@@ -37,7 +36,7 @@ > usage_error () > { > echo "$me: $*" >&2 >- echo "Try \`$me --help' for more information." >&2 >+ echo "Try '$me --help' for more information." >&2 > exit 1 > } > >@@ -117,7 +116,7 @@ > fi > > $PYTHON -c " >-import sys, os, py_compile >+import sys, os, py_compile, imp > > files = '''$files''' > >@@ -130,12 +129,19 @@ > continue > sys.stdout.write(file) > sys.stdout.flush() >- py_compile.compile(filepath, filepath + 'c', path) >+ if hasattr(imp, 'get_tag'): >+ py_compile.compile(filepath, imp.cache_from_source(filepath), path) >+ else: >+ py_compile.compile(filepath, filepath + 'c', path) > 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 >+import sys, os, py_compile, imp >+ >+# pypy does not use .pyo optimization >+if hasattr(sys, 'pypy_translation_info'): >+ sys.exit(0) > > files = '''$files''' > sys.stdout.write('Byte-compiling python modules (optimized versions) ...\n') >@@ -147,7 +153,10 @@ > continue > sys.stdout.write(file) > sys.stdout.flush() >- py_compile.compile(filepath, filepath + 'o', path) >+ if hasattr(imp, 'get_tag'): >+ py_compile.compile(filepath, imp.cache_from_source(filepath, False), path) >+ else: >+ py_compile.compile(filepath, filepath + 'o', path) > sys.stdout.write('\n')" 2>/dev/null || : > > # Local Variables:
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 448896
:
333508
| 333538