-
Notifications
You must be signed in to change notification settings - Fork 7
/
setup.py
45 lines (43 loc) · 1.56 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
from setuptools import setup, Extension, find_packages
import os
import platform
with open("README.md", "r") as fh:
long_description = fh.read()
setup(
name="texture2ddecoder",
description="a python wrapper for Perfare's Texture2DDecoder",
author="K0lb3",
version="1.0.4",
keywords=["astc", "atc", "pvrtc", "etc", "crunch", "dxt", "bcn", "eacr"],
classifiers=[
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Intended Audience :: Developers",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Topic :: Multimedia :: Graphics",
],
url="https://github.com/K0lb3/texture2ddecoder",
download_url="https://github.com/K0lb3/texture2ddecoder/tarball/master",
long_description=long_description,
long_description_content_type="text/markdown",
ext_modules=[
Extension(
"texture2ddecoder",
[
os.path.join(root, f)
for root, dirs, files in os.walk("src")
for f in files
if f[-3:] in ["cpp", "cxx"]
and f not in ["Texture2DDecoder.cpp", "AssemblyInfo.cpp"]
],
language="c++",
include_dirs=["src/Texture2DDecoder"],
extra_compile_args=["-std=c++11"]
+ (["-fms-extensions"] if platform.system() == "Darwin" else []),
)
],
)