Skip to content

Commit 97d49c1

Browse files
committed
Package python separately
1 parent 3c5f6ef commit 97d49c1

1 file changed

Lines changed: 15 additions & 6 deletions

File tree

.appveyor.yml

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,16 +60,25 @@ for:
6060
# build Python 3
6161
- toolchain build python3
6262
- ls dist
63-
- sh: |
64-
DIST_FILE_NAME=dist/python-ios-dist-v$APPVEYOR_BUILD_VERSION.tar.gz
65-
tar -czvf $DIST_FILE_NAME dist/*
66-
appveyor PushArtifact $DIST_FILE_NAME -DeploymentName python-dist
63+
64+
# package hostpython
65+
- HOSTPYTHON_FILE_NAME=hostpython-macos-v$APPVEYOR_BUILD_VERSION.zip
66+
- pushd hostpython3
67+
- zip -r $HOSTPYTHON_FILE_NAME .
68+
- appveyor PushArtifact $HOSTPYTHON_FILE_NAME -DeploymentName hostpython-macos
69+
- popd
70+
- rm -rf hostpython3
71+
72+
# package the rest of dist
73+
- DIST_FILE_NAME=dist/python-ios-dist-v$APPVEYOR_BUILD_VERSION.tar.gz
74+
- tar -czvf $DIST_FILE_NAME dist/*
75+
- appveyor PushArtifact $DIST_FILE_NAME -DeploymentName python-dist
6776

6877
deploy:
6978
provider: GitHub
7079
auth_token: $(GITHUB_TOKEN)
7180
release: $(APPVEYOR_REPO_TAG_NAME)
72-
artifact: python-dist
81+
artifact: python-dist, hostpython-macos
7382
on:
7483
APPVEYOR_REPO_TAG: true
7584

@@ -105,7 +114,7 @@ for:
105114
- pip3 install python-for-android
106115
- pip3 install --upgrade cython
107116
- p4a --help
108-
- p4a create --requirements python3,numpy --arch arm64-v8a --arch armeabi-v7a --arch x86_64 --sdk-dir $ANDROID_SDK_ROOT --ndk-dir $ANDROID_SDK_ROOT/ndk/$NDK_VERSION --dist-name serious_python
117+
- p4a create --requirements python3 --arch arm64-v8a --arch armeabi-v7a --arch x86_64 --sdk-dir $ANDROID_SDK_ROOT --ndk-dir $ANDROID_SDK_ROOT/ndk/$NDK_VERSION --dist-name serious_python
109118

110119
# package
111120
- BUNDLE_NAME=libpythonbundle.so

0 commit comments

Comments
 (0)