-
Notifications
You must be signed in to change notification settings - Fork 5
/
setup.py
57 lines (52 loc) · 3.2 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
from setuptools import setup
import setuptools
import os
import sys
_here = os.path.abspath(os.path.dirname(__file__))
operatingSystem = sys.platform
if sys.version_info[0] < 3:
with open(os.path.join(_here, 'README.md')) as f:
long_description = f.read()
else:
with open(os.path.join(_here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
installFolder = os.path.abspath(os.path.join(os.path.split(setuptools.__file__)[0],'..'))
pythonPath = os.path.relpath(os.path.join(installFolder,'MJOLNIR'),sys.base_prefix)
setup(
name='MJOLNIR',
version='1.3.2',
description=('Neutron Scattering software suite.'),
long_description=long_description,
author='Jakob Lass',
author_email='lass.jakob@gmail.com',
url='https://github.com/jakob-lass/MJOLNIR',
license='MPL-2.0',
data_files = [(pythonPath, ["LICENSE.txt"]),((os.path.join(pythonPath),['MJOLNIR/Normalization_1.calib', 'MJOLNIR/Normalization_2.calib', 'MJOLNIR/Normalization_3.calib', 'MJOLNIR/Normalization_4.calib',
'MJOLNIR/Normalization_5.calib', 'MJOLNIR/Normalization_6.calib', 'MJOLNIR/Normalization_7.calib', 'MJOLNIR/Normalization_8.calib'])),((os.path.join(pythonPath),['MJOLNIR/CalibrationFlatCone.csv'])),((os.path.join(pythonPath),['MJOLNIR/CalibrationMultiFLEXX.csv'])),((os.path.join(pythonPath),['MJOLNIR/CalibrationBambus.csv'])),
((os.path.join(pythonPath,'Geometry'),['MJOLNIR/Geometry/detsequence.dat']))],#,(pythonPath+'/CommandLineScripts/',['MJOLNIR/CommandLineScripts/.settings'])],
packages=['MJOLNIR','MJOLNIR/Data','MJOLNIR/Geometry','MJOLNIR/Statistics','MJOLNIR/CommandLineScripts'],
#scripts=['MJOLNIR/CommandLineScripts/MJOLNIRCalibrationInspector','MJOLNIR/CommandLineScripts/MJOLNIRHistory','MJOLNIR/CommandLineScripts/MJOLNIRConvert',
#'MJOLNIR/CommandLineScripts/MJOLNIR3DView'],
entry_points = {
"console_scripts": ['MJOLNIRHistory = MJOLNIR.CommandLineScripts.MJOLNIRHistory:main',
'MJOLNIRConvert = MJOLNIR.CommandLineScripts.MJOLNIRConvert:main',
'MJOLNIRCalibrationInspector = MJOLNIR.CommandLineScripts.MJOLNIRCalibrationInspector:main',
'MJOLNIR3DView = MJOLNIR.CommandLineScripts.MJOLNIR3DView:main']
},
python_requires='>=3.5' if not operatingSystem == 'darwin' else '>=3.6',
install_requires=['matplotlib>=3','numpy>=1.14','h5py>=2.5','scipy','datetime','pytest>=4.6','pyperclip','decorator','pandas','future','sympy',
'pip>=20','ufit>=1.4.0','pyqtgraph','regex'], # ,'ufit','sip','PyQt5-sip','PyQt5<=5.12'
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Science/Research',
'Natural Language :: English',
'Operating System :: OS Independent',
'Topic :: Scientific/Engineering :: Physics',
'Topic :: Scientific/Engineering :: Visualization',
'Topic :: Scientific/Engineering :: Information Analysis',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9'],
)