-
Notifications
You must be signed in to change notification settings - Fork 39
/
setup.py
65 lines (59 loc) · 1.86 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
#!/usr/bin/env python
try:
from setuptools import setup
HAS_SETUPTOOLS = True
except ImportError:
from distutils.core import setup
HAS_SETUPTOOLS = False
options = dict(name='ogcserver',
version='0.1.1',
description="A OGC WMS for Mapnik",
#long_description="TODO",
author='Jean-Francois Doyon',
maintainer='Dane Springmeyer',
maintainer_email='dane@dbsgeo.com',
requires=['mapnik (>=0.7.0)'],
provides=['ogcserver'],
keywords='mapnik,wms,gis,geospatial',
url='https://github.com/mapnik/OGCServer',
packages=['ogcserver'],
scripts=['bin/ogcserver'],
package_data={
'ogcserver':['default.conf'],
},
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'License :: OSI Approved :: BSD License',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Scientific/Engineering :: GIS',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Utilities'],
)
if HAS_SETUPTOOLS:
options.update(dict(entry_points={
'paste.app_factory': ['mapfile=ogcserver.wsgi:ogcserver_map_factory',
'wms_factory=ogcserver.wsgi:ogcserver_wms_factory',
],
},
install_requires = ['setuptools', 'PasteScript', 'WebOb', 'Pillow']
))
setup(**options)
if not HAS_SETUPTOOLS:
warning = '\n***Warning*** ogcserver also requires'
missing = False
try:
import PIL
# todo import Image ?
except:
try:
from PIL import Image
except:
missing = True
warning +=' Pillow (easy_install Pillow)'
if missing:
import sys
sys.stderr.write('%s\n' % warning)