File tree Expand file tree Collapse file tree 3 files changed +9
-4
lines changed Expand file tree Collapse file tree 3 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -31,8 +31,6 @@ STRING (REGEX REPLACE "<version>([0-9]+\\.[0-9]+\\.[0-9]+)</version>" "\\1" tess
31
31
STRING (STRIP ${tesseract_viewer_python_version2} tesseract_viewer_python_version )
32
32
MESSAGE (STATUS "tesseract_viewer_python version: ${tesseract_viewer_python_version} " )
33
33
34
- configure_file ("${CMAKE_CURRENT_SOURCE_DIR} /cmake/setup.py.in" "${CMAKE_CURRENT_BINARY_DIR} /python/setup.py" @ONLY )
35
-
36
34
if (NOT TESSERACT_PYTHON_BUILD_WHEEL )
37
35
38
36
set (enable_setuptools_deb_layout OFF )
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" ?>
2
2
<package format =" 3" >
3
3
<name >tesseract_viewer_python</name >
4
- <version >0.2.2 </version >
4
+ <version >0.2.3 </version >
5
5
<description >The tesseract_viewer_python package</description >
6
6
<maintainer email =" wason@wasontech.com" >John Wason</maintainer >
7
7
<license >Apache 2.0</license >
Original file line number Diff line number Diff line change 1
1
# Based on https://github.com/robotraconteur/robotraconteur/blob/master/RobotRaconteurPython/setup.py.in
2
2
3
3
from setuptools import setup , Distribution
4
+ import os
5
+ from xml .etree import ElementTree as ET
6
+
7
+ tree = ET .parse (os .path .join (os .path .dirname (__file__ ), 'package.xml' ))
8
+ root = tree .getroot ()
9
+ version = root .find ('version' ).text
10
+
4
11
5
12
setup (name = 'tesseract-robotics-viewer' ,
6
- version='@tesseract_viewer_python_version@' ,
13
+ version = version ,
7
14
description = 'Tesseract Viewer Python Library' ,
8
15
author = 'John Wason' ,
9
16
author_email = 'wason@wasontech.com' ,
You can’t perform that action at this time.
0 commit comments