-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
50 lines (44 loc) · 1.68 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
from setuptools import setup, find_packages
from setuptools.extension import Extension
from distutils.command.build_ext import build_ext as du_build_ext
class build_ext(du_build_ext):
def run(self):
from Cython.Build.Dependencies import cythonize
self.distribution.ext_modules[:] = cythonize(
self.distribution.ext_modules,
language_level=3)
du_build_ext.run(self)
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
extensions = [
Extension(
"pseudo_order_types.pseudo_order_types",
sources=["pseudo_order_types/pseudo_order_types.pyx"])
]
setup(
name='pseudo_order_types',
version='0.1.2a',
description='Generate all pseudo order' +
' types for small point sets in the plane',
long_description=long_description,
long_description_content_type='text/markdown',
url='https://github.com/kliem/pseudo_order_types',
author='Jonathan Kliem',
author_email='[email protected]',
license='GPLv3',
packages=find_packages(),
ext_modules=extensions,
zip_safe=False,
python_requires='>=3.6',
package_dir={'pseudo_order_types': 'pseudo_order_types'},
install_requires=["Cython", "memory_allocator"],
package_data={"pseudo_order_types": ["*.pxd"]},
cmdclass={'build_ext': build_ext},
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Programming Language :: Python :: 3',
'Programming Language :: Cython',
'Topic :: Scientific/Engineering :: Mathematics']
)