Commit e1bd249
Update to Python 3.14, remove distutils (#3242)
* Use `pip install` instead of `setup.py install` in `recipe.py`
On Python 3.14, many recipes, notably `msgpack`, no longer byte-
compile with `setup.py install`, because the way that command
byte-compiles relies on `distutils`, which is gone.
* Import from setuptools and not distutils in the `android` recipe
* Remove freetype's distutils "fallback"
It was actually using distutils every time, apparently?
* Bump `freetype` version to match that of `freetype-py`
* On second thought, use the latest freetype version
* Use the latest *released* freetype-py version
* Tell setuptools what freetype-py version we have
* Turn `FreetypePyRecipe` into a `PyProjectRecipe`
I don't think this will require the version hack
* Put the `setuptools-scm` version hack back in
* Fix `FreetypePyRecipe.get_recipe_env`
* Switch to pythonhosted FreetypePy
`setuptools-scm` can't deal with the github hosted one, it seems.
* Update apsw recipe, use pythonhosted package
* Fix `LibffiRecipe.get_include_dirs` for `arch=None`
* Use recent libffi and cffi
* Require setuptools for every recipe
* `python`: update to `3.14.0`
* Use `pip install` instead of `setup.py install` in `recipe.py`
On Python 3.14, many recipes, notably `msgpack`, no longer byte-
compile with `setup.py install`, because the way that command
byte-compiles relies on `distutils`, which is gone.
* Import from setuptools and not distutils in the `android` recipe
* Remove freetype's distutils "fallback"
It was actually using distutils every time, apparently?
* Bump `freetype` version to match that of `freetype-py`
* On second thought, use the latest freetype version
* Use the latest *released* freetype-py version
* Tell setuptools what freetype-py version we have
* Turn `FreetypePyRecipe` into a `PyProjectRecipe`
I don't think this will require the version hack
* Put the `setuptools-scm` version hack back in
* Fix `FreetypePyRecipe.get_recipe_env`
* Switch to pythonhosted FreetypePy
`setuptools-scm` can't deal with the github hosted one, it seems.
* Update apsw recipe, use pythonhosted package
* Require setuptools for every recipe
* `python`: update to `3.14.0`
* Remove 'six' from `build_order` in `TestToolchainCL.test_create`
* Add 'six' to `python_modules` in `TestToolchainCL.test_create`
* Remove 'setuptools' from 'build_order' in `TestToolchainCL.test_create`
I guess because the hostpython already has it, there's no need to build it again?
* Revert the change to `modules_build_dir` in `Python3Recipe.create_python_bundle`
* Remove old versions from `modules_build_dir` expected value in `TestPython3Recipe.test_create_python_bundle`
* Roll back to an earlier apsw version
* only load libpython once
* fix pip install path
* fix build
* shift foundPython check
* fix newline
* remove unnecessary test
---------
Co-authored-by: Ansh Dadwal <[email protected]>1 parent 3762c88 commit e1bd249
File tree
15 files changed
+71
-191
lines changed- pythonforandroid
- bootstraps/common/build/src/main/java/org/kivy/android
- recipes
- android/src
- apsw
- freetype-py
- freetype
- hostpython3
- python3
- six
- sqlite3
- tests
- recipes
15 files changed
+71
-191
lines changedLines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| 66 | + | |
66 | 67 | | |
67 | 68 | | |
68 | 69 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
883 | 883 | | |
884 | 884 | | |
885 | 885 | | |
886 | | - | |
| 886 | + | |
887 | 887 | | |
888 | 888 | | |
889 | 889 | | |
| |||
1025 | 1025 | | |
1026 | 1026 | | |
1027 | 1027 | | |
1028 | | - | |
1029 | | - | |
1030 | | - | |
1031 | | - | |
1032 | | - | |
1033 | | - | |
1034 | | - | |
1035 | | - | |
1036 | | - | |
1037 | | - | |
1038 | | - | |
1039 | | - | |
| 1028 | + | |
| 1029 | + | |
| 1030 | + | |
| 1031 | + | |
| 1032 | + | |
1040 | 1033 | | |
1041 | 1034 | | |
1042 | 1035 | | |
| |||
1053 | 1046 | | |
1054 | 1047 | | |
1055 | 1048 | | |
1056 | | - | |
1057 | | - | |
| 1049 | + | |
| 1050 | + | |
1058 | 1051 | | |
1059 | 1052 | | |
1060 | 1053 | | |
| |||
1100 | 1093 | | |
1101 | 1094 | | |
1102 | 1095 | | |
1103 | | - | |
| 1096 | + | |
1104 | 1097 | | |
1105 | 1098 | | |
1106 | 1099 | | |
| |||
1149 | 1142 | | |
1150 | 1143 | | |
1151 | 1144 | | |
1152 | | - | |
| 1145 | + | |
1153 | 1146 | | |
1154 | 1147 | | |
1155 | 1148 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
| 1 | + | |
4 | 2 | | |
5 | 3 | | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
11 | 8 | | |
12 | 9 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
| 10 | + | |
| 11 | + | |
27 | 12 | | |
28 | 13 | | |
29 | | - | |
30 | 14 | | |
31 | 15 | | |
32 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
| 4 | + | |
| 5 | + | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | | - | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
11 | 16 | | |
12 | 17 | | |
Lines changed: 0 additions & 15 deletions
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| 80 | + | |
80 | 81 | | |
81 | 82 | | |
82 | 83 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| |||
262 | 262 | | |
263 | 263 | | |
264 | 264 | | |
265 | | - | |
| 265 | + | |
266 | 266 | | |
267 | 267 | | |
268 | 268 | | |
| |||
388 | 388 | | |
389 | 389 | | |
390 | 390 | | |
391 | | - | |
392 | | - | |
| 391 | + | |
393 | 392 | | |
394 | 393 | | |
395 | 394 | | |
396 | | - | |
397 | | - | |
398 | | - | |
399 | | - | |
400 | | - | |
401 | | - | |
402 | | - | |
403 | | - | |
| 395 | + | |
| 396 | + | |
404 | 397 | | |
405 | 398 | | |
406 | 399 | | |
| |||
0 commit comments