summaryrefslogtreecommitdiffstats
path: root/PC/VS7.1/field3.py
diff options
context:
space:
mode:
authorBrian Curtin <brian@python.org>2013-01-25 23:11:34 (GMT)
committerBrian Curtin <brian@python.org>2013-01-25 23:11:34 (GMT)
commit591c4282d70a8aaebe9823ee5b74c27707e9d40d (patch)
tree6e90e4f7c4a732af50fe7337dafc88bb166c1fd4 /PC/VS7.1/field3.py
parent570c5b235451412ac55ce211813358b50d0e070b (diff)
downloadcpython-591c4282d70a8aaebe9823ee5b74c27707e9d40d.zip
cpython-591c4282d70a8aaebe9823ee5b74c27707e9d40d.tar.gz
cpython-591c4282d70a8aaebe9823ee5b74c27707e9d40d.tar.bz2
Fix #16769. Remove outdated Visual Studio project directories for VC6, VS7.1, and VS8.
Diffstat (limited to 'PC/VS7.1/field3.py')
-rw-r--r--PC/VS7.1/field3.py35
1 files changed, 0 insertions, 35 deletions
diff --git a/PC/VS7.1/field3.py b/PC/VS7.1/field3.py
deleted file mode 100644
index 47f24ca..0000000
--- a/PC/VS7.1/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