@@ -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
0 commit comments