Skip to content

Commit 9b83258

Browse files
committed
🍎 Don't run p4a inside virtualenv/venv
because it seems that hostpython's build scripts gets confused on about locating the `pyconfig.h` file **Note:** This only happens to macOS platform
1 parent ab2e942 commit 9b83258

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
# installs java 1.8, android's SDK/NDK and p4a
5353
- make -f ci/makefiles/osx.mk
5454
- export JAVA_HOME=/Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home
55-
script: make testapps/armeabi-v7a PYTHON_WITH_VERSION=python3
55+
script: make testapps-no-venv/armeabi-v7a
5656
- <<: *testapps
5757
name: Rebuild updated recipes
5858
script: travis_wait 30 make docker/run/make/rebuild_updated_recipes

Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,14 @@ testapps/%: virtualenv
4747
python setup.py apk --sdk-dir $(ANDROID_SDK_HOME) --ndk-dir $(ANDROID_NDK_HOME) \
4848
--arch=$($@_APP_ARCH)
4949

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+
5058
clean:
5159
find . -type d -name "__pycache__" -exec rm -r {} +
5260
find . -type d -name "*.egg-info" -exec rm -r {} +

0 commit comments

Comments
 (0)