-
Notifications
You must be signed in to change notification settings - Fork 14
/
setup.py
executable file
·59 lines (54 loc) · 2.16 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages, Extension
from distutils.version import StrictVersion
import versioneer
import subprocess
versioneer.VCS = 'git'
versioneer.versionfile_source = 'simtrans/_version.py'
versioneer.versionfile_build = 'simtrans/_version.py'
versioneer.tag_prefix = ''
versioneer.parentdir_prefix = 'simtrans-'
sdformat_include = [x.lstrip('-I') for x in subprocess.check_output('pkg-config sdformat --cflags-only-I', shell=True, universal_newlines=True).strip().split(' ')]
sdformat_version = subprocess.check_output('pkg-config sdformat --modversion', shell=True, universal_newlines=True).strip()
if StrictVersion(sdformat_version) >= StrictVersion("4.0.0"): #ubuntu16
sdformat_compile_args = ['-std=c++11']
else:
sdformat_compile_args = []
setup(name='simtrans',
version=versioneer.get_version(),
description='Utility to convert robot simulation model to one another.',
long_description='Utility to convert robot simulation model to one another.',
author='',
author_email='',
url='',
license='',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: ',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.7',
'Topic :: Software Development',
],
packages=find_packages(exclude=['tests']),
package_data={'simtrans': ['template/*']},
ext_modules=[
Extension('simtranssdfhelper',
['simtrans/sdfhelper.cpp'],
include_dirs=sdformat_include,
libraries=['sdformat'],
extra_compile_args=sdformat_compile_args
)
],
entry_points={
'console_scripts': [
'simtrans = simtrans.cli:main',
'simtrans-checker = simtrans.cli:checker',
'catxml = simtrans.catxml:main',
'gzfetch = simtrans.gzfetch:main'
]
},
cmdclass=versioneer.get_cmdclass(),
test_suite='nose2.collector.collector')