-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
42 lines (39 loc) · 1.15 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
from setuptools import setup, find_packages, Extension
from Cython.Build import cythonize
import numpy
with open("README.md", "r") as fh:
long_description = fh.read()
VERSION = "0.0.35"
module = Extension(
"MtxDrawer.MtxReader",
sources=["MatGen/MatGen.pyx", "MatGen/_MatGen.c"],
extra_compile_args=["-ffast-math"],
include_dirs=[numpy.get_include()],
language="c"
)
setup(
name='MtxDrawer',
version=VERSION,
description='Draw Mtx As Thumbnail',
long_description=long_description,
long_description_content_type="text/markdown",
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
author='RhythmLian',
author_email='[email protected]',
url="https://github.com/Rhythmicc/DrawMtxAsThumbnail",
license='MIT',
packages=find_packages(),
include_package_data=True,
zip_safe=True,
ext_modules=cythonize(module),
install_requires=['numpy', 'matplotlib', 'Qpro', 'cython'],
entry_points={
'console_scripts': [
'mtx-drawer = MtxDrawer.main:main'
]
},
)