Skip to content

Commit 13a4dba

Browse files
changing python to python3 and changing dict.iteritems() to python3 method
1 parent e39ab58 commit 13a4dba

21 files changed

+57
-58
lines changed

.project

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
</projects>
77
<buildSpec>
88
<buildCommand>
9-
<name>org.python.pydev.PyDevBuilder</name>
9+
<name>org.python3.pydev.PyDevBuilder</name>
1010
<arguments>
1111
</arguments>
1212
</buildCommand>
1313
</buildSpec>
1414
<natures>
15-
<nature>org.python.pydev.pythonNature</nature>
15+
<nature>org.python3.pydev.pythonNature</nature>
1616
</natures>
1717
</projectDescription>

.pydevproject

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
22
<?eclipse-pydev version="1.0"?><pydev_project>
3-
<pydev_pathproperty name="org.python.pydev.PROJECT_SOURCE_PATH">
3+
<pydev_pathproperty name="org.python3.pydev.PROJECT_SOURCE_PATH">
44
<path>/rosjava_build_tools/src</path>
55
</pydev_pathproperty>
6-
<pydev_property name="org.python.pydev.PYTHON_PROJECT_VERSION">python 2.7</pydev_property>
7-
<pydev_property name="org.python.pydev.PYTHON_PROJECT_INTERPRETER">Default</pydev_property>
6+
<pydev_property name="org.python3.pydev.PYTHON_PROJECT_VERSION">python3 2.7</pydev_property>
7+
<pydev_property name="org.python3.pydev.PYTHON_PROJECT_INTERPRETER">Default</pydev_property>
88
</pydev_project>

env-hooks/15.rosjava.bash.em

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,6 @@ SCRIPT=@(CMAKE_CURRENT_SOURCE_DIR)/generate_environment_variables.py
66
SCRIPT=@(CMAKE_INSTALL_PREFIX)/share/rosjava_build_tools/generate_environment_variables.py
77
@[end if]@
88

9-
if command -v python 1>/dev/null; then PYTHON_EXECUTABLE=python
10-
elif command -v python3 1>/dev/null; then PYTHON_EXECUTABLE=python3
11-
elif command -v python2 1>/dev/null; then PYTHON_EXECUTABLE=python2
12-
else PYTHON_EXECUTABLE=python
13-
fi
14-
15-
export ROS_MAVEN_PATH="`${PYTHON_EXECUTABLE} ${SCRIPT} --maven-path`"
16-
export ROS_MAVEN_DEPLOYMENT_REPOSITORY="`${PYTHON_EXECUTABLE} ${SCRIPT} --maven-deployment-repository`"
17-
export ROS_MAVEN_REPOSITORY="`${PYTHON_EXECUTABLE} ${SCRIPT} --maven-repository`"
9+
export ROS_MAVEN_PATH="`python3 ${SCRIPT} --maven-path`"
10+
export ROS_MAVEN_DEPLOYMENT_REPOSITORY="`python3 ${SCRIPT} --maven-deployment-repository`"
11+
export ROS_MAVEN_REPOSITORY="`python3 ${SCRIPT} --maven-repository`"

env-hooks/15.rosjava.sh.em

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,6 @@ SCRIPT=@(CMAKE_CURRENT_SOURCE_DIR)/generate_environment_variables.py
66
SCRIPT=@(CMAKE_INSTALL_PREFIX)/share/rosjava_build_tools/generate_environment_variables.py
77
@[end if]@
88

9-
if command -v python 1>/dev/null; then PYTHON_EXECUTABLE=python
10-
elif command -v python3 1>/dev/null; then PYTHON_EXECUTABLE=python3
11-
elif command -v python2 1>/dev/null; then PYTHON_EXECUTABLE=python2
12-
else PYTHON_EXECUTABLE=python
13-
fi
14-
15-
export ROS_MAVEN_PATH="`${PYTHON_EXECUTABLE} ${SCRIPT} --maven-path`"
16-
export ROS_MAVEN_DEPLOYMENT_REPOSITORY="`${PYTHON_EXECUTABLE} ${SCRIPT} --maven-deployment-repository`"
17-
export ROS_MAVEN_REPOSITORY="`${PYTHON_EXECUTABLE} ${SCRIPT} --maven-repository`"
9+
export ROS_MAVEN_PATH="`python3 ${SCRIPT} --maven-path`"
10+
export ROS_MAVEN_DEPLOYMENT_REPOSITORY="`python3 ${SCRIPT} --maven-deployment-repository`"
11+
export ROS_MAVEN_REPOSITORY="`python3 ${SCRIPT} --maven-repository`"

generate_environment_variables.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22

33
import os
44
import argparse

package.xml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@
1919
<buildtool_depend condition="$ROS_PYTHON_VERSION == 2">python-setuptools</buildtool_depend>
2020
<buildtool_depend condition="$ROS_PYTHON_VERSION == 3">python3-setuptools</buildtool_depend>
2121

22-
<depend>ant</depend>
23-
<depend>java</depend>
24-
<exec_depend>catkin</exec_depend>
22+
<build_depend>java</build_depend>
23+
<build_depend>ant</build_depend>
24+
<run_depend>java</run_depend>
25+
<run_depend>ant</run_depend>
26+
<run_depend>catkin</run_depend>
27+
<run_depend>create-package</run_depend>
2528
</package>

scripts/catkin_create_android_library_project

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22

33
"""This script creates the skeleton of an android library package"""
44

scripts/catkin_create_android_pkg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22

33
"""This script creates the skeleton of an android repo"""
44

scripts/catkin_create_android_project

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22

33
"""This script creates the skeleton of an android library package"""
44

scripts/catkin_create_rosjava_library_project

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22

33
"""This script creates the skeleton of a rosjava library project"""
44

0 commit comments

Comments
 (0)