Changeset 391 for python/trunk/Tools/freeze
- Timestamp:
- Mar 19, 2014, 11:31:01 PM (11 years ago)
- Location:
- python/trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
python/trunk
-
Property svn:mergeinfo
set to
/python/vendor/Python-2.7.6 merged eligible /python/vendor/current merged eligible
-
Property svn:mergeinfo
set to
-
python/trunk/Tools/freeze/checkextensions_win32.py
r2 r391 4 4 are needed (primarily to toggle the behavior of "public" symbols. 5 5 6 I don t consider it worth parsing the MSVC makefiles for compiler options. Even if6 I don't consider it worth parsing the MSVC makefiles for compiler options. Even if 7 7 we get it just right, a specific freeze application may have specific compiler 8 8 options anyway (eg, to enable or disable specific functionality) 9 9 10 So my basic stra gtegy is:10 So my basic strategy is: 11 11 12 12 * Have some Windows INI files which "describe" one or more extension modules. … … 15 15 * This description can include: 16 16 - The MSVC .dsp file for the extension. The .c source file names 17 are extrac ed from there.17 are extracted from there. 18 18 - Specific compiler/linker options 19 19 - Flag to indicate if Unicode compilation is expected. -
python/trunk/Tools/freeze/makeconfig.py
r2 r391 1 1 import re 2 2 import sys 3 3 4 4 # Write the config.c file 5 5 6 never = ['marshal', '__main__', '__builtin__', 'sys', 'exceptions' ]6 never = ['marshal', '__main__', '__builtin__', 'sys', 'exceptions', '_warnings'] 7 7 8 8 def makeconfig(infp, outfp, modules, with_ifdef=0): … … 39 39 40 40 def test(): 41 import sys42 41 if not sys.argv[3:]: 43 42 print 'usage: python makeconfig.py config.c.in outputfile', -
python/trunk/Tools/freeze/makefreeze.py
r2 r391 63 63 outfp.write('\n') 64 64 # The following modules have a NULL code pointer, indicating 65 # that the prozen program should not search for them on the host65 # that the frozen program should not search for them on the host 66 66 # system. Importing them will *always* raise an ImportError. 67 67 # The zero value size is never used. -
python/trunk/Tools/freeze/winmakemakefile.py
r2 r391 135 135 136 136 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)" 142 142 print "\t$(resources)" 143 print "<<" 143 144 print 144 145 print "clean:"
Note:
See TracChangeset
for help on using the changeset viewer.