Skip to content

Commit

Permalink
Import setup from setuptools instead of distutils.core (#253)
Browse files Browse the repository at this point in the history
* updated package.xml to format version 3

* change to setuptools in accordance with migration guide
  • Loading branch information
arne48 authored Sep 18, 2023
1 parent b44e90c commit 849178c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion wiimote/package.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<package format="2">
<package format="3">
<name>wiimote</name>
<version>1.15.0</version>
<license>GPL</license>
Expand All @@ -24,6 +24,8 @@
<author email="[email protected]">Mark Horn</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>

<build_depend>message_generation</build_depend>
<build_depend>roslint</build_depend>
Expand Down
2 changes: 1 addition & 1 deletion wiimote/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

d = generate_distutils_setup(
Expand Down

0 comments on commit 849178c

Please sign in to comment.