File tree Expand file tree Collapse file tree 6 files changed +35
-10
lines changed Expand file tree Collapse file tree 6 files changed +35
-10
lines changed Original file line number Diff line number Diff line change 52
52
# installs java 1.8, android's SDK/NDK and p4a
53
53
- make -f ci/makefiles/osx.mk
54
54
- export JAVA_HOME=/Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home
55
- script : make testapps-no-venv /armeabi-v7a
55
+ script : make testapps/armeabi-v7a
56
56
- << : *testapps
57
57
name : Rebuild updated recipes
58
58
script : travis_wait 30 make docker/run/make/rebuild_updated_recipes
Original file line number Diff line number Diff line change @@ -47,14 +47,6 @@ testapps/%: virtualenv
47
47
python setup.py apk --sdk-dir $(ANDROID_SDK_HOME) --ndk-dir $(ANDROID_NDK_HOME) \
48
48
--arch =$($@ _APP_ARCH)
49
49
50
- testapps-no-venv/% :
51
- pip3 install Cython==0.28.6
52
- pip3 install -e .
53
- $(eval $@ _APP_ARCH := $(shell basename $* ) )
54
- cd testapps/on_device_unit_tests/ && \
55
- python3 setup.py apk --sdk-dir $(ANDROID_SDK_HOME) --ndk-dir $(ANDROID_NDK_HOME) \
56
- --arch =$($@ _APP_ARCH)
57
-
58
50
clean :
59
51
find . -type d -name " __pycache__" -exec rm -r {} +
60
52
find . -type d -name " *.egg-info" -exec rm -r {} +
Original file line number Diff line number Diff line change 4
4
from os .path import exists , join , isfile
5
5
6
6
from pythonforandroid .logger import shprint
7
+ from pythonforandroid .patching import is_version_lt
7
8
from pythonforandroid .recipe import Recipe
8
9
from pythonforandroid .util import (
9
10
BuildInterruptingException ,
@@ -35,6 +36,10 @@ class Hostpython3Recipe(Recipe):
35
36
'''The default url to download our host python recipe. This url will
36
37
change depending on the python version set in attribute :attr:`version`.'''
37
38
39
+ patches = (
40
+ ('patches/pyconfig_detection.patch' , is_version_lt ("3.8.3" )),
41
+ )
42
+
38
43
@property
39
44
def _exe_name (self ):
40
45
'''
Original file line number Diff line number Diff line change
1
+ diff -Nru Python-3.8.2/Lib/site.py Python-3.8.2-new/Lib/site.py
2
+ --- Python-3.8.2/Lib/site.py 2020-04-28 12:48:38.000000000 -0700
3
+ +++ Python-3.8.2-new/Lib/site.py 2020-04-28 12:52:46.000000000 -0700
4
+ @@ -487,7 +487,8 @@
5
+ if key == 'include-system-site-packages':
6
+ system_site = value.lower()
7
+ elif key == 'home':
8
+ - sys._home = value
9
+ + # this is breaking pyconfig.h path detection with venv
10
+ + print('Ignoring "sys._home = value" override')
11
+
12
+ sys.prefix = sys.exec_prefix = site_prefix
13
+
Original file line number Diff line number Diff line change 8
8
from shutil import copy2
9
9
10
10
from pythonforandroid .logger import info , warning , shprint
11
- from pythonforandroid .patching import version_starts_with
11
+ from pythonforandroid .patching import version_starts_with , is_version_lt
12
12
from pythonforandroid .recipe import Recipe , TargetPythonRecipe
13
13
from pythonforandroid .util import (
14
14
current_directory ,
@@ -55,6 +55,8 @@ class Python3Recipe(TargetPythonRecipe):
55
55
name = 'python3'
56
56
57
57
patches = [
58
+ ('patches/pyconfig_detection.patch' , is_version_lt ("3.8.3" )),
59
+
58
60
# Python 3.7.1
59
61
('patches/py3.7.1_fix-ctypes-util-find-library.patch' , version_starts_with ("3.7" )),
60
62
('patches/py3.7.1_fix-zlib-version.patch' , version_starts_with ("3.7" )),
Original file line number Diff line number Diff line change
1
+ diff -Nru Python-3.8.2/Lib/site.py Python-3.8.2-new/Lib/site.py
2
+ --- Python-3.8.2/Lib/site.py 2020-04-28 12:48:38.000000000 -0700
3
+ +++ Python-3.8.2-new/Lib/site.py 2020-04-28 12:52:46.000000000 -0700
4
+ @@ -487,7 +487,8 @@
5
+ if key == 'include-system-site-packages':
6
+ system_site = value.lower()
7
+ elif key == 'home':
8
+ - sys._home = value
9
+ + # this is breaking pyconfig.h path detection with venv
10
+ + print('Ignoring "sys._home = value" override')
11
+
12
+ sys.prefix = sys.exec_prefix = site_prefix
13
+
You can’t perform that action at this time.
0 commit comments