-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsetup.py
82 lines (73 loc) · 1.89 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
import sys
from setuptools import setup
mainscript = "WoLiBaFoNaGen.py"
PLIST = dict(
CFBundleIdentifier="de.kutilek.WoLiBaFoNaGen",
NSHumanReadableCopyright="Copyright © 2017-2024 by Jens Kutílek",
LSMinimumSystemVersion="10.12.0",
CFBundleShortVersionString="2.0.2",
CFBundleVersion="2",
)
APP = [
{
"script": mainscript,
"plist": PLIST,
}
]
DATA_FILES = [
(
"wordlists",
[
"wordlists/japanese.txt",
"wordlists/movie-characters.txt",
"wordlists/music-classical.txt",
"wordlists/music-country.txt",
"wordlists/music-jazz.txt",
"wordlists/rock-groups.txt",
"wordlists/swahili.txt",
"wordlists/tolkien.txt",
"wordlists/wordsDan.txt",
"wordlists/wordsEn.txt",
"wordlists/wordsNld.txt",
"wordlists/yiddish.txt",
],
)
]
OPTIONS = {
"argv_emulation": False,
"excludes": [
"sphinx",
"matplotlib",
"numpy",
"Image",
"pillow",
"wheel",
"setuptools",
"unittest",
"pydoc",
"pip",
"html",
"distutils",
], # modules are not available in dist
"site_packages": True,
}
if sys.platform == "darwin":
extra_options = dict(
setup_requires=["py2app"],
app=[mainscript],
# Cross-platform applications generally expect sys.argv to
# be used for opening files.
options=dict(py2app=OPTIONS),
)
elif sys.platform == "win32":
extra_options = dict(
setup_requires=["py2exe"],
app=[mainscript],
)
else:
extra_options = dict(
# Normally unix-like platforms will use "setup.py install"
# and install the main script as such
scripts=[mainscript],
)
setup(name="WoLiBaFoNaGen", data_files=DATA_FILES, **extra_options)