-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup.py
More file actions
61 lines (51 loc) · 1.85 KB
/
setup.py
File metadata and controls
61 lines (51 loc) · 1.85 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
"""
Script for building FMPasteBox
Usage:
python setup.py py2app
"""
from distutils.core import setup
from setuptools.extension import Extension
import py2app
import FMPasteBoxVersion
setup(
name = FMPasteBoxVersion.appname,
version = FMPasteBoxVersion.version,
description = FMPasteBoxVersion.description,
long_description = FMPasteBoxVersion.longdescription,
author = FMPasteBoxVersion.author,
app=[{
'script': "FMPasteBox.py",
"plist": {
"NSPrincipalClass": 'NSApplication',
"CFBundleIdentifier": FMPasteBoxVersion.bundleID,
"CFBundleName": FMPasteBoxVersion.appnameshort,
"CFBundleSignature": FMPasteBoxVersion.creator,
"CFBundleShortVersionString": FMPasteBoxVersion.version,
"CFBundleGetInfoString": FMPasteBoxVersion.description,
"NSHumanReadableCopyright": FMPasteBoxVersion.copyright,
}
}],
data_files=[
"English.lproj/MainMenu.nib",
"English.lproj/Preferences.nib",
#"English.lproj/FMPasteBoxDocument.nib",
"+icon/FMPasteBox.icns",
#"+icon/FMPasteBoxFile.icns",
],
options={
"py2app": {
"iconfile": "+icon/FMPasteBox.icns",
# "packages": [],
"excludes": [
'TkInter', 'tkinter', 'tk', 'wx', 'sphinx',
'pyqt5', 'qt5', 'PyQt5',
'setuptools', 'numba',
# 'certifi', 'pytz',
'notebook', 'nbformat', 'jedi', 'testpath', 'docutils',
'ipykernel', 'parso', 'Cython', 'sphinx_rtd_theme', 'alabaster',
'tornado', 'IPython', 'numpydoc', 'nbconvert',
'scipy', 'matplotlib',
'pandas', 'cv2', 'dlib', 'skimage', 'sklearn', 'mpl_toolkits',
],
}
} )