diff options
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 + |