-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathsetup.py
26 lines (24 loc) · 903 Bytes
/
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
import setuptools
#from distutils.core import setup, Extension
import glob
ext_modules = [
setuptools.Extension(
"_mander",
(glob.glob('src/*.cpp') + glob.glob('lib/compactnesslib/src/*.cpp') + glob.glob('lib/compactnesslib/lib/**.cpp')),
include_dirs = ['lib/compactnesslib/api', 'lib/pybind11/', 'lib/compactnesslib/lib'],
language = 'c++',
extra_compile_args = ['-std=c++11'],
define_macros = [('DOCTEST_CONFIG_DISABLE',None)]
)
]
setuptools.setup(name='mander',
version = '1.0.0',
description = 'Python package to calculate compactness metrics for district shapes.',
url = 'http://github.com/gerrymandr/python-mander',
author = 'Geometry of Redistricting Workshop',
author_email = '[email protected]',
license = 'MIT',
packages = setuptools.find_packages(),
scripts = ['bin/mander'],
ext_modules = ext_modules
)