-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
40 lines (33 loc) · 1.26 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
from distutils.core import setup, Extension
import os
import re
with open("pypoly/version.py") as f:
vfile_content = f.read()
match = re.search(r"__version__ = '([^']+)'", vfile_content)
assert match
__version__ = match.group(1)
long_description = open(os.path.join(os.path.dirname(__file__), "README.rst")).read()
_pypoly_module = Extension(
"_pypoly",
["pypoly/polynomials.c", "pypoly/_pypoly.c"],
define_macros=[
('PYPOLY_VERSION', __version__)])
setup(name="PyPolynomial",
description="Python polynomial C extension.",
long_description=long_description,
version=__version__,
packages=["pypoly"],
ext_modules=[_pypoly_module,],
author="Thomas Chaumeny",
author_email="[email protected]",
url="https://github.com/tchaumeny/PyPoly",
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Intended Audience :: Education',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Programming Language :: C',
'Programming Language :: Python',
'Topic :: Scientific/Engineering :: Mathematics',
],)