Changeset 251

Show
Ignore:
Timestamp:
Mon Feb 6 12:01:23 2006
Author:
giovannibajo
Message:

Setup UPX properly with Python 2.4 under Windows

Files:

Legend:

Unmodified
Added
Removed
Modified
  • trunk/Build.py

    r245 r251  
    43 43     import icon, versionInfo  
    44 44  
      45 def setupUPXFlags():  
      46     f = os.environ.get("UPX", "")  
      47     is24 = hasattr(sys, "version_info") and sys.version_info[:2] >= (2,4)  
      48     if iswin and is24:  
      49         # Binaries built with Visual Studio 7.1 require --strip-loadconf  
      50         # or they won't compress.  
      51         f = "--strip-loadconf " + f  
      52     f = "--best " + f  
      53     os.environ["UPX"] = f  
      54  
      55 if config['hasUPX']:  
      56     setupUPXFlags()  
      57  
    45 58 def build(spec):  
    46 59     global SPECPATH, BUILDPATH, WARNFILE, rthooks  
  • trunk/doc/CHANGES.txt

    r244 r251  
    23 23  + (Linux) Ignore linux-gate.so while calculating dependencies (fix provided  
    24 24    by Vikram Aggarwal).  
      25  + (Windows) With Python 2.4, setup UPX properly so to be able to compress  
      26    binaries generated with Visual Studio .NET 2003 (such as most of the  
      27    extensions).  
    25 28  
    26 29