Show More
@@ -0,0 +1,16 b'' | |||||
|
1 | #import IPython.ipapi | |||
|
2 | #ip = IPython.ipapi.get() | |||
|
3 | ||||
|
4 | import os | |||
|
5 | ||||
|
6 | def main(): | |||
|
7 | root = os.environ.get('IPYKITROOT', None) | |||
|
8 | if not root: | |||
|
9 | print "Can't configure ipykit, IPYKITROOT should be set." | |||
|
10 | return | |||
|
11 | ||||
|
12 | os.environ["PATH"] = os.environ["PATH"] + ";" + root + "\\bin;" | |||
|
13 | ||||
|
14 | main() | |||
|
15 | ||||
|
16 |
@@ -5,7 +5,7 b' General purpose utilities.' | |||||
5 | This is a grab-bag of stuff I find useful in most programs I write. Some of |
|
5 | This is a grab-bag of stuff I find useful in most programs I write. Some of | |
6 | these things are also convenient when working at the command line. |
|
6 | these things are also convenient when working at the command line. | |
7 |
|
7 | |||
8 |
$Id: genutils.py 2 |
|
8 | $Id: genutils.py 2408 2007-05-28 16:29:50Z vivainio $""" | |
9 |
|
9 | |||
10 | #***************************************************************************** |
|
10 | #***************************************************************************** | |
11 | # Copyright (C) 2001-2006 Fernando Perez. <fperez@colorado.edu> |
|
11 | # Copyright (C) 2001-2006 Fernando Perez. <fperez@colorado.edu> | |
@@ -812,9 +812,11 b' def get_home_dir():' | |||||
812 |
|
812 | |||
813 | # first, check py2exe distribution root directory for _ipython. |
|
813 | # first, check py2exe distribution root directory for _ipython. | |
814 | # This overrides all. Normally does not exist. |
|
814 | # This overrides all. Normally does not exist. | |
|
815 | ||||
815 | if '\\library.zip\\' in IPython.__file__.lower(): |
|
816 | if '\\library.zip\\' in IPython.__file__.lower(): | |
816 | root, rest = IPython.__file__.lower().split('library.zip') |
|
817 | root, rest = IPython.__file__.lower().split('library.zip') | |
817 |
if |
|
818 | if isdir(root + '_ipython'): | |
|
819 | os.environ["IPYKITROOT"] = root.rstrip('\\') | |||
818 | return root |
|
820 | return root | |
819 |
|
821 | |||
820 | try: |
|
822 | try: |
@@ -15,12 +15,6 b' svn co http://ipython.scipy.org/svn/ipython/pyreadline/trunk/pyreadline' | |||||
15 |
|
15 | |||
16 | - Create the distribution in 'dist' by running "python exesetup.py py2exe" |
|
16 | - Create the distribution in 'dist' by running "python exesetup.py py2exe" | |
17 |
|
17 | |||
18 | - Create initial configuration by running: |
|
|||
19 |
|
||||
20 | mkdir dist\_ipython |
|
|||
21 | touch dist/_ipython/ipythonrc.ini |
|
|||
22 | echo import ipy_profile_sh > dist/_ipython/ipy_user_conf.py |
|
|||
23 |
|
||||
24 | - Run ipython.exe to go. |
|
18 | - Run ipython.exe to go. | |
25 |
|
19 | |||
26 | """ |
|
20 | """ | |
@@ -63,20 +57,7 b' def file_doesnt_endwith(test,endings):' | |||||
63 | return True |
|
57 | return True | |
64 |
|
58 | |||
65 |
|
59 | |||
66 | if 'setuptools' in sys.modules: |
|
60 | egg_extra_kwds = {} | |
67 | # setuptools config for egg building |
|
|||
68 | egg_extra_kwds = { |
|
|||
69 | 'entry_points': { |
|
|||
70 | 'console_scripts': [ |
|
|||
71 | 'ipython = IPython.ipapi:launch_new_instance', |
|
|||
72 | 'pycolor = IPython.PyColorize:main' |
|
|||
73 | ]} |
|
|||
74 | } |
|
|||
75 | scriptfiles = [] |
|
|||
76 | # eggs will lack docs, examples XXX not anymore |
|
|||
77 | #datafiles = [('lib', 'IPython/UserConfig', cfgfiles)] |
|
|||
78 | else: |
|
|||
79 | egg_extra_kwds = {} |
|
|||
80 |
|
61 | |||
81 | # Call the setup() routine which does most of the work |
|
62 | # Call the setup() routine which does most of the work | |
82 | setup(name = name, |
|
63 | setup(name = name, | |
@@ -103,5 +84,8 b' setup(name = name,' | |||||
103 | **egg_extra_kwds |
|
84 | **egg_extra_kwds | |
104 | ) |
|
85 | ) | |
105 |
|
86 | |||
106 |
|
87 | if not os.path.isdir("dist/_ipython"): | ||
107 |
|
88 | print "Creating simple _ipython dir" | ||
|
89 | os.mkdir("dist/_ipython") | |||
|
90 | open("dist/_ipython/ipythonrc.ini","w").write("# intentionally blank\n") | |||
|
91 | open("dist/_ipython/ipy_user_conf.py","w").write("import ipy_kitcfg\nimport ipy_profile_sh\n") |
General Comments 0
You need to be logged in to leave comments.
Login now