This repository has been archived by the owner on Feb 11, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
41 lines (35 loc) · 1.8 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
#!/usr/bin/env python
import sys
from setuptools import setup, find_packages # This setup relies on setuptools since distutils is insufficient and badly hacked code
# Figure out if we're installing on control PC or on server
_server = 'server' in sys.argv
# Remove "server" from sys.argv
if _server:
sys.argv.remove('server')
version = '1.3.0'
author = 'Pascal Wolf'
author_email = '[email protected]'
with open('requirements.txt' if not _server else 'requirements_server.txt') as f:
required = f.read().splitlines()
# Make dict to pass to setup
setup_kwargs = {'name': 'irrad_control',
'version': version,
'description': 'Control software for irradiation facility at HISKP cyclotron at Bonn University',
'url': 'https://github.com/SiLab-Bonn/irrad_control',
'license': 'MIT License',
'long_description': '',
'author': author,
'maintainer': author,
'author_email': author_email,
'maintainer_email': author_email,
'packages': find_packages(),
'setup_requires': ['setuptools'],
'install_requires': required,
'include_package_data': True, # accept all data files and directories matched by MANIFEST.in or found in source control
'package_data': {'': ['README.*', 'VERSION'], 'docs': ['*'], 'examples': ['*']},
'keywords': ['radiation damage', 'NIEL', 'silicon', 'irradiation', 'proton', 'fluence'],
'platforms': 'any',
'entry_points': {'console_scripts': [('irrad_server = {0}.server:main' if _server else '{0} = {0}.main:main').format('irrad_control'), 'irrad_analyse = irrad_control.analysis.main:main']}
}
# Setup
setup(**setup_kwargs)