-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
43 lines (39 loc) · 1.23 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
#!/usr/bin/python3.7
# -*- coding: utf-8 -*-
# @Time : 2020/2/18 15:23
# @Author: [email protected]
from setuptools import setup, find_packages
from distutils.extension import Extension
from os.path import join
import os
from pyunit_math import __version__, __author__, __description__, __email__, __names__, __url__
dirs = os.path.abspath(os.path.dirname(__file__))
with open(dirs + os.sep + 'README.md', encoding='utf-8') as f:
long_text = f.read()
ext_modules = [
Extension('pyunit_math.pi', [join(dirs, 'pi.c')], extra_compile_args=['-O3'])
]
setup(
name=__names__,
version=__version__,
description=__description__,
long_description=long_text,
long_description_content_type="text/markdown",
url=__url__,
author=__author__,
author_email=__email__,
license='MIT Licence',
packages=find_packages(),
platforms='any',
package_data={__names__: ['*.py', '*.c']},
install_requires=['scipy', 'numpy'],
classifiers=[
"Programming Language :: Python :: 3",
"Programming Language :: C",
"License :: OSI Approved :: MIT License",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux"
],
zip_safe=False,
ext_modules=ext_modules
)