Skip to content
Permalink
Browse files

Create template setup.py

  • Loading branch information...
geographika committed Jun 26, 2018
1 parent e4789e3 commit 320ef1c8b856c06a182b582ded52b4def1fa32e3
Showing with 40 additions and 0 deletions.
  1. +40 −0 mapscript/python/setup.py.in
@@ -0,0 +1,40 @@
from setuptools import setup, find_packages

# Force creation of a platform specific wheel
# https://stackoverflow.com/questions/24071491/how-can-i-make-a-python-wheel-from-an-existing-native-library

class BinaryDistribution(Distribution):
"""
Distribution which always forces a binary package with platform name
"""
def has_ext_modules(foo):
return True

setup(
name="mapscript",
description = "MapServer Python MapScript bindings",
author = "Steve Lime",
license = "MIT",
url="http://www.mapserver.org",
version="@MapServer_VERSION_MAJOR@.@MapServer_VERSION_MINOR@",
packages=find_packages(),
package_data={'mapscript': '$<TARGET_FILE_NAME:@SWIG_MODULE_pythonmapscript_REAL_NAME@>'},
distclass=BinaryDistribution
)



#from setuptools import setup, find_packages
#
#setup(
# name="mapscript",
# description = "MapServer Python MapScript bindings",
# author = "Steve Lime",
# license = "MIT",
# url="http://www.mapserver.org",
# version="7.1",
# packages=find_packages(),
# include_package_data=True,
# #package_dir={'': '_pythonmapscript', "mapscript", "D:/GitHub/mapserver/mapscript/python"},
# package_data={'mapscript': ['_mapscript.pyd']}
#)

0 comments on commit 320ef1c

Please sign in to comment.
You can’t perform that action at this time.