python-py2exe: update to 0.12.0.1
This commit is contained in:
committed by
مهدي شينون (Mehdi Chinoune)
parent
e12cf90b34
commit
6169ee08a1
@@ -1,6 +1,6 @@
|
||||
--- a/py2exe_distutils.py
|
||||
+++ b/py2exe_distutils.py
|
||||
@@ -117,6 +117,13 @@
|
||||
--- a/py2exe_setuptools.py
|
||||
+++ b/py2exe_setuptools.py
|
||||
@@ -109,6 +109,13 @@
|
||||
else:
|
||||
ext_path += ".dll"
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
depends = sources + ext.depends
|
||||
if not (self.force or newer_group(depends, ext_path, 'newer')):
|
||||
log.debug("skipping '%s' extension (up-to-date)", ext.name)
|
||||
@@ -138,7 +145,7 @@
|
||||
@@ -130,7 +137,7 @@
|
||||
# The environment variable should take precedence, and
|
||||
# any sensible compiler will give precedence to later
|
||||
# command line args. Hence we combine them in order:
|
||||
@@ -23,7 +23,7 @@
|
||||
|
||||
macros = ext.define_macros[:]
|
||||
for undef in ext.undef_macros:
|
||||
@@ -149,7 +156,7 @@
|
||||
@@ -141,7 +148,7 @@
|
||||
macros=macros,
|
||||
include_dirs=ext.include_dirs,
|
||||
debug=self.debug,
|
||||
@@ -32,7 +32,7 @@
|
||||
depends=ext.depends)
|
||||
|
||||
# XXX -- this is a Vile HACK!
|
||||
@@ -168,7 +175,7 @@
|
||||
@@ -160,7 +167,7 @@
|
||||
# that go into the mix.
|
||||
if ext.extra_objects:
|
||||
objects.extend(ext.extra_objects)
|
||||
@@ -41,7 +41,7 @@
|
||||
|
||||
# Detect target language, if not provided
|
||||
## language = ext.language or self.compiler.detect_language(sources)
|
||||
@@ -195,7 +202,7 @@
|
||||
@@ -187,7 +194,7 @@
|
||||
library_dirs=ext.library_dirs,
|
||||
runtime_library_dirs=ext.runtime_library_dirs,
|
||||
export_symbols=ext.export_symbols,
|
||||
@@ -50,7 +50,7 @@
|
||||
debug=self.debug)
|
||||
|
||||
|
||||
@@ -209,7 +216,7 @@
|
||||
@@ -204,7 +211,7 @@
|
||||
fnm = os.path.join(*ext_path)
|
||||
if ext_path[-1] == "resources":
|
||||
return fnm
|
||||
@@ -61,7 +61,7 @@
|
||||
def InstallSubCommands():
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -21,14 +21,13 @@
|
||||
@@ -21,8 +21,8 @@
|
||||
|
||||
############################################################################
|
||||
|
||||
@@ -71,17 +71,8 @@
|
||||
+python_dll_name_debug = '\"libpython%d.%d_d.dll\"' % sys.version_info[:2]
|
||||
|
||||
def _is_debug_build():
|
||||
- import imp
|
||||
- for ext, _, _ in imp.get_suffixes():
|
||||
- if ext == "_d.pyd":
|
||||
- return True
|
||||
+ import importlib.machinery
|
||||
+ if "_d.pyd" in importlib.machinery.EXTENSION_SUFFIXES:
|
||||
+ return True
|
||||
return False
|
||||
|
||||
if _is_debug_build():
|
||||
@@ -45,16 +44,11 @@
|
||||
for ext in machinery.all_suffixes():
|
||||
@@ -45,16 +45,11 @@
|
||||
extra_compile_args = []
|
||||
extra_link_args = []
|
||||
|
||||
|
||||
Reference in New Issue
Block a user