lebeg commented on a change in pull request #10297: [MXNET-244] Fixes for cross
compilation in ARM
URL: https://github.com/apache/incubator-mxnet/pull/10297#discussion_r190845064
##########
File path: ci/docker/runtime_functions.sh
##########
@@ -40,19 +40,24 @@ build_jetson() {
pushd .
mv make/crosscompile.jetson.mk make/config.mk
make -j$(nproc)
-
export MXNET_LIBRARY_PATH=`pwd`/libmxnet.so
cd /work/mxnet/python
- python setup.py bdist_wheel --universal
+ build_wheel
+ popd
+}
- # Fix pathing issues in the wheel. We need to move libmxnet.so from the
data folder to the
- # mxnet folder, then repackage the wheel.
+build_wheel() {
+ set -ex
+ pushd .
+ python setup.py bdist_wheel --universal
WHEEL=`readlink -f dist/*.whl`
TMPDIR=`mktemp -d`
unzip -d $TMPDIR $WHEEL
rm $WHEEL
cd $TMPDIR
mv *.data/data/mxnet/libmxnet.so mxnet
+ cd $TMPDIR
+ #zip -r $WHEEL $TMPDIR
Review comment:
Maybe choose one style? I think ```zip -r $WHEEL $TMPDIR``` is good
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services