Skip to content

Commit

Permalink
use python 3
Browse files Browse the repository at this point in the history
  • Loading branch information
nim65s committed Feb 18, 2020
1 parent 004b982 commit 57f6477
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -43,17 +43,14 @@ build() {
cd ${srcdir}/build

# Fix Python2/Python3 conflicts
/usr/share/ros-build-tools/fix-python-scripts.sh -v 2 ${srcdir}/${_dir}
/usr/share/ros-build-tools/fix-python-scripts.sh -v 3 ${srcdir}/${_dir}

# Build project
cmake ${srcdir}/${_dir} \
-DCMAKE_BUILD_TYPE=Release \
-DCATKIN_BUILD_BINARY_PACKAGE=ON \
-DCMAKE_INSTALL_PREFIX=/opt/ros/melodic \
-DPYTHON_EXECUTABLE=/usr/bin/python2 \
-DPYTHON_INCLUDE_DIR=/usr/include/python2.7 \
-DPYTHON_LIBRARY=/usr/lib/libpython2.7.so \
-DPYTHON_BASENAME=-python2.7 \
-DPYTHON_EXECUTABLE=/usr/bin/python \
-DSETUPTOOLS_DEB_LAYOUT=OFF
make
}
Expand Down

0 comments on commit 57f6477

Please sign in to comment.