summarylogtreecommitdiffstats
path: root/0003-Compile-.py-s-before-building-wheel.patch
blob: 98ed8720a09e16f8c691096d7f97dd661c9a6132 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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