Skip to content

Commit

Permalink
Fix installation scripts [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
costashatz committed Sep 16, 2024
1 parent 0bd4ac9 commit 76ea6dd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 15 deletions.
21 changes: 9 additions & 12 deletions scripts/install_osx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ mkdir -p temp_robot_dart
cd temp_robot_dart

if [ $CLEAN -ne 0 ]; then
rm -rf dart
sudo rm -rf dart
fi

# DART related
Expand All @@ -34,9 +34,9 @@ git clone https://github.com/dartsim/dart.git
fi
cd dart
git checkout tags/v6.13.2
if [ -d "build" ] # In case of a previous attempt that has not been clean
if [ -d "build" ] # In case of a previous attempt that has not been cleaned
then
rm -rf build
sudo rm -rf build
fi
mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/opt/dart -DDART_BUILD_DARTPY=ON ..
Expand All @@ -48,11 +48,11 @@ export DYLD_LIBRARY_PATH=/opt/dart/lib:$DYLD_LIBRARY_PATH
export PYTHONPATH=/opt/dart:/opt/dart/lib/python3/dist-packages:$PYTHONPATH

if [ $CLEAN -ne 0 ]; then
rm -rf corrade
rm -rf magnum
rm -rf magnum-plugins
rm -rf magnum-integration
rm -rf magnum-bindings
sudo rm -rf corrade
sudo rm -rf magnum
sudo rm -rf magnum-plugins
sudo rm -rf magnum-integration
sudo rm -rf magnum-bindings
fi

# Magnum related
Expand Down Expand Up @@ -115,10 +115,7 @@ make -j
cd src/python
sudo python3 setup.py install --root=/opt/magnum/lib --install-purelib=python3/site-packages --install-platlib=python3/site-packages --install-scripts=python3/scripts --install-headers=python3/include --install-data=python3/data

cd ../../../../..
if [ $CLEAN -ne 0 ]; then
rm -rf temp_robot_dart
fi
cd ../../../../../..

export PYTHONPATH=/opt/magnum/lib/python3/site-packages:$PYTHONPATH

Expand Down
3 changes: 0 additions & 3 deletions scripts/install_ubuntu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,6 @@ cd src/python
sudo python3 setup.py install --root=/opt/magnum/lib --install-purelib=python3/site-packages --install-platlib=python3/site-packages --install-scripts=python3/scripts --install-headers=python3/include --install-data=python3/data

cd ../../../../..
if [ $CLEAN -ne 0 ]; then
rm -rf temp_robot_dart
fi

export PYTHONPATH=/opt/magnum/lib/python3/site-packages:$PYTHONPATH

Expand Down

0 comments on commit 76ea6dd

Please sign in to comment.