Show More
@@ -40,6 +40,7 b' def install():' | |||||
40 | print ('To take full advantage of IPython, you need readline from:\n' |
|
40 | print ('To take full advantage of IPython, you need readline from:\n' | |
41 | 'http://sourceforge.net/projects/uncpythontools') |
|
41 | 'http://sourceforge.net/projects/uncpythontools') | |
42 |
|
42 | |||
|
43 | ipybase = '"'+prefix+r'\scripts\ipython"' | |||
43 | # Create IPython entry ... |
|
44 | # Create IPython entry ... | |
44 | if not os.path.isdir(ip_dir): |
|
45 | if not os.path.isdir(ip_dir): | |
45 | os.mkdir(ip_dir) |
|
46 | os.mkdir(ip_dir) | |
@@ -47,15 +48,15 b' def install():' | |||||
47 |
|
48 | |||
48 | # Create program shortcuts ... |
|
49 | # Create program shortcuts ... | |
49 | f = ip_dir + r'\IPython.lnk' |
|
50 | f = ip_dir + r'\IPython.lnk' | |
50 | a = prefix + r'\scripts\ipython' |
|
51 | a = ipybase | |
51 | mkshortcut(python,'IPython',f,a) |
|
52 | mkshortcut(python,'IPython',f,a) | |
52 |
|
53 | |||
53 | f = ip_dir + r'\pysh.lnk' |
|
54 | f = ip_dir + r'\pysh.lnk' | |
54 | a = prefix + r'\scripts\ipython -p sh' |
|
55 | a = ipybase+' -p sh' | |
55 | mkshortcut(python,'IPython command prompt mode',f,a) |
|
56 | mkshortcut(python,'IPython command prompt mode',f,a) | |
56 |
|
57 | |||
57 | f = ip_dir + r'\scipy.lnk' |
|
58 | f = ip_dir + r'\scipy.lnk' | |
58 |
a = |
|
59 | a = ipybase+' -pylab -p scipy' | |
59 | mkshortcut(python,'IPython scipy profile',f,a) |
|
60 | mkshortcut(python,'IPython scipy profile',f,a) | |
60 |
|
61 | |||
61 | # Create documentation shortcuts ... |
|
62 | # Create documentation shortcuts ... |
@@ -14,8 +14,10 b' def c(cmd):' | |||||
14 | os.system(cmd) |
|
14 | os.system(cmd) | |
15 |
|
15 | |||
16 | os.chdir('..') |
|
16 | os.chdir('..') | |
17 | distutils.dir_util.remove_tree('dist') |
|
17 | if os.path.isdir('dist'): | |
18 |
distutils.dir_util.remove_tree(' |
|
18 | distutils.dir_util.remove_tree('dist') | |
|
19 | if os.path.isdir('ipykit'): | |||
|
20 | distutils.dir_util.remove_tree('ipykit') | |||
19 |
|
21 | |||
20 | c("python exesetup.py py2exe") |
|
22 | c("python exesetup.py py2exe") | |
21 | os.rename('dist','ipykit') |
|
23 | os.rename('dist','ipykit') |
General Comments 0
You need to be logged in to leave comments.
Login now