summaryrefslogtreecommitdiffstats
path: root/PCbuild/vs9to8.py
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@microsoft.com>2014-11-22 20:54:57 (GMT)
committerSteve Dower <steve.dower@microsoft.com>2014-11-22 20:54:57 (GMT)
commit65e4cb10d9d9964f30bc72561bf0e86833328a3b (patch)
tree1c9502ea790480e2ea06b380d912eeb879b2f96d /PCbuild/vs9to8.py
parent92716777b862af05bf149bd02cac4d83234751c4 (diff)
downloadcpython-65e4cb10d9d9964f30bc72561bf0e86833328a3b.zip
cpython-65e4cb10d9d9964f30bc72561bf0e86833328a3b.tar.gz
cpython-65e4cb10d9d9964f30bc72561bf0e86833328a3b.tar.bz2
Issue #22919: Windows build updated to support VC 14.0 (Visual Studio 2015), which will be used for the official 3.5 release.
Diffstat (limited to 'PCbuild/vs9to8.py')
-rw-r--r--PCbuild/vs9to8.py34
1 files changed, 0 insertions, 34 deletions
diff --git a/PCbuild/vs9to8.py b/PCbuild/vs9to8.py
deleted file mode 100644
index 3b88a16..0000000
--- a/PCbuild/vs9to8.py
+++ /dev/null
@@ -1,34 +0,0 @@
-from __future__ import with_statement
-import os
-
-def vs9to8(src, dest):
- for name in os.listdir(src):
- path, ext = os.path.splitext(name)
- if ext.lower() not in ('.sln', '.vcproj', '.vsprops'):
- continue
-
- filename = os.path.normpath(os.path.join(src, name))
- destname = os.path.normpath(os.path.join(dest, name))
- print("%s -> %s" % (filename, destname))
-
- with open(filename, 'rU') as fin:
- lines = fin.read()
- lines = lines.replace('Version="9,00"', 'Version="8.00"')
- lines = lines.replace('Version="9.00"', 'Version="8.00"')
- lines = lines.replace('Format Version 10.00', 'Format Version 9.00')
- lines = lines.replace('Visual Studio 2008', 'Visual Studio 2005')
-
- lines = lines.replace('wininst-9.0', 'wininst-8.0')
- lines = lines.replace('..\\', '..\\..\\')
- lines = lines.replace('..\\..\\..\\..\\', '..\\..\\..\\')
-
- # Bah. VS8.0 does not expand macros in file names.
- # Replace them here.
- lines = lines.replace('$(sqlite3Dir)', '..\\..\\..\\sqlite-3.6.21')
-
- with open(destname, 'wb') as fout:
- lines = lines.replace("\n", "\r\n").encode()
- fout.write(lines)
-
-if __name__ == "__main__":
- vs9to8(src=".", dest="../PC/VS8.0")