##// END OF EJS Templates
Completely fixed the ipython_win_post_install.py script. It now ...
Brian Granger -
Show More
@@ -15,26 +15,6 b' def install():'
15
15
16 from IPython.Release import version
16 from IPython.Release import version
17
17
18 # Some usability warnings at installation time. I don't want them at the
19 # top-level, so they don't appear if the user is uninstalling.
20 try:
21 import ctypes
22 except ImportError:
23 print ('To take full advantage of IPython, you need ctypes from:\n'
24 'http://sourceforge.net/projects/ctypes')
25
26 try:
27 import win32con
28 except ImportError:
29 print ('To take full advantage of IPython, you need pywin32 from:\n'
30 'http://starship.python.net/crew/mhammond/win32/Downloads.html')
31
32 try:
33 import readline
34 except ImportError:
35 print ('To take full advantage of IPython, you need readline from:\n'
36 'https://launchpad.net/pyreadline')
37
38 # Get some system constants
18 # Get some system constants
39 prefix = sys.prefix
19 prefix = sys.prefix
40 python = pjoin(prefix, 'python.exe')
20 python = pjoin(prefix, 'python.exe')
@@ -48,9 +28,18 b' def install():'
48
28
49 # Create .py and .bat files to make things available from
29 # Create .py and .bat files to make things available from
50 # the Windows command line
30 # the Windows command line
51 programs = 'ipython iptest ipcontroller ipengine ipcluster'
31 programs = [
32 'ipython',
33 'iptest',
34 'ipcontroller',
35 'ipengine',
36 'ipcluster',
37 'ipythonx',
38 'ipython-wx',
39 'irunner'
40 ]
52 scripts = pjoin(prefix,'scripts')
41 scripts = pjoin(prefix,'scripts')
53 for program in programs.split():
42 for program in programs:
54 raw = pjoin(scripts, program)
43 raw = pjoin(scripts, program)
55 bat = raw + '.bat'
44 bat = raw + '.bat'
56 py = raw + '.py'
45 py = raw + '.py'
@@ -62,24 +51,35 b' def install():'
62 bat_file.close()
51 bat_file.close()
63
52
64 # Now move onto setting the Start Menu up
53 # Now move onto setting the Start Menu up
65 ipybase = '"' + prefix + r'\scripts\ipython"'
54 ipybase = pjoin(scripts, 'ipython')
55
56 link = pjoin(ip_start_menu, 'IPython.lnk')
57 cmd = '"%s"' % ipybase
58 mkshortcut(python,'IPython',link,cmd)
59
60 link = pjoin(ip_start_menu, 'pysh.lnk')
61 cmd = '"%s" -p sh' % ipybase
62 mkshortcut(python,'IPython (command prompt mode)',link,cmd)
63
64 link = pjoin(ip_start_menu, 'pylab.lnk')
65 cmd = '"%s" -pylab' % ipybase
66 mkshortcut(python,'IPython (PyLab mode)',link,cmd)
66
67
67 # Create program shortcuts ...
68 link = pjoin(ip_start_menu, 'scipy.lnk')
68 f = ip_start_menu + r'\IPython.lnk'
69 cmd = '"%s" -pylab -p scipy' % ipybase
69 a = ipybase
70 mkshortcut(python,'IPython (scipy profile)',link,cmd)
70 mkshortcut(python,'IPython',f,a)
71
71
72 f = ip_start_menu + r'\pysh.lnk'
72 link = pjoin(ip_start_menu, 'IPython test suite.lnk')
73 a = ipybase+' -p sh'
73 cmd = '"%s" -vv' % pjoin(scripts, 'iptest')
74 mkshortcut(python,'IPython (command prompt mode)',f,a)
74 mkshortcut(python,'Run the IPython test suite',link,cmd)
75
75
76 f = ip_start_menu + r'\pylab.lnk'
76 link = pjoin(ip_start_menu, 'ipcontroller.lnk')
77 a = ipybase+' -pylab'
77 cmd = '"%s" -xy' % pjoin(scripts, 'ipcontroller')
78 mkshortcut(python,'IPython (PyLab mode)',f,a)
78 mkshortcut(python,'IPython controller',link,cmd)
79
79
80 f = ip_start_menu + r'\scipy.lnk'
80 link = pjoin(ip_start_menu, 'ipengine.lnk')
81 a = ipybase+' -pylab -p scipy'
81 cmd = '"%s"' % pjoin(scripts, 'ipengine')
82 mkshortcut(python,'IPython (scipy profile)',f,a)
82 mkshortcut(python,'IPython engine',link,cmd)
83
83
84 # Create documentation shortcuts ...
84 # Create documentation shortcuts ...
85 t = prefix + r'\share\doc\ipython\manual\ipython.pdf'
85 t = prefix + r'\share\doc\ipython\manual\ipython.pdf'
General Comments 0
You need to be logged in to leave comments. Login now