-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·33 lines (28 loc) · 1.14 KB
/
setup.py
File metadata and controls
executable file
·33 lines (28 loc) · 1.14 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
#!/usr/bin/env python
"""
Setup script for arsf_dem
This file has been created by ARSF Data Analysis Node and
is licensed under the GPL v3 Licence. A copy of this
licence is available to download with this file.
"""
import glob, os, sys
from distutils.core import setup
# For windows also copy batch files, incase .py files
# aren't associated with Python.
if sys.platform == 'win32':
scripts_list = glob.glob('scripts\\*.py')
scripts_list.extend(glob.glob('scripts\\*.bat'))
else:
scripts_list = glob.glob('scripts/*.py')
setup(
name='arsf_dem',
version = '0.1',
description = 'ARSF-DAN utilities for working with DEMs',
url = 'https://arsf-dan.nerc.ac.uk/trac/',
packages = ['arsf_dem','arsf_dem.dem_lidar'],
package_dir={'arsf_dem': 'arsf_dem'},
package_data={'arsf_dem' : ['arsf_dem.cfg']},
data_files=[(os.path.join('share','grass_db_template','WGS84LL','PERMANENT'),glob.glob(os.path.join('data','grass_db_template','WGS84LL','PERMANENT','*'))),
(os.path.join('share','grass_db_template','UKBNG','PERMANENT'),glob.glob(os.path.join('data','grass_db_template','UKBNG','PERMANENT','*')))],
scripts = scripts_list,
)