Skip to content

Commit

Permalink
Remove redundant python parts of build.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasw authored Jul 19, 2024
1 parent 7359aaa commit 4f8ebf8
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 4f8ebf8

Please sign in to comment.