python_distutils_install.sh 1.4 KB

123456789101112131415161718192021222324252627282930313233
  1. #!/bin/sh
  2. if [ -n "$DESTDIR" ] ; then
  3. case $DESTDIR in
  4. /*) # ok
  5. ;;
  6. *)
  7. /bin/echo "DESTDIR argument must be absolute... "
  8. /bin/echo "otherwise python's distutils will bork things."
  9. exit 1
  10. esac
  11. fi
  12. echo_and_run() { echo "+ $@" ; "$@" ; }
  13. echo_and_run cd "/home/neousys/autoware.ai/src/autoware/utilities/autoware_launcher"
  14. # ensure that Python install destination exists
  15. echo_and_run mkdir -p "$DESTDIR/home/neousys/autoware.ai/install/autoware_launcher/lib/python2.7/dist-packages"
  16. # Note that PYTHONPATH is pulled from the environment to support installing
  17. # into one location when some dependencies were installed in another
  18. # location, #123.
  19. echo_and_run /usr/bin/env \
  20. PYTHONPATH="/home/neousys/autoware.ai/install/autoware_launcher/lib/python2.7/dist-packages:/home/neousys/autoware.ai/build/autoware_launcher/lib/python2.7/dist-packages:$PYTHONPATH" \
  21. CATKIN_BINARY_DIR="/home/neousys/autoware.ai/build/autoware_launcher" \
  22. "/usr/bin/python2" \
  23. "/home/neousys/autoware.ai/src/autoware/utilities/autoware_launcher/setup.py" \
  24. \
  25. build --build-base "/home/neousys/autoware.ai/build/autoware_launcher" \
  26. install \
  27. --root="${DESTDIR-/}" \
  28. --install-layout=deb --prefix="/home/neousys/autoware.ai/install/autoware_launcher" --install-scripts="/home/neousys/autoware.ai/install/autoware_launcher/bin"