forked from devpack/android-python27
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.sh
More file actions
40 lines (28 loc) · 1.01 KB
/
package.sh
File metadata and controls
40 lines (28 loc) · 1.01 KB
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
#!/usr/bin/env sh
yes | rm output
yes | rm python_extras_27.zip
yes | rm python_27.zip
# 1) build python_27.zip
mkdir -p output/python/bin
mkdir -p output/python/lib/python2.7/lib-dynload
cp -r build/bin/python output/python/bin/python
cp -r build/lib/libpython2.7.so output/python/lib/libpython2.7.so
cp -r libs/armeabi/libsqlite3.so output/python/lib/libsqlite3.so
cp -r libs/armeabi/libcrypt.so output/python/lib/libcrypt.so
cp -r openssl/libs/armeabi/libcrypto.so output/python/lib/libcrypto.so
cp -r openssl/libs/armeabi/libssl.so output/python/lib/libssl.so
cp -r build/lib/python2.7/lib-dynload/* output/python/lib/python2.7/lib-dynload/
cd output
zip -r ../python_27.zip python
cd ..
# 2) build python_extras_27.zip
mkdir -p output/extras/python
cp -r build/lib/python2.7/* output/extras/python/
cd output/extras/python
rm -rf config
rm -rf lib-dynload
rm `find . | grep "\.py$\|.egg-info$\|.doc$\|.pyo$\|.txt$"`
rm -r `find . | grep test`
cp ../../../android.py .
cd ..
zip -r ../../python_extras_27.zip python