-
-
Notifications
You must be signed in to change notification settings - Fork 406
Expand file tree
/
Copy pathsetup.py.in
More file actions
46 lines (41 loc) · 1.62 KB
/
setup.py.in
File metadata and controls
46 lines (41 loc) · 1.62 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
from io import open
from setuptools import setup, find_packages, Distribution
class BinaryDistribution(Distribution):
"""
Distribution which always forces a binary package with platform name
See http://lucumr.pocoo.org/2014/1/27/python-on-wheels/
and https://stackoverflow.com/questions/24071491/how-can-i-make-a-python-wheel-from-an-existing-native-library
"""
def has_ext_modules(foo):
return True
def is_pure(self):
return False
def readme():
with open('README.rst', "r", encoding="utf-8") as f:
return f.read()
setup(
name="mapscript",
description = "MapServer Python MapScript bindings",
long_description=readme(),
classifiers = [
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3',
'Programming Language :: C',
'Programming Language :: C++',
'Topic :: Scientific/Engineering :: GIS',
'Topic :: Scientific/Engineering :: Information Analysis',
],
author = "Steve Lime",
license = "MIT",
url="http://www.mapserver.org",
version="@MapServer_VERSION_MAJOR@.@MapServer_VERSION_MINOR@.@MapServer_VERSION_REVISION@",
packages=find_packages(),
package_data={
# list the files to include starting with the most deeply nested folder or they are overwritten
'mapscript': ['tests/data/vera/*.*', 'tests/data/*.*', '$<TARGET_FILE_NAME:@SWIG_MODULE_pythonmapscript_REAL_NAME@>']
},
distclass=BinaryDistribution
)