-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
70 lines (64 loc) · 1.9 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
#!/usr/bin/env python
from setuptools import setup
import os
import glob
scripts = glob.glob('src/*.py')
version_long = '0.2.0'
# 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_bin_wrapper')
package_data = glob.glob('binaries/*')
os.chdir('../../')
if __name__ == '__main__':
setup(
name='crtomo_bin_wrapper',
version=version_long,
description='CRTomo Binary Wrapper Toolbox',
author='Maximilian Weigand',
license='MIT',
author_email='mweigand@geo.uni-bonn.de',
url='https://github.com/geophysics-ubonn/crtomo_bin_wrapper',
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_bin_wrapper': 'lib/crtomo_bin_wrapper'
},
# packages=[''],
# package_dir={'': 'lib', 'grid_tools': 'src/GRID_TOOLS'},
# packages=find_packages(),
packages=['crtomo_bin_wrapper', ],
package_data={'crtomo_bin_wrapper': 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',
],
)