forked from eltrompetero/voronoi_globe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
57 lines (50 loc) · 2.22 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
# Always prefer setuptools over distutils
from setuptools import setup, find_packages
# To use a consistent encoding
from codecs import open
import os
from os import path, environ
from distutils.extension import Extension
from voronoi_globe.version import version as __version__
from shutil import copyfile
import platform, sys
# default args (that are modified per system specs below)
EXTRA_COMPILE_ARGS = ['-std=c++11',f'-I{os.environ["CONDA_PREFIX"]}/include']
DEFAULT_LIBRARY_DR = [f'{os.environ["CONDA_PREFIX"]}/include'] # includes places to search for boost lib
# setup
here = path.abspath(path.dirname(__file__))
system = platform.system()
py_version = str(sys.version_info.major) + str(sys.version_info.minor)
# copy license into package
copyfile('LICENSE','voronoi_globe/LICENSE')
# Get the long description from the README file
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
# compile
kwargs = {'name':'voronoi_globe',
'version':__version__,
'description':'Voronoi tiling of globe',
'long_description':long_description,
'long_description_content_type':'text/markdown',
'url':'https://github.com/eltrompetero/voronoi_globe',
'author':'Edward D. Lee',
'author_email':'[email protected]',
'license':'MIT',
'classifiers':['Development Status :: 3 - Alpha',
'Intended Audience :: Science/Research',
'Topic :: Scientific/Engineering :: Information Analysis',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3 :: Only',
],
'python_requires':'>=3.8.3',
'keywords':'voronoi geography cartography',
'packages':find_packages(),
'install_requires':['multiprocess>=0.70.7,<1',
'scipy',
'matplotlib',
'numpy',
'numba>=0.45.1,<1',
'dill'],
'package_data':{'voronoi_globe':['continent-poly/Africa_main.*']},
'include_package_data':True} # see MANIFEST.in
setup(**kwargs)