From 4f8ebf83c25fcf5bf4f99409933d588daa2a2a65 Mon Sep 17 00:00:00 2001 From: Lucas Walter Date: Fri, 19 Jul 2024 09:00:54 -0700 Subject: [PATCH] Remove redundant python parts of build.sh --- build.sh | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/build.sh b/build.sh index e92a914..47bcccf 100755 --- a/build.sh +++ b/build.sh @@ -18,30 +18,11 @@ WS=`pwd`/underlay_ws/src echo $WS mkdir $WS -p -# python installs - -python --version | awk '{print $2}' | cut -d'.' -f1 -# TODO(lucasw) these aren't working -PYTHON_MAJOR_VERSION=`python --version | awk '{print $2}' | cut -d'.' -f1` -PYTHON_MINOR_VERSION=`python --version | awk '{print $2}' | cut -d'.' -f2` -# ubuntu 20.04? -OPT_PYTHONPATH0=$DEST/lib/python$PYTHON_MAJOR_VERSION.$PYTHON_MINOR_VERSION/site-packages/ -mkdir -p $OPT_PYTHONPATH0 -echo $PYTHONPATH0 -# ubuntu 24.04 and 22.04? -OPT_PYTHONPATH1=$DEST/local/lib/python$PYTHON_MAJOR_VERSION.$PYTHON_MINOR_VERSION/dist-packages/ -mkdir -p $OPT_PYTHONPATH1 -echo $PYTHONPATH1 - ROS_DEST=$DEST source $WS/../env.sh -# export PYTHONPATH=$PYTHONPATH:$OPT_PYTHONPATH0:$OPT_PYTHONPATH1 - # catkin_pkg cd $WS/catkin_pkg python3 setup.py install --prefix=$DEST --record install_manifest.txt --single-version-externally-managed -ls -l $OPT_PYTHONPATH0 || ls -l $OPT_PYTHONPATH1 -ls -l $OPT_PYTHONPATH0/catkin_pkg* || ls -l $OPT_PYTHONPATH1/catkin_pkg* # python -c "import sys; print(sys.path)" python -c "import catkin_pkg; print(catkin_pkg.__version__)" python -c "from catkin_pkg.package import parse_package"