Skip to content
This repository was archived by the owner on Aug 15, 2017. It is now read-only.

Commit a2ef467

Browse files
committed
Improved packaging of distributed assets.
1 parent b19712d commit a2ef467

File tree

2 files changed

+19
-11
lines changed

2 files changed

+19
-11
lines changed

build.sh

+19-7
Original file line numberDiff line numberDiff line change
@@ -747,23 +747,35 @@ function run_distribute() {
747747
info "Run distribute"
748748

749749
cd "$DIST_PATH"
750+
debug "Create Python directory structure"
751+
try mkdir -p python
752+
try mkdir -p python/app
753+
try mkdir -p python/app_packages
750754

751755
debug "Copy python distribution"
752756
# $HOSTPYTHON -OO -m compileall $BUILD_PATH/python-install
753-
try cp -a $BUILD_PATH/python-install python
757+
try cp -a "$BUILD_PATH/python-install" python/python
754758

755759
debug "Remove non-distributed parts of Python install"
756-
try rm -rf "$DIST_PATH"/python/bin
757-
try rm -rf "$DIST_PATH"/python/share
758-
try rm -rf "$DIST_PATH"/python/lib/pkgconfig
759-
try rm -rf "$DIST_PATH"/python/lib/libpython2.7.so
760+
try rm -rf python/python/bin
761+
try rm -rf python/python/share
762+
try rm -rf python/python/lib/pkgconfig
763+
try rm -rf python/python/lib/libpython2.7.so
760764

761765
debug "Copy libs"
762-
try cp -a $BUILD_PATH/libs .
766+
try cp -a "$BUILD_PATH/libs" .
767+
768+
debug "Install rubicon"
769+
# (Naive) Install of Python library
770+
try cp -r "$BUILD_rubicon/rubicon" python/app_packages
771+
772+
debug "Install accessible copy of Rubicon library"
773+
try mkdir -p python/rubicon/$ARCH
774+
try cp -r libs/$ARCH/librubicon.so python/rubicon/$ARCH/librubicon.so
763775

764776
debug "Strip libraries"
765777
push_arm
766-
try find "$DIST_PATH"/python "$DIST_PATH"/libs -iname '*.so' -exec $STRIP {} \;
778+
try find "$DIST_PATH/python/python" "$DIST_PATH/libs" -iname '*.so' -exec $STRIP {} \;
767779
pop_arm
768780
}
769781

recipes/rubicon/recipe.sh

-4
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,11 @@ function build_rubicon() {
2929
cd $BUILD_rubicon
3030
push_arm
3131

32-
# Install Python components
33-
# try $HOSTPYTHON setup.py install
34-
3532
# Build Java JARs
3633
make dist/rubicon.jar
3734
cp dist/rubicon.jar $LIBS_PATH
3835

3936
# Build JNI component
40-
4137
cd $JNI_PATH
4238
if [ -d "$JNI_PATH/rubicon" ]; then
4339
rm -rf "$JNI_PATH/rubicon"

0 commit comments

Comments
 (0)