-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
48 lines (42 loc) · 1.54 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
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("kpkc.kpkc", sources=["kpkc/kpkc.pyx"]),
]
setup(
name='kpkc',
version='0.1.2a0',
description='A python interface to KPartiteKClique',
long_description=long_description,
long_description_content_type='text/markdown',
url='https://github.com/kliem/PyKPartiteKClique',
author='Jonathan Kliem',
author_email='[email protected]',
license='GPLv3',
packages=find_packages(),
ext_modules=extensions,
zip_safe=False,
python_requires='>=3.6',
package_dir={'kpkc': 'kpkc'},
install_requires=["Cython"],
package_data={"kpkc": ["*.pxd", "*.h", "cppkpkc/*.h"]},
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",
"Programming Language :: C++",
'Topic :: Scientific/Engineering :: Mathematics']
)