forked from NLeSC/Massive-PotreeConverter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
57 lines (51 loc) · 1.8 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 distutils.core import setup
import subprocess, sys
# First we check PDAL in installed and in the PATH
try:
subprocess.check_call(["pdal","-h"])
except:
print('Installation could not be done: PDAL could not be found.')
sys.exit(1)
# Second we check PotreeConverter in installed and in the PATH
try:
subprocess.check_call(["PotreeConverter","-h"])
except:
print('Installation could not be done: PotreeConverter could not be found.')
sys.exit(1)
# Third we check LAStools in installed and in the PATH
try:
subprocess.check_call(["lasmerge","-h"])
except:
print('Installation could not be done: LAStools could not be found.')
sys.exit(1)
# Fourth we see if pycoeman has been manually installed and is in PYTHONPATH
try:
import pycoeman
except:
print('Installation could not be done: pycoeman could not be found.')
sys.exit(1)
setup(
name='Massive-PotreeConverter',
version='1.0.0',
packages=['pympc', ],
license='',
long_description=open('README.md').read(),
author='Oscar Martinez-Rubi',
author_email='o.rubi@esciencecenter.nl',
url='https://github.com/NLeSC/Massive-PotreeConverter',
install_requires=[
'lxml', 'pycoeman', 'numpy' , 'glob2'],
entry_points={
'console_scripts': [
'mpc-create-config-pycoeman=pympc.create_pycoeman_config_run_massive_potree_converter:main',
'mpc-info=pympc.get_info:main',
'mpc-tiling=pympc.generate_tiles:main',
'mpc-merge=pympc.merge_potree:main',
'mpc-merge-all=pympc.merge_potree_all:main',
'mpc-wkt=pympc.get_wkt:main',
'mpc-sort-index=pympc.sort_index:main',
'mpc-db-extents=pympc.fill_db_extents:main',
'mpc-db-extents-potree=pympc.fill_db_extents_potree:main',
],
},
)