-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
54 lines (47 loc) · 1.42 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
49
50
51
52
53
54
#!/usr/bin/env python3
import sys
import os
from igstools.__main__ import ENTRYPOINT
with open("README.rst", "r") as f:
long_description = f.read()
with open("requirements.txt", "r") as f:
requirements = [l.strip() for l in f if l.strip()]
if len(sys.argv) > 1 and sys.argv[1] == "freeze":
sys.argv[1] = "build"
from cx_Freeze import setup, Executable
target_name = ENTRYPOINT
if sys.platform == "win32":
target_name += ".exe"
extra_kwargs = {
"executables": [
Executable(
os.path.join("igstools", "_cxfreeze_main.py"),
targetName=target_name,
),
],
}
else:
from setuptools import setup
extra_kwargs = {}
setup(
name="igstools",
version="0.9.3",
description="Tools for parsing bluray IGS menus",
long_description=long_description,
author="Joe Hu (SAPikachu)",
author_email="[email protected]",
url="https://github.com/SAPikachu/igstools",
packages=["igstools"],
install_requires=requirements,
entry_points={
"console_scripts": [ENTRYPOINT + " = igstools.__main__:main"],
},
classifiers=[
"Development Status :: 4 - Beta",
"License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)",
"Natural Language :: English",
"Programming Language :: Python :: 3.3",
"Topic :: Multimedia :: Video",
],
**extra_kwargs
)