-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
48 lines (43 loc) · 1.49 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 pathlib import Path
from setuptools import setup, Extension
with open("README.md", "r", encoding="utf8") as f:
readme = f.read()
zlib = [str(p) for p in Path("zlib").glob("*.c")]
libpng = [str(p) for p in Path("libpng").glob("*.c")]
ext = Extension(
"apnggif_sys",
sources=["apng2gif.cpp", "py.cpp"] + zlib + libpng,
include_dirs=["libpng", "zlib"],
language="c++",
extra_compile_args=["-DPNG_ARM_NEON_OPT=0"],
)
setup(
name="apnggif",
version="0.1.4",
description="Python interface to apng2gif",
long_description=readme,
long_description_content_type="text/markdown",
author="yukinarit",
author_email="[email protected]",
url="https://github.com/yukinarit/apnggif",
py_modules=["apnggif", "apnggif_sys"],
ext_modules=[ext],
install_requires=["oppapi", "coloredlogs"],
entry_points={
"console_scripts": ["apnggif=apnggif:main"],
},
python_requires=">=3.7",
license="zlib/libpng",
classifiers=[
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: zlib/libpng License",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Scientific/Engineering :: Image Processing",
],
)