diff options
author | Kristján Valur Jónsson <kristjan@ccpgames.com> | 2007-04-30 15:17:46 (GMT) |
---|---|---|
committer | Kristján Valur Jónsson <kristjan@ccpgames.com> | 2007-04-30 15:17:46 (GMT) |
commit | 7a0da19087bfd5e01bcada885b4d0786749b99cf (patch) | |
tree | b297e4cfebe2fa28eaf0952cfc1765fa13f830c0 /PCbuild8/field3.py | |
parent | 714e19a7bd906c46af0b8258d5d3c41cfe1b7a89 (diff) | |
download | cpython-7a0da19087bfd5e01bcada885b4d0786749b99cf.zip cpython-7a0da19087bfd5e01bcada885b4d0786749b99cf.tar.gz cpython-7a0da19087bfd5e01bcada885b4d0786749b99cf.tar.bz2 |
Complete revamp of PCBuild8 directory. Use subdirectories for each project under the main pcbuild solution. Now make extensive use of property sheets to simplify project configuration. x64 build fully supported, and the process for building PGO version (Profiler Guided Optimization) simplified. All projects are now present, except _ssl, which needs to be reimplemented. Also, some of the projects that require external libraries need extra work to fully compile on x64.
Diffstat (limited to 'PCbuild8/field3.py')
-rw-r--r-- | PCbuild8/field3.py | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/PCbuild8/field3.py b/PCbuild8/field3.py deleted file mode 100644 index 47f24ca..0000000 --- a/PCbuild8/field3.py +++ /dev/null @@ -1,35 +0,0 @@ -# An absurd workaround for the lack of arithmetic in MS's resource compiler. -# After building Python, run this, then paste the output into the appropriate -# part of PC\python_nt.rc. -# Example output: -# -# * For 2.3a0, -# * PY_MICRO_VERSION = 0 -# * PY_RELEASE_LEVEL = 'alpha' = 0xA -# * PY_RELEASE_SERIAL = 1 -# * -# * and 0*1000 + 10*10 + 1 = 101. -# */ -# #define FIELD3 101 - -import sys - -major, minor, micro, level, serial = sys.version_info -levelnum = {'alpha': 0xA, - 'beta': 0xB, - 'candidate': 0xC, - 'final': 0xF, - }[level] -string = sys.version.split()[0] # like '2.3a0' - -print " * For %s," % string -print " * PY_MICRO_VERSION = %d" % micro -print " * PY_RELEASE_LEVEL = %r = %s" % (level, hex(levelnum)) -print " * PY_RELEASE_SERIAL = %d" % serial -print " *" - -field3 = micro * 1000 + levelnum * 10 + serial - -print " * and %d*1000 + %d*10 + %d = %d" % (micro, levelnum, serial, field3) -print " */" -print "#define FIELD3", field3 |