[arch-commits] Commit in anki/trunk (2 files)

Johannes Löthberg demize at archlinux.org
Mon May 4 16:54:57 UTC 2020


    Date: Monday, May 4, 2020 @ 16:54:56
  Author: demize
Revision: 624745

Compile .py's before building wheel

Added:
  anki/trunk/0003-Compile-.py-s-before-building-wheel.patch
Modified:
  anki/trunk/PKGBUILD

------------------------------------------------+
 0003-Compile-.py-s-before-building-wheel.patch |   43 +++++++++++++++++++++++
 PKGBUILD                                       |    2 +
 2 files changed, 45 insertions(+)

Added: 0003-Compile-.py-s-before-building-wheel.patch
===================================================================
--- 0003-Compile-.py-s-before-building-wheel.patch	                        (rev 0)
+++ 0003-Compile-.py-s-before-building-wheel.patch	2020-05-04 16:54:56 UTC (rev 624745)
@@ -0,0 +1,43 @@
+From 58137d3b74da646ad3af6bfeed9012fa9ed46aa1 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Johannes=20L=C3=B6thberg?= <johannes at kyriasis.com>
+Date: Mon, 4 May 2020 18:46:38 +0200
+Subject: [PATCH 3/4] Compile .py's before building wheel
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Signed-off-by: Johannes Löthberg <johannes at kyriasis.com>
+---
+ pylib/Makefile | 2 ++
+ qt/Makefile    | 2 ++
+ 2 files changed, 4 insertions(+)
+
+diff --git a/pylib/Makefile b/pylib/Makefile
+index feae25d8..9d60bfe2 100644
+--- a/pylib/Makefile
++++ b/pylib/Makefile
+@@ -103,6 +103,8 @@ build: .build/build
+ 
+ .build/build: $(BUILD_STEPS) $(CHECKDEPS)
+ 	rm -rf dist build
++	python setup.py build
++	python -O -m compileall .
+ 	python setup.py -q bdist_wheel
+ 	rsync -a dist/*.whl ../dist/
+ 	touch $@
+diff --git a/qt/Makefile b/qt/Makefile
+index c0ba93e3..364fa890 100644
+--- a/qt/Makefile
++++ b/qt/Makefile
+@@ -131,6 +131,8 @@ build: .build/build
+ 
+ .build/build: $(BUILD_STEPS) $(CHECKDEPS)
+ 	rm -rf dist build
++	python setup.py build
++	python -O -m compileall .
+ 	python setup.py -q bdist_wheel
+ 	rsync -a dist/*.whl ../dist/
+ 	touch $@
+-- 
+2.26.2
+

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-05-04 16:54:08 UTC (rev 624744)
+++ PKGBUILD	2020-05-04 16:54:56 UTC (rev 624745)
@@ -59,6 +59,7 @@
 	ankitects-anki-desktop-i18n-edcf8c85.tar.gz::https://github.com/ankitects/anki-desktop-i18n/tarball/edcf8c85e9c0fb0038a8beed4d48765a6e1eb1a8
 	0001-Move-aqt_data-to-sys.prefix-share.patch
 	0002-Remove-bad-build-steps-from-makefiles.patch
+	0003-Compile-.py-s-before-building-wheel.patch
 )
 sha256sums=('1c4812e4a831b1332a5cfa736eedb2ac598c48d0206a21f072e426dc953266ed'
             'ac9663da88d2e429e363c1878e1c9dabc59d1a82d12b1f6a9df86f7f345cbcf6'
@@ -71,6 +72,7 @@
 	cd anki-$pkgver
 	patch -p1 <"$srcdir"/0001-Move-aqt_data-to-sys.prefix-share.patch
 	patch -p1 <"$srcdir"/0002-Remove-bad-build-steps-from-makefiles.patch
+	patch -p1 <"$srcdir"/0003-Compile-.py-s-before-building-wheel.patch
 
 	# Put translations in place.
 	ln -sf "$srcdir"/ankitects-anki-core-i18n-*/ rslib/ftl/repo



More information about the arch-commits mailing list