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
3131STRING (STRIP ${tesseract_viewer_python_version2} tesseract_viewer_python_version)
3232MESSAGE (STATUS "tesseract_viewer_python version: ${tesseract_viewer_python_version} " )
3333
34- configure_file ("${CMAKE_CURRENT_SOURCE_DIR} /cmake/setup.py.in" "${CMAKE_CURRENT_BINARY_DIR} /python/setup.py" @ONLY)
35-
3634if (NOT TESSERACT_PYTHON_BUILD_WHEEL)
3735
3836set (enable_setuptools_deb_layout OFF )
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" ?>
22<package format =" 3" >
33 <name >tesseract_viewer_python</name >
4- <version >0.2.2 </version >
4+ <version >0.2.3 </version >
55 <description >The tesseract_viewer_python package</description >
66 <
maintainer email =
" [email protected] " >John Wason</
maintainer >
77 <license >Apache 2.0</license >
Original file line number Diff line number Diff line change 11# Based on https://github.com/robotraconteur/robotraconteur/blob/master/RobotRaconteurPython/setup.py.in
22
33from 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+
411
512setup (name = 'tesseract-robotics-viewer' ,
6- version='@tesseract_viewer_python_version@' ,
13+ version = version ,
714 description = 'Tesseract Viewer Python Library' ,
815 author = 'John Wason' ,
916
You can’t perform that action at this time.
0 commit comments