Skip to content

Commit

Permalink
fix windows post-installation routines with setuptools installed
Browse files Browse the repository at this point in the history
  • Loading branch information
ddale committed Nov 2, 2010
1 parent fd5c092 commit 221e31c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 3 additions & 0 deletions scripts/ipython_win_post_install.py
Expand Up @@ -51,6 +51,9 @@ def install():


# Now move onto setting the Start Menu up # Now move onto setting the Start Menu up
ipybase = pjoin(scripts, 'ipython') ipybase = pjoin(scripts, 'ipython')
if 'setuptools' in sys.modules:
# let setuptools take care of the scripts:
ipybase = ipybase + '-script.py'
workdir = "%HOMEDRIVE%%HOMEPATH%" workdir = "%HOMEDRIVE%%HOMEPATH%"


link = pjoin(ip_start_menu, 'IPython.lnk') link = pjoin(ip_start_menu, 'IPython.lnk')
Expand Down
2 changes: 0 additions & 2 deletions setup.py
Expand Up @@ -232,8 +232,6 @@ def cleanup():
test='nose>=0.10.1', test='nose>=0.10.1',
security='pyOpenSSL>=0.6' security='pyOpenSSL>=0.6'
) )
# Allow setuptools to handle the scripts
scripts = []
else: else:
# If we are running without setuptools, call this function which will # If we are running without setuptools, call this function which will
# check for dependencies an inform the user what is needed. This is # check for dependencies an inform the user what is needed. This is
Expand Down
2 changes: 1 addition & 1 deletion setupbase.py
Expand Up @@ -278,7 +278,7 @@ def find_scripts():
file=sys.stderr) file=sys.stderr)
sys.exit(1) sys.exit(1)
scripts.append(pjoin('scripts','ipython_win_post_install.py')) scripts.append(pjoin('scripts','ipython_win_post_install.py'))

return scripts return scripts


#--------------------------------------------------------------------------- #---------------------------------------------------------------------------
Expand Down

0 comments on commit 221e31c

Please sign in to comment.