-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
72 lines (62 loc) · 2.03 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
60
61
62
63
64
65
66
67
68
69
70
71
72
#!/usr/bin/env python
"""The setup script."""
import platform
from setuptools import find_packages, setup
with open('README.rst') as readme_file:
readme = readme_file.read()
with open('HISTORY.rst') as history_file:
history = history_file.read()
with open("requirements.txt") as requirements_file:
requirements = requirements_file.readlines()
setup_requirements = ['pytest-runner', ]
test_requirements = ['pytest>=3', ]
# Determine the correct platform
system = platform.system()
arch, _ = platform.architecture()
if system == 'Linux':
if arch == '64bit':
efxsdk = 'lib/linux64/efX-SDK.so'
else:
efxsdk = 'lib/linux32/efX-SDK.so'
if system == 'Windows':
efxsdk = 'lib/win32/efX-SDK.dll'
if system == 'Darwin':
efxsdk = 'lib/mac32/efX-SDK'
setup(
author="Tim Parker",
author_email='[email protected]',
python_requires='>=3.10',
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Developers',
'Natural Language :: English',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.10',
],
description="Utility library for consuming and manipulating x-ray data in RAW format",
entry_points={
'console_scripts': [
'raw-convert=rawtools.cli:raw_convert',
'raw-generate=rawtools.cli:raw_generate',
'nsihdr2raw=rawtools.cli:raw_nsihdr',
'raw2img=rawtools.cli:raw_image',
'raw-qc=rawtools.cli:raw_qc',
'img2pcd=rawtools.img2pcd:main'
],
},
install_requires=requirements,
long_description=readme + '\n\n' + history,
include_package_data=True,
package_data={
"efxsdk": [efxsdk]
},
keywords='rawtools',
name='rawtools',
packages=find_packages(include=['rawtools', 'rawtools.*']),
setup_requires=setup_requirements,
test_suite='tests',
tests_require=test_requirements,
url='https://github.com/Topp-Roots-Lab/python-rawtools',
version='0.6.0',
zip_safe=False,
)