-
Notifications
You must be signed in to change notification settings - Fork 9
/
setup.py
72 lines (66 loc) · 1.95 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
from setuptools import setup
import os
import glob
scripts = glob.glob('src/*.py')
version_long = '0.3.3'
# generate entry points
entry_points = {'console_scripts': []}
scripts = [os.path.basename(script)[0:-3] for script in glob.glob('src/*.py')]
for script in scripts:
print(script)
entry_points['console_scripts'].append(
'{0} = {0}:main'.format(script)
)
# package data
os.chdir('lib/crtomo')
package_data = glob.glob('debug_data/*')
package_data += glob.glob('notebook/manual/html/**', recursive=True)
os.chdir('../../')
if __name__ == '__main__':
setup(
name='crtomo_tools',
version=version_long,
description='CRTomo Python Toolbox',
author='Maximilian Weigand',
license='MIT',
author_email='mweigand@geo.uni-bonn.de',
url='https://github.com/geophysics-ubonn/crtomo_tools',
entry_points=entry_points,
# python_requires='>=3.11',
# entry_points={
# 'console_scripts': [
# 'td_test = td_test:main',
# ],
# },
# package_dir={'': 'src/', 'crtomo': 'lib/crtomo'},
package_dir={
'': 'src',
'crtomo': 'lib/crtomo',
'crtomo.notebook': 'lib/crtomo/notebook',
},
# packages=[''],
# package_dir={'': 'lib', 'grid_tools': 'src/GRID_TOOLS'},
# packages=find_packages(),
packages=['crtomo', 'crtomo.notebook', ],
package_data={'crtomo': package_data},
py_modules=scripts,
# py_modules=[
# splitext(basename(i))[0] for i in glob.glob("src/*.py")
# ]
# packages=[
# 'crtomo',
# ],
# scripts=scripts,
install_requires=[
'numpy',
'scipy',
'matplotlib',
'pandas',
'shapely',
'sip_models',
'geccoinv',
'pillow',
'reda',
],
)