Skip to content

Commit

Permalink
Use setuptools instead of distutils (#61)
Browse files Browse the repository at this point in the history
Signed-off-by: ahcorde <ahcorde@gmail.com>
  • Loading branch information
ahcorde authored Mar 27, 2020
1 parent 47f1798 commit 6413983
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 6 deletions.
9 changes: 7 additions & 2 deletions bondpy/package.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?xml version="1.0"?>
<?xml-model href="http://download.ros.org/schema/package_format2.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
<package format="2">
<?xml-model
href="http://download.ros.org/schema/package_format3.xsd"
schematypens="http://www.w3.org/2001/XMLSchema"?>
<package format="3">
<name>bondpy</name>
<version>1.8.4</version>
<description>
Expand All @@ -25,6 +27,9 @@
<exec_depend>smclib</exec_depend>
<exec_depend>uuid</exec_depend>

<buildtool_depend condition="$ROS_PYTHON_VERSION == 2">python-setuptools</buildtool_depend>
<buildtool_depend condition="$ROS_PYTHON_VERSION == 3">python3-setuptools</buildtool_depend>

<export>
<architecture_independent/>
</export>
Expand Down
2 changes: 1 addition & 1 deletion bondpy/setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python

from distutils.core import setup
from setuptools import setup

from catkin_pkg.python_setup import generate_distutils_setup

Expand Down
8 changes: 6 additions & 2 deletions smclib/package.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?xml version="1.0"?>
<?xml-model href="http://download.ros.org/schema/package_format2.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
<package format="2">
<?xml-model
href="http://download.ros.org/schema/package_format3.xsd"
schematypens="http://www.w3.org/2001/XMLSchema"?>
<package format="3">
<name>smclib</name>
<version>1.8.4</version>
<description>
Expand All @@ -20,6 +22,8 @@
<author>Various</author>

<buildtool_depend>catkin</buildtool_depend>
<buildtool_depend condition="$ROS_PYTHON_VERSION == 2">python-setuptools</buildtool_depend>
<buildtool_depend condition="$ROS_PYTHON_VERSION == 3">python3-setuptools</buildtool_depend>

<export>
<architecture_independent/>
Expand Down
2 changes: 1 addition & 1 deletion smclib/setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python

from distutils.core import setup
from setuptools import setup

from catkin_pkg.python_setup import generate_distutils_setup

Expand Down

0 comments on commit 6413983

Please sign in to comment.