This repository was archived by the owner on Oct 19, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
50 lines (45 loc) · 1.2 KB
/
setup.py
File metadata and controls
50 lines (45 loc) · 1.2 KB
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
49
50
import os
from setuptools import Extension, setup
try:
from Cython.Build import cythonize
except ImportError:
cythonize = None
extensions = [
Extension(
name="pvrtc_decoder",
version="1.0.2",
author="K0lb3",
author_email="",
description="A PVRTC decoder for PIL",
long_description=open('README.md', 'rt', encoding='utf8').read(),
long_description_content_type="text/markdown",
url="https://github.com/K0lb3/pvrtc_decoder",
download_url="https://github.com/K0lb3/pvrtc_decoder/tarball/master",
keywords=['PVRTC', 'PVRT', 'decoder', "PIL", "Pillow", "texture"],
classifiers=[
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Topic :: Multimedia :: Graphics",
],
sources=[
"pvrtc_decoder.pyx",
'src/PVRTDecompress.cpp',
],
language="c++",
include_dirs=[
"src"
],
install_requires=[
"cython"
],
)
]
if cythonize:
extensions = cythonize(extensions)
setup(ext_modules=extensions)