-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
executable file
·104 lines (88 loc) · 4.46 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
#!/usr/bin/env python
"""
This is part of the TIMEleSS tools
http://timeless.texture.rocks/
Copyright (C) S. Merkel, Universite de Lille, France
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
"""
# Python 2 to python 3 migration tools
from __future__ import absolute_import
#from distutils.core import setup,Extension
from setuptools import setup,Extension
import sys
from distutils import util
if sys.version_info < (3,0):
sys.exit('Sorry, Python 2 is not supported. This should be run in python3 or later')
pathMySubPackage1 = util.convert_path('TIMEleSS/general')
pathMySubPackage2 = util.convert_path('TIMEleSS/simulation')
pathMySubPackage3 = util.convert_path('TIMEleSS/diffraction')
pathMySubPackage4 = util.convert_path('TIMEleSS/evaluation')
setup(
name='TIMEleSS-tools',
python_requires='>3.0.0',
version='1.0.0',
description='Multigrain crystallography toolbox from the TIMEleSS project',
license='GPL',
maintainer='Sebastien Merkel',
maintainer_email='[email protected]',
url = 'https://github.com/FABLE-3DXRD/TIMEleSS',
project_urls={
'Documentation': 'http://multigrain.texture.rocks/',
'Source': 'https://github.com/FABLE-3DXRD/TIMEleSS',
'Science project': 'http://timeless.texure.rocks',
},
install_requires=['xfab','numpy','scipy','fabio','matplotlib','PycifRW', 'PyQt5'],
package_dir = {
'TIMEleSS': 'TIMEleSS',
'TIMEleSS.general': pathMySubPackage1,
'TIMEleSS.simulation': pathMySubPackage2,
'TIMEleSS.diffraction': pathMySubPackage3,
'TIMEleSS.evaluation': pathMySubPackage4},
packages=['TIMEleSS', 'TIMEleSS.general', 'TIMEleSS.simulation', 'TIMEleSS.diffraction', 'TIMEleSS.evaluation'],
entry_points = {
'console_scripts': [
'timelessTest = TIMEleSS.simulation.test:test',
'timelessGrainComparison = TIMEleSS.simulation.grainComparison:run',
'timelessGrainPeaksComparison = TIMEleSS.simulation.grainPeaksComparison:run',
'timelessGrainSpotterMerge = TIMEleSS.simulation.grainSpotterMerge:run',
'timelessTiff2edf = TIMEleSS.diffraction.tiff2edf:run',
'timelessID27_hdf5_To_Edf = TIMEleSS.diffraction.ID27_hdf5_To_Edf:run',
'timelessMccd2edf = TIMEleSS.diffraction.mccd2edf:run',
'timelessEdf2tiffFileSeries = TIMEleSS.diffraction.edf2tiffFileSeries:run',
'timelessEdf2tiff = TIMEleSS.diffraction.edf2tiffSingle:run',
'timelessAverageEDF = TIMEleSS.diffraction.averageImage:run',
'timelessSubtractEDF = TIMEleSS.diffraction.subtractImage:run',
'timelessMeanFileSeries = TIMEleSS.diffraction.meanFileSeries:run',
'timelessCreateEmptyImage = TIMEleSS.diffraction.createEmptyImage:run',
'timelessDiamondSpotRemoval = TIMEleSS.diffraction.diamondSpotRemoval:run',
'timelessDACShadow = TIMEleSS.diffraction.dacShadowMask:run',
'timelessClearGVEGrains = TIMEleSS.simulation.clearGVEGrains:run',
'timelessClearFLTGrains = TIMEleSS.simulation.clearFLTGrains:run',
'timelessSaveFLTGrains = TIMEleSS.simulation.fltForGrains:run',
'timelessExtractEulerAngles = TIMEleSS.evaluation.extractEulerAngles:run',
'timelessTestGSEulerAngles = TIMEleSS.evaluation.testGSEulerAngles:run',
'timelessTestGSvsGVE = TIMEleSS.evaluation.testGSvsGVE:run',
'timeless2thetaHistFromGVE = TIMEleSS.evaluation.twoThetaHistFromGVE:run',
'timelessGSIndexingStatistics = TIMEleSS.evaluation.GSIndexingStatistics:run',
'timelessPeaksFromCIF = TIMEleSS.simulation.printPeaksFromCIF:run',
'timelessUpdateGVEFromCIF = TIMEleSS.simulation.updateGVEFromCIF:run',
'timelessFixGSOutput = TIMEleSS.evaluation.fixGrainSpotterOutput:run',
'timelessTthHistogram2Maud = TIMEleSS.evaluation.tthHistogram2Maud:run',
'timelessExtractGrainSizes = TIMEleSS.evaluation.extractGrainSizes:run',
'timelessRelToAbsGrainSize = TIMEleSS.evaluation.relToAbsGrainSize:run',
],
'gui_scripts': [
'timelessPlotIndexedGrain = TIMEleSS.evaluation.testGrainsPeaksGui:run',
]
}
)