diff options
author | Martin Dünkelmann | 2020-12-07 15:26:47 +0100 |
---|---|---|
committer | Martin Dünkelmann | 2020-12-07 18:17:39 +0100 |
commit | 795b3f63ca9aff9e7079f7261a5c0c981866147f (patch) | |
tree | b4cd15e70448999417cf69397959938516624aae /0003-Compile-.py-s-before-building-wheel.patch | |
parent | 3f2c554163e9cc9570833c513b6088250dccb1d2 (diff) | |
download | aur-795b3f63ca9aff9e7079f7261a5c0c981866147f.tar.gz |
Sync with https://www.archlinux.org/packages/community/x86_64/anki/
Fix build & installation
Diffstat (limited to '0003-Compile-.py-s-before-building-wheel.patch')
-rw-r--r-- | 0003-Compile-.py-s-before-building-wheel.patch | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/0003-Compile-.py-s-before-building-wheel.patch b/0003-Compile-.py-s-before-building-wheel.patch new file mode 100644 index 000000000000..98ed8720a09e --- /dev/null +++ b/0003-Compile-.py-s-before-building-wheel.patch @@ -0,0 +1,43 @@ +From 251f15df8ca3419b0cc92f6196f23b1186ff12bc Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Johannes=20L=C3=B6thberg?= <johannes@kyriasis.com> +Date: Mon, 4 May 2020 18:46:38 +0200 +Subject: [PATCH 3/5] 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@kyriasis.com> +--- + pylib/Makefile | 2 ++ + qt/Makefile | 2 ++ + 2 files changed, 4 insertions(+) + +diff --git a/pylib/Makefile b/pylib/Makefile +index 8d8388c3..78480c0c 100644 +--- a/pylib/Makefile ++++ b/pylib/Makefile +@@ -105,6 +105,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 b50d1868..acf50d6e 100644 +--- a/qt/Makefile ++++ b/qt/Makefile +@@ -137,6 +137,8 @@ build: .build/build + .build/build: $(BUILD_STEPS) $(CHECKDEPS) $(wildcard ../ts/dist/*) + rm -rf dist build + rsync -a ../ts/dist/ aqt_data/web/ ++ python setup.py build ++ python -O -m compileall . + python setup.py -q bdist_wheel + rsync -a dist/*.whl ../dist/ + touch $@ +-- +2.29.2 + |