Ignore:
Timestamp:
Mar 19, 2014, 11:31:01 PM (11 years ago)
Author:
dmik
Message:

python: Merge vendor 2.7.6 to trunk.

Location:
python/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • python/trunk

  • python/trunk/Tools/freeze/checkextensions_win32.py

    r2 r391  
    44are needed (primarily to toggle the behavior of "public" symbols.
    55
    6 I dont consider it worth parsing the MSVC makefiles for compiler options.  Even if
     6I don't consider it worth parsing the MSVC makefiles for compiler options.  Even if
    77we get it just right, a specific freeze application may have specific compiler
    88options anyway (eg, to enable or disable specific functionality)
    99
    10 So my basic stragtegy is:
     10So my basic strategy is:
    1111
    1212* Have some Windows INI files which "describe" one or more extension modules.
     
    1515* This description can include:
    1616  - The MSVC .dsp file for the extension.  The .c source file names
    17     are extraced from there.
     17    are extracted from there.
    1818  - Specific compiler/linker options
    1919  - Flag to indicate if Unicode compilation is expected.
  • python/trunk/Tools/freeze/makeconfig.py

    r2 r391  
    11import re
    2 
     2import sys
    33
    44# Write the config.c file
    55
    6 never = ['marshal', '__main__', '__builtin__', 'sys', 'exceptions']
     6never = ['marshal', '__main__', '__builtin__', 'sys', 'exceptions', '_warnings']
    77
    88def makeconfig(infp, outfp, modules, with_ifdef=0):
     
    3939
    4040def test():
    41     import sys
    4241    if not sys.argv[3:]:
    4342        print 'usage: python makeconfig.py config.c.in outputfile',
  • python/trunk/Tools/freeze/makefreeze.py

    r2 r391  
    6363    outfp.write('\n')
    6464    # The following modules have a NULL code pointer, indicating
    65     # that the prozen program should not search for them on the host
     65    # that the frozen program should not search for them on the host
    6666    # system. Importing them will *always* raise an ImportError.
    6767    # The zero value size is never used.
  • python/trunk/Tools/freeze/winmakemakefile.py

    r2 r391  
    135135
    136136    print "$(target)$(debug_suffix)%s: $(temp_dir) $(OBJS)" % (target_ext)
    137     print "\tlink -out:$(target)$(debug_suffix)%s %s" % (target_ext, target_link_flags),
    138     print "\t$(OBJS) \\"
    139     print "\t$(LIBS) \\"
    140     print "\t$(ADDN_LINK_FILES) \\"
    141     print "\t$(pythonlib) $(lcustom) $(l_debug)\\"
     137    print "\tlink -out:$(target)$(debug_suffix)%s %s" % (target_ext, target_link_flags), "@<<"
     138    print "\t$(OBJS)"
     139    print "\t$(LIBS)"
     140    print "\t$(ADDN_LINK_FILES)"
     141    print "\t$(pythonlib) $(lcustom) $(l_debug)"
    142142    print "\t$(resources)"
     143    print "<<"
    143144    print
    144145    print "clean:"
Note: See TracChangeset for help on using the changeset viewer.