forked from K0lb3/UnityPy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
74 lines (70 loc) · 2.33 KB
/
Copy pathsetup.py
File metadata and controls
74 lines (70 loc) · 2.33 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
from setuptools import setup, Extension, find_packages
import os
import re
INSTALL_DIR = os.path.dirname(os.path.realpath(__file__))
UNITYPYBOOST_DIR = os.path.join(INSTALL_DIR, "UnityPyBoost")
version = None
with open(os.path.join(INSTALL_DIR, "UnityPy", "__init__.py"), "rt") as f:
version = re.search(r'__version__ = "([^"]+)"', f.read()).group(1)
with open(os.path.join(INSTALL_DIR, "README.md"), "rt") as fh:
long_description = fh.read()
setup(
name="UnityPy",
packages=find_packages(),
include_package_data=True,
version=version,
author="K0lb3",
description="A pythonic port of AssetStudio by Perfare",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/K0lb3/UnityPy",
download_url="https://github.com/K0lb3/UnityPy/tarball/master",
keywords=[
"python",
"unity",
"unity-asset",
"python3",
"data-minig",
"unitypack",
"assetstudio",
"unity-asset-extractor",
],
classifiers=[
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Intended Audience :: Developers",
"Development Status :: 5 - Production/Stable",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Games/Entertainment",
"Topic :: Multimedia :: Graphics",
],
install_requires=[
# block compression/decompression
"lz4", # BundleFile block compression
"brotli", # WebFile compression
# Texture & Sprite handling
"Pillow",
"texture2ddecoder", # texture decompression
"etcpak", # ETC & DXT compression
# raw typetree dumping
"tabulate",
],
ext_modules=[
Extension(
"UnityPy.UnityPyBoost",
[
f"UnityPyBoost/{f}"
for f in os.listdir(UNITYPYBOOST_DIR)
if f.endswith(".c")
],
language="c",
include_dirs=[UNITYPYBOOST_DIR],
)
],
)