python-py2exe: update to 0.12.0.1

This commit is contained in:
Mehdi Chinoune
2022-10-08 17:15:52 +00:00
committed by مهدي شينون (Mehdi Chinoune)
parent e12cf90b34
commit 6169ee08a1
2 changed files with 14 additions and 23 deletions

View File

@@ -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 = []

View File

@@ -3,7 +3,7 @@
_realname=py2exe
pkgbase=mingw-w64-python-${_realname}
pkgname=${MINGW_PACKAGE_PREFIX}-python-${_realname}
pkgver=0.11.1.1
pkgver=0.12.0.1
pkgrel=1
pkgdesc='A distutils extension to create standalone Windows programs from Python code (mingw-w64)'
arch=('any')
@@ -23,8 +23,8 @@ makedepends=(
source=(https://github.com/py2exe/${_realname}/archive/v${pkgver}.tar.gz
001-setup-fix.patch
002-mingw-fix.patch)
sha256sums=('5b2f79aa513498d1f912b8505750fb05310a02603013e51d10ea2e6b385bf15b'
'b024d613320e414b6947ea31ec9b8bc8cf145528f47750f698301910b63deae4'
sha256sums=('295c761e00924a0470e480baed05e381179362f775354711a95eec52e0d2884c'
'80f69d375eb0dc33b21f9de9601ca6ee4b5e8c22e088101f96796bc22ecde19a'
'b98f0451d985cd5afdea91848489b09192228e1dfc58b6e3b354b7d03fff29a1')
prepare() {