Commits

Ian Bicking committed fbf8368

Apply patch from Sylvain Pasche; fix pip installation on Windows (#479739)

Comments (0)

Files changed (2)

 hg tip
 ~~~~~~
 
+* Fix pip installation on Windows
+
 1.4.1
 ~~~~~
+
 * Include pip 0.6
 
 1.4
         filename = 'pip'
     else:
         filename = filenames[-1]
-    cmd = [py_executable, join(os.path.dirname(py_executable), 'easy_install'), filename]
+    easy_install_script = 'easy_install'
+    if sys.platform == 'win32':
+        easy_install_script = 'easy_install-script.py'
+    cmd = [py_executable, join(os.path.dirname(py_executable), easy_install_script), filename]
     if filename == 'pip':
         logger.info('Installing pip from network...')
     else: