Show More
@@ -51,26 +51,30 b' def install():' | |||||
51 |
|
51 | |||
52 | # Now move onto setting the Start Menu up |
|
52 | # Now move onto setting the Start Menu up | |
53 | ipybase = pjoin(scripts, 'ipython') |
|
53 | ipybase = pjoin(scripts, 'ipython') | |
|
54 | if 'setuptools' in sys.modules: | |||
|
55 | # let setuptools take care of the scripts: | |||
|
56 | ipybase = ipybase + '-script.py' | |||
|
57 | workdir = "%HOMEDRIVE%%HOMEPATH%" | |||
54 |
|
58 | |||
55 | link = pjoin(ip_start_menu, 'IPython.lnk') |
|
59 | link = pjoin(ip_start_menu, 'IPython.lnk') | |
56 | cmd = '"%s"' % ipybase |
|
60 | cmd = '"%s"' % ipybase | |
57 | mkshortcut(python,'IPython',link,cmd) |
|
61 | mkshortcut(python, 'IPython', link, cmd, workdir) | |
58 |
|
62 | |||
59 | link = pjoin(ip_start_menu, 'pysh.lnk') |
|
63 | link = pjoin(ip_start_menu, 'pysh.lnk') | |
60 | cmd = '"%s" -p sh' % ipybase |
|
64 | cmd = '"%s" -p sh' % ipybase | |
61 | mkshortcut(python,'IPython (command prompt mode)',link,cmd) |
|
65 | mkshortcut(python, 'IPython (command prompt mode)', link, cmd, workdir) | |
62 |
|
66 | |||
63 | link = pjoin(ip_start_menu, 'scipy.lnk') |
|
67 | link = pjoin(ip_start_menu, 'scipy.lnk') | |
64 | cmd = '"%s" -p scipy' % ipybase |
|
68 | cmd = '"%s" -p scipy' % ipybase | |
65 | mkshortcut(python,'IPython (scipy profile)',link,cmd) |
|
69 | mkshortcut(python, 'IPython (scipy profile)', link, cmd, workdir) | |
66 |
|
70 | |||
67 | link = pjoin(ip_start_menu, 'ipcontroller.lnk') |
|
71 | link = pjoin(ip_start_menu, 'ipcontroller.lnk') | |
68 | cmd = '"%s" -xy' % pjoin(scripts, 'ipcontroller') |
|
72 | cmd = '"%s" -xy' % pjoin(scripts, 'ipcontroller') | |
69 | mkshortcut(python,'IPython controller',link,cmd) |
|
73 | mkshortcut(python, 'IPython controller', link, cmd, workdir) | |
70 |
|
74 | |||
71 | link = pjoin(ip_start_menu, 'ipengine.lnk') |
|
75 | link = pjoin(ip_start_menu, 'ipengine.lnk') | |
72 | cmd = '"%s"' % pjoin(scripts, 'ipengine') |
|
76 | cmd = '"%s"' % pjoin(scripts, 'ipengine') | |
73 | mkshortcut(python,'IPython engine',link,cmd) |
|
77 | mkshortcut(python, 'IPython engine', link, cmd, workdir) | |
74 |
|
78 | |||
75 | # Create documentation shortcuts ... |
|
79 | # Create documentation shortcuts ... | |
76 | t = prefix + r'\share\doc\ipython\manual\ipython.pdf' |
|
80 | t = prefix + r'\share\doc\ipython\manual\ipython.pdf' |
@@ -232,8 +232,6 b" if 'setuptools' in sys.modules:" | |||||
232 | test='nose>=0.10.1', |
|
232 | test='nose>=0.10.1', | |
233 | security='pyOpenSSL>=0.6' |
|
233 | security='pyOpenSSL>=0.6' | |
234 | ) |
|
234 | ) | |
235 | # Allow setuptools to handle the scripts |
|
|||
236 | scripts = [] |
|
|||
237 | else: |
|
235 | else: | |
238 | # If we are running without setuptools, call this function which will |
|
236 | # If we are running without setuptools, call this function which will | |
239 | # check for dependencies an inform the user what is needed. This is |
|
237 | # check for dependencies an inform the user what is needed. This is |
@@ -278,7 +278,7 b' def find_scripts():' | |||||
278 | file=sys.stderr) |
|
278 | file=sys.stderr) | |
279 | sys.exit(1) |
|
279 | sys.exit(1) | |
280 | scripts.append(pjoin('scripts','ipython_win_post_install.py')) |
|
280 | scripts.append(pjoin('scripts','ipython_win_post_install.py')) | |
281 |
|
281 | |||
282 | return scripts |
|
282 | return scripts | |
283 |
|
283 | |||
284 | #--------------------------------------------------------------------------- |
|
284 | #--------------------------------------------------------------------------- |
General Comments 0
You need to be logged in to leave comments.
Login now