forked from NOAA-ORR-ERD/MapRoom
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
143 lines (125 loc) · 3.79 KB
/
setup.py
File metadata and controls
143 lines (125 loc) · 3.79 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
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
#!/usr/bin/env python
"""
setup.py for MapRoom -- mostly to build the Cython extensions
right now - it mostly is to be used as follows:
python setup.py build_ext --inplace
"""
from setuptools import setup, find_packages
from glob import *
import os
import shutil
import subprocess
import sys
is_64bit = sys.maxsize > 2**32
is_conda = len(list(filter(lambda a: a, ["CONDA" in k for k in os.environ.keys()]))) > 0
exec(compile(open('maproom/_version.py').read(), 'maproom/_version.py', 'exec'))
data_files = []
options = {}
packages = find_packages()
package_data = {
'maproom': [
'renderer/gl/font.png',
'templates/*.bna',
'icons/*',
],
}
# setuptools / pip can really make a mess of this
# install the dependencies manually
# e.g. conda install --file conda_requirements.txt
install_requires = []
# install_requires = [
# 'numpy',
# 'scipy',
# 'pyopengl',
# 'cython',
# 'docutils',
# 'markdown',
# 'reportlab',
# 'pyparsing',
# 'requests',
# 'python-dateutil',
# 'pytz',
# 'cftime', # required by netcdf4 but not always installed?
# 'wxpython',
# 'pillow',
# 'urllib3',
# 'certifi',
# 'chardet',
# 'idna',
# 'packaging',
# 'libmaproom>=5.1',
# 'pyugrid',
# 'lat_lon_parser',
# 'jsonpickle>=0.9.4',
# 'bson<1.0.0',
# 'appdirs',
# 'configobj',
# ]
# if is_conda:
# install_requires.extend([
# # 'owslib', # commented out because it overwrites the conda install of OWSLib
# 'shapely',
# 'pyproj',
# 'netCDF4',
# ])
# else:
# install_requires.extend([
# 'owslib',
# 'shapely<1.7',
# 'pyproj==1.9.6', # pyproj version 2 fails outside the -180/+180 range
# 'netCDF4==1.3.1', # newer versions in pypi fail with missing symbol
# ])
# #if sys.platform != "win32":
# if False: # disabling for everybody temporarily
# # pyopengl_accelerate can fail on windows, sometimes. It's not necessary,
# # so by default I'm not including it.
# install_requires.extend([
# 'pyopengl_accelerate',
# ])
setup(
name="MapRoom",
version=__version__,
description="High-performance 2d mapping",
author="NOAA",
install_requires=install_requires,
setup_requires=[
'packaging',
],
data_files=data_files,
packages=packages,
package_data=package_data,
# app=["maproom.py"],
entry_points = {
# NOTE: entry points are processed lexicographically, not in the order
# specified, so force e.g. verdat loader to come before text loader
"maproom.app_framework.loaders": [
'01verdat = maproom.loaders.verdat',
'00project = maproom.loaders.project',
'08nc_particles = maproom.loaders.nc_particles',
'08ugrid = maproom.loaders.ugrid',
'10bna = maproom.loaders.bna',
'10gps = maproom.loaders.gps',
'10cmd = maproom.loaders.logfile',
'20gdal = maproom.loaders.gdal',
'20shapefile = maproom.loaders.shapefile',
'90text = maproom.loaders.text',
'99generic_text = maproom.app_framework.loaders.text',
],
"maproom.app_framework.documents": [
'00layer_manager = maproom.layer_manager',
'99text = maproom.app_framework.documents.text',
],
"maproom.app_framework.editors": [
'editor = maproom.editor',
'html = maproom.app_framework.editors.html_viewer',
'text = maproom.app_framework.editors.text_editor',
],
"maproom.app_framework.remember": [
'app = maproom.app_framework.application',
'styles = maproom.styles',
'servers = maproom.servers',
],
},
options=options,
zip_safe = False,
)