-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
54 lines (47 loc) · 1.79 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
#!/usr/bin/env python
from setuptools import setup
from setuptools import find_packages
import pytlu
with open('VERSION') as version_file:
version = version_file.read().strip()
with open('requirements.txt') as f:
install_requires = f.read().splitlines()
setup(
name='pytlu',
version=version,
description='DAQ for EUDAQ TLU',
url='https://github.com/SiLab-Bonn/pytlu',
license='',
long_description='',
author='Janek Fleper, Tomasz Hemperek, Yannick Dieter, Jens Janssen',
maintainer='Tomasz Hemperek',
maintainer_email='[email protected]',
packages=find_packages(),
include_package_data=True,
install_requires=install_requires,
entry_points={
'console_scripts': [
'pytlu = pytlu.tlu:main',
'pytlu_eudaq = pytlu.tlu_eudaq:main',
'pytlu_monitor = pytlu.online_monitor.start_pytlu_online_monitor:main',
]
},
platforms='any'
)
# FIXME: bad practice to put code into setup.py
# Add the online_monitor pytlu plugins
try:
import os
from online_monitor.utils import settings
# Get the absoulte path of this package
package_path = os.path.dirname(pytlu.__file__)
# Add online_monitor plugin folder to entity search paths
settings.add_producer_sim_path(os.path.join(package_path,
'online_monitor'))
settings.add_converter_path(os.path.join(package_path,
'online_monitor'))
settings.add_receiver_path(os.path.join(package_path,
'online_monitor'))
except ImportError:
pass