forked from takluyver/nbopen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
py2app_setup.py
39 lines (33 loc) · 1.2 KB
/
py2app_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
#!/usr/bin/python3
import sys
from setuptools import setup # Noooooo
import nbopen
if sys.platform != 'darwin':
sys.exit('This script runs on OS X only.')
Plist = dict(CFBundleName='nbopen',
CFBundleShortVersionString='0.2',
CFBundleVersion='0.2',
CFBundleIdentifier='org.jupyter.nbopen',
CFBundleDevelopmentRegion='English',
CFBundleDocumentTypes=[dict(CFBundleTypeExtensions=["ipynb"],
CFBundleTypeName="IPython Notebook",
CFBundleTypeIconFile="nbopen",
CFBundleTypeRole="Editor"),
]
)
setup(name='nbopen',
version=nbopen.__version__,
description="Open a notebook from the command line in the best available server",
author='Thomas Kluyver',
author_email="[email protected]",
url="https://github.com/takluyver/nbopen",
app=['nbopen.py'], # FIXME: What should this be, py2app users?
options={'py2app': {
'argv_emulation': True,
'packages': ['nbopen'],
'alias': True,
'plist': Plist,
'iconfile': 'nbopen.icns'
}},
setup_requires=['py2app']
)