forked from sumit075/plot2table
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
37 lines (33 loc) · 954 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
25
26
27
28
29
30
31
32
33
34
35
36
37
#! /usr/bin/env python
import warnings
from glob import glob
try:
from setuptools import setup
SETUPTOOLS_PRESENT = True
except:
from distutils.core import setup
SETUPTOOLS_PRESENT = False
if SETUPTOOLS_PRESENT:
extras = {"entry_points": {
'console_scripts': [
'plot2table = plottotable:main'
]
}}
else:
extras = {}
warnings.warn(
"CLI tool would not work without the setuptools module. "
"Use launch.py script to start the software."
)
if __name__ == "__main__":
setup(
name="PlotToTable",
packages=['plottotable', 'plottotable.tests'],
scripts=['bin/multicrop'],
data_files = [
('plottotable/data/', glob('plottotable/data/*')),
('plottotable/test-inputs/', glob('plottotable/test-inputs/*')),
('plottotable/user-manual/', glob('plottotable/user-manual/*'))
],
**extras
)