34 lines
1.1 KiB
Bash
34 lines
1.1 KiB
Bash
|
#!/bin/sh
|
||
|
|
||
|
if [ -n "$DESTDIR" ] ; then
|
||
|
case $DESTDIR in
|
||
|
/*) # ok
|
||
|
;;
|
||
|
*)
|
||
|
/bin/echo "DESTDIR argument must be absolute... "
|
||
|
/bin/echo "otherwise python's distutils will bork things."
|
||
|
exit 1
|
||
|
esac
|
||
|
fi
|
||
|
|
||
|
echo_and_run() { echo "+ $@" ; "$@" ; }
|
||
|
|
||
|
echo_and_run cd "/home/test/My/src/image_geometry"
|
||
|
|
||
|
# ensure that Python install destination exists
|
||
|
echo_and_run mkdir -p "$DESTDIR/home/test/My/install/lib/python2.7/dist-packages"
|
||
|
|
||
|
# Note that PYTHONPATH is pulled from the environment to support installing
|
||
|
# into one location when some dependencies were installed in another
|
||
|
# location, #123.
|
||
|
echo_and_run /usr/bin/env \
|
||
|
PYTHONPATH="/home/test/My/install/lib/python2.7/dist-packages:/home/test/My/build/lib/python2.7/dist-packages:$PYTHONPATH" \
|
||
|
CATKIN_BINARY_DIR="/home/test/My/build" \
|
||
|
"/usr/bin/python2" \
|
||
|
"/home/test/My/src/image_geometry/setup.py" \
|
||
|
\
|
||
|
build --build-base "/home/test/My/build/image_geometry" \
|
||
|
install \
|
||
|
--root="${DESTDIR-/}" \
|
||
|
--install-layout=deb --prefix="/home/test/My/install" --install-scripts="/home/test/My/install/bin"
|