Commits

Anonymous committed 3344eb8

Fix easy_install not recognizing win32.exe files that include a custom bitmap.
(backport from trunk)

Comments (0)

Files changed (2)

 Release Notes/Change History
 ============================
 
+0.6c4
+ * Fixed not recogninzing ``win32.exe`` installers that included a custom
+   bitmap.
+
 0.6c3
  * You once again use "python -m easy_install" with Python 2.4 and above.
 

setuptools/command/easy_install.py

         if tag not in (0x1234567A, 0x1234567B):
             return None     # not a valid tag
 
-        f.seek(prepended-(12+cfglen+bmlen))
+        f.seek(prepended-(12+cfglen))
         cfg = ConfigParser.RawConfigParser({'version':'','target_version':''})
         try:
             cfg.readfp(StringIO.StringIO(f.read(cfglen).split(chr(0),1)[0]))
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.