forked from nodebox/nodebox-pyobjc
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup_faces.py
More file actions
131 lines (111 loc) · 4.35 KB
/
setup_faces.py
File metadata and controls
131 lines (111 loc) · 4.35 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
"""
Script for building NodeBox
Usage:
python setup.py py2app
"""
from distutils.core import setup
from setuptools.extension import Extension
import py2app
import nodebox
NAME = 'NodeBox_cv2dlib'
VERSION = nodebox.__version__
AUTHOR = "Frederik De Bleser",
AUTHOR_EMAIL = "frederik@pandora.be",
URL = "http://nodebox.net/",
CLASSIFIERS = (
"Development Status :: 5 - Production/Stable",
"Environment :: MacOS X :: Cocoa",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: End Users/Desktop",
"License :: OSI Approved :: MIT License",
"Operating System :: MacOS :: MacOS X",
"Programming Language :: Python",
"Topic :: Artistic Software",
"Topic :: Multimedia :: Graphics",
"Topic :: Multimedia :: Graphics :: Editors :: Vector-Based",
"Topic :: Multimedia :: Video",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Software Development :: User Interfaces",
"Topic :: Text Editors :: Integrated Development Environments (IDE)",
)
DESCRIPTION = (u"Simple application for creating 2-dimensional graphics and animation "
u"using Python code")
LONG_DESCRIPTION = u"""NodeBox is a Mac OS X application that allows you to create visual output
with programming code. The application targets an audience of designers, with an easy set of state
commands that is both intuitive and creative. It is essentially a learning environment and an automation tool.
The current version features:
* State-based graphics context
* Extensive reference documentation and tutorials
* PDF export for graphics
* QuickTime export for animations
* Manipulate every numeric variable in a script by command-dragging it, even during animation
* Creating simple user interfaces using text fields, sliders, and buttons
* Stop a running script by typing command-period
* Universal Binary
* Integrated bezier mathematics and boolean operations
* Command-line interface
* Zooming
"""
creator = 'NdBx'
bundleID = "net.nodebox.NodeBox"
setup(
name = NAME,
version = VERSION,
description = DESCRIPTION,
long_description = LONG_DESCRIPTION,
author = AUTHOR,
author_email = AUTHOR_EMAIL,
url = URL,
classifiers = CLASSIFIERS,
app=[{
'script': "macboot.py",
"plist": {
"NSPrincipalClass": 'NSApplication',
"CFBundleIdentifier": bundleID,
"CFBundleName": NAME,
"CFBundleSignature": creator,
"CFBundleShortVersionString": VERSION,
"CFBundleGetInfoString": DESCRIPTION,
"NSHumanReadableCopyright": "Copyright (c) 2015 Frederik De Bleser",
'CFBundleDocumentTypes': [
{
'CFBundleTypeExtensions': [ 'py', 'bot' ],
'CFBundleTypeIconFile': 'NodeBoxFile.icns',
'CFBundleTypeName': "Python File",
'CFBundleTypeOSTypes': [ '????', '****', 'utxt'],
'CFBundleTypeRole': 'Editor',
'NSDocumentClass': u'NodeBoxDocument',
}
]
}
}],
data_files=[
"Resources/English.lproj/AskString.xib",
"Resources/English.lproj/Credits.rtf",
"Resources/English.lproj/ExportImageAccessory.xib",
"Resources/English.lproj/ExportMovieAccessory.xib",
"Resources/English.lproj/MainMenu.xib",
"Resources/English.lproj/NodeBoxDocument.xib",
"Resources/English.lproj/NodeBoxPreferences.xib",
"Resources/English.lproj/ProgressBarSheet.xib",
"Resources/NodeBox.icns",
"Resources/NodeBoxFile.icns",
"Resources/zoombig.png",
"Resources/zoomsmall.png"
],
ext_modules=[
Extension('bwdithering', ['libs/bwdithering/bwdithering.c']),
Extension('fractal', ['libs/fractal/fractal.c']),
Extension('cGeo', ['libs/cGeo/cGeo.c']),
Extension('cPathmatics', ['libs/pathmatics/pathmatics.c']),
Extension('cPolymagic', ['libs/polymagic/gpc.c', 'libs/polymagic/polymagic.m'],
extra_link_args=['-framework', 'AppKit', '-framework', 'Foundation'])
],
options={
"py2app": {
"iconfile": "Resources/NodeBox.icns",
"packages": [ "numpy", "cv2", "dlib", "skimage" ],
"excludes": ["TkInter", "matplotlib", "astropy", "scipy", "pandas"],
}
} )