diff --git a/scripts/ipython_win_post_install.py b/scripts/ipython_win_post_install.py index 2f789e9..5ba38ef 100755 --- a/scripts/ipython_win_post_install.py +++ b/scripts/ipython_win_post_install.py @@ -33,7 +33,10 @@ def install(): return # Lookup path to common startmenu ... - ip_start_menu = pjoin(get_special_folder_path('CSIDL_COMMON_PROGRAMS'), 'IPython') + ip_start_menu = pjoin(get_special_folder_path('CSIDL_COMMON_PROGRAMS'), + 'IPython (Py%i.%i %i bit)' % (sys.version_info[0], + sys.version_info[1], + 8*tuple.__itemsize__)) # Create IPython entry ... if not os.path.isdir(ip_start_menu): os.mkdir(ip_start_menu) diff --git a/setup.py b/setup.py index 39a9733..d2d77ee 100755 --- a/setup.py +++ b/setup.py @@ -230,7 +230,9 @@ if 'setuptools' in sys.modules: if not setupext.check_for_readline(): if sys.platform == 'darwin': requires.append('readline') - elif sys.platform.startswith('win'): + elif sys.platform.startswith('win') and sys.maxsize < 2**32: + # only require pyreadline on 32b Windows, due to 64b bug in pyreadline: + # https://bugs.launchpad.net/pyreadline/+bug/787574 requires.append('pyreadline') else: pass @@ -246,6 +248,7 @@ if 'setuptools' in sys.modules: print >> sys.stderr, "ERROR: bdist_wininst must be run alone. Exiting." sys.exit(1) setup_args['scripts'] = [pjoin('scripts','ipython_win_post_install.py')] + setup_args['options'] = {"bdist_wininst": {"install_script": "ipython_win_post_install.py"}} else: # If we are running without setuptools, call this function which will # check for dependencies an inform the user what is needed. This is