@@ -747,23 +747,35 @@ function run_distribute() {
747
747
info " Run distribute"
748
748
749
749
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
750
754
751
755
debug " Copy python distribution"
752
756
# $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
754
758
755
759
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
760
764
761
765
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
763
775
764
776
debug " Strip libraries"
765
777
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 {} \;
767
779
pop_arm
768
780
}
769
781
0 commit comments