Show More
@@ -0,0 +1,17 b'' | |||
|
1 | # encoding: utf-8 | |
|
2 | """ | |
|
3 | Provides a namespace for loading the Cocoa frontend via a Cocoa plugin. | |
|
4 | ||
|
5 | Author: Barry Wark | |
|
6 | """ | |
|
7 | __docformat__ = "restructuredtext en" | |
|
8 | ||
|
9 | #----------------------------------------------------------------------------- | |
|
10 | # Copyright (C) 2008 The IPython Development Team | |
|
11 | # | |
|
12 | # Distributed under the terms of the BSD License. The full license is in | |
|
13 | # the file COPYING, distributed as part of this software. | |
|
14 | #----------------------------------------------------------------------------- | |
|
15 | ||
|
16 | from Foundation import NSObject | |
|
17 | from IPython.frontend.cocoa.cocoa_frontend import IPythonCocoaController No newline at end of file |
@@ -0,0 +1,5 b'' | |||
|
1 | include ./plugins.mk | |
|
2 | ||
|
3 | all : dist/IPythonCocoaController.plugin | |
|
4 | ||
|
5 | dist/IPythonCocoaController.plugin : ./FrontendLoader.py ./setup.py No newline at end of file |
@@ -0,0 +1,22 b'' | |||
|
1 | %.plugin:: | |
|
2 | mkdir -p plugin | |
|
3 | rm -rf dist/$(notdir $@) | |
|
4 | rm -rf build dist && \ | |
|
5 | python setup.py py2app -s | |
|
6 | ||
|
7 | %.py: | |
|
8 | @echo "test -f $@" | |
|
9 | @test -f %@ | |
|
10 | ||
|
11 | %.nib: | |
|
12 | @echo "test -f $@" | |
|
13 | @test -f %@ | |
|
14 | ||
|
15 | .DEFAULT_GOAL := all | |
|
16 | ||
|
17 | .PHONY : all clean | |
|
18 | ||
|
19 | clean : | |
|
20 | rm -rf build dist | |
|
21 | ||
|
22 |
@@ -0,0 +1,34 b'' | |||
|
1 | # encoding: utf-8 | |
|
2 | """ | |
|
3 | setup.py | |
|
4 | ||
|
5 | Setuptools installer script for generating a Cocoa plugin for the | |
|
6 | IPython cocoa frontend | |
|
7 | ||
|
8 | Author: Barry Wark | |
|
9 | """ | |
|
10 | __docformat__ = "restructuredtext en" | |
|
11 | ||
|
12 | #----------------------------------------------------------------------------- | |
|
13 | # Copyright (C) 2008 The IPython Development Team | |
|
14 | # | |
|
15 | # Distributed under the terms of the BSD License. The full license is in | |
|
16 | # the file COPYING, distributed as part of this software. | |
|
17 | #----------------------------------------------------------------------------- | |
|
18 | ||
|
19 | from setuptools import setup | |
|
20 | ||
|
21 | infoPlist = dict( | |
|
22 | CFBundleDevelopmentRegion='English', | |
|
23 | CFBundleIdentifier='org.scipy.ipython.cocoa_frontend', | |
|
24 | NSPrincipalClass='IPythonCocoaController', | |
|
25 | ) | |
|
26 | ||
|
27 | setup( | |
|
28 | plugin=['FrontendLoader.py'], | |
|
29 | setup_requires=['py2app'], | |
|
30 | options=dict(py2app=dict( | |
|
31 | plist=infoPlist, | |
|
32 | excludes=['IPython'] | |
|
33 | )), | |
|
34 | ) No newline at end of file |
General Comments 0
You need to be logged in to leave comments.
Login now