forked from kindsenior/log_plotter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
25 lines (22 loc) · 857 Bytes
/
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
#!/usr/bin/env python
try: # install in catkin work space
from distutils.core import setup
from catkin_pkg.python_setup import generate_distutils_setup
d = generate_distutils_setup(
packages=['log_plotter'],
package_dir={'': 'src'},
scripts=['src/log_plotter/datalogger_plotter_with_pyqtgraph.py'],
)
setup(**d)
except: # install in /usr/local/
print('catkin is not installed. use setuptools instead')
from setuptools import setup, find_packages
from os.path import join
setup(name='log_plotter',
version='0.0.0',
description='log plotter for hrpsys',
packages=[join('src', package) for package in find_packages(where='./src/')],
entry_points="""
[console_scripts]
datalogger-plotter-with-pyqtgraph = log_plotter:main
""",)