[arch-commits] Commit in python-cx_freeze/trunk (PKGBUILD python35.patch)

Alexander Rødseth arodseth at archlinux.org
Wed Jun 29 17:22:04 UTC 2016


    Date: Wednesday, June 29, 2016 @ 17:22:03
  Author: arodseth
Revision: 181619

upgpkg: python-cx_freeze 4.3.4-3

Added:
  python-cx_freeze/trunk/python35.patch
Modified:
  python-cx_freeze/trunk/PKGBUILD

----------------+
 PKGBUILD       |   18 +++++++++++++-----
 python35.patch |   26 ++++++++++++++++++++++++++
 2 files changed, 39 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-06-29 16:33:42 UTC (rev 181618)
+++ PKGBUILD	2016-06-29 17:22:03 UTC (rev 181619)
@@ -4,19 +4,27 @@
 # Contributor: Douglas Soares de Andrade <douglas at archlinux.org>
 # Contributor: Eric Belanger <eric at archlinux.org>
 # Contributor: Roberto Alsina <ralsina at kde.org>
+# Contributor: Julien Duponchelle <julien at gns3.net>
 
 pkgbase=python-cx_freeze
 pkgname=('python-cx_freeze' 'python2-cx_freeze')
 pkgver=4.3.4
-pkgrel=2
-pkgdesc='Set of utilities for freezing Python scripts into executables'
+pkgrel=3
+pkgdesc='Utilities for freezing Python scripts into executables'
 arch=('x86_64' 'i686')
 url='http://cx-freeze.sourceforge.net/'
 license=('PSF')
 makedepends=('python' 'python2')
-source=("https://pypi.python.org/packages/source/c/cx_Freeze/cx_Freeze-$pkgver.tar.gz")
-md5sums=('5bd662af9aa36e5432e9144da51c6378')
+source=("https://pypi.python.org/packages/source/c/cx_Freeze/cx_Freeze-$pkgver.tar.gz"
+        'python35.patch')
+md5sums=('5bd662af9aa36e5432e9144da51c6378'
+         '92b761ef5f225646c14a261794787f33')
 
+prepare() {
+  cd "cx_Freeze-$pkgver"
+  patch -p1 -i ../python35.patch
+}
+
 package_python-cx_freeze() {
   depends=('python')
   conflicts=('cx_freeze' 'python2-cx_freeze')
@@ -33,7 +41,7 @@
   cd "cx_Freeze-$pkgver"
   python2 setup.py install --root "$pkgdir" --optimize 1
 
-  # Python 2 shebang fix
+  # Python 2 fix
   find "$pkgdir" -name qotd.py -exec sed -i '0,/on/s//on2/' {} \;
 }
 

Added: python35.patch
===================================================================
--- python35.patch	                        (rev 0)
+++ python35.patch	2016-06-29 17:22:03 UTC (rev 181619)
@@ -0,0 +1,26 @@
+diff -r 79b9af284286 cx_Freeze/finder.py
+--- a/cx_Freeze/finder.py	Fri Dec 26 15:56:54 2014 -0700
++++ b/cx_Freeze/finder.py	Wed Jun 29 19:13:55 2016 +0200
+@@ -189,12 +189,21 @@
+         self.IncludePackage("encodings")
+         if sys.version_info[0] >= 3:
+             self.IncludeModule("io")
+-        if sys.version_info[:2] >= (3, 3):
++        if sys.version_info[:2] >= (3, 3) and sys.version_info < (3, 5):
+             self.AddAlias("_frozen_importlib", "importlib._bootstrap")
+             self.IncludeModule("_frozen_importlib")
+             # importlib itself must not be frozen
+             del self._modules["importlib"]
+             del self._modules["importlib._bootstrap"]
++        if sys.version_info[:2] >= (3, 5):
++            self.AddAlias("_frozen_importlib", "importlib._bootstrap")
++            self.AddAlias("_frozen_importlib_external", "importlib._bootstrap_external")
++            self.IncludeModule("_frozen_importlib_external")
++            self.IncludeModule("_frozen_importlib")
++            # importlib itself must not be frozen
++            del self._modules["importlib"]
++            del self._modules["importlib._bootstrap"]
++            del self._modules["importlib._bootstrap_external"]
+         if self.copyDependentFiles:
+             self.IncludeModule("os")
+             self.IncludeModule("sys")



More information about the arch-commits mailing list