-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathsetup.py
More file actions
45 lines (42 loc) · 2.32 KB
/
setup.py
File metadata and controls
45 lines (42 loc) · 2.32 KB
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
import subprocess
import sys
from setuptools import setup
# First we check MicMac in installed and in the PATH
(out, err) = subprocess.Popen('mm3d -help', shell=True,
stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate()
if out.decode(sys.stdout.encoding).count('MicMac') == 0:
print('Installation could not be done: MicMac (mm3d) could not be found.')
sys.exit(1)
with open('requirements.txt') as f:
required = f.read().splitlines()
setup(
name='pymicmac',
version='1.0.1',
packages=['pymicmac', 'pymicmac.logsparser', 'pymicmac.logsplotter', 'pymicmac.noodles',
'pymicmac.workflow', 'pymicmac.workflow.distributed_tapioca', 'pymicmac.workflow.distributed_matching', ],
license='',
long_description=open('README.md').read(),
author='Oscar Martinez-Rubi',
url='https://github.com/ImproPhoto/pymicmac',
install_requires=required,
entry_points={
'console_scripts': [
'micmac-run-workflow=pymicmac.workflow.run_workflow:main',
'micmac-disttapioca-create-pairs=pymicmac.workflow.distributed_tapioca.create_all_image_pairs_file:main',
'micmac-disttapioca-create-config=pymicmac.workflow.distributed_tapioca.create_parcommands_config_file:main',
'micmac-disttapioca-combine=pymicmac.workflow.distributed_tapioca.combine_distributed_tapioca_output:main',
'micmac-distmatching-create-config=pymicmac.workflow.distributed_matching.create_parcommands_config_file:main',
'micmac-tapas-log-anal=pymicmac.logsparser.get_tapas_nums:main',
'micmac-redtiep-log-anal=pymicmac.logsparser.get_redtiep_nums:main',
'micmac-campari-log-anal=pymicmac.logsparser.get_campari_nums:main',
'micmac-gcpbascule-log-anal=pymicmac.logsparser.get_gcpbascule_nums:main',
'micmac-homol-compare=pymicmac.logsparser.get_homol_diffs:main',
'micmac-gcpbascule-log-plot=pymicmac.logsplotter.plot_gcpbascule_nums:main',
'micmac-campari-log-plot=pymicmac.logsplotter.plot_campari_nums:main',
'micmac-gcps-plot=pymicmac.logsplotter.plot_gcps:main',
'micmac-tiep-plot=pymicmac.logsplotter.plot_tiep:main',
'micmac-noodles=pymicmac.noodles.noodles_exe_parallel:main',
],
},
)