summaryrefslogtreecommitdiffstats
path: root/Tools/freeze/winmakemakefile.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2000-07-13 15:45:17 (GMT)
committerGuido van Rossum <guido@python.org>2000-07-13 15:45:17 (GMT)
commitf67c2383da573ecc1a774b61d382ca445d73d37c (patch)
tree5e6fc6d073e4e651fe09246233add80450a60c1f /Tools/freeze/winmakemakefile.py
parent5e70cfe22fb4df86c6a3af887148ee6b96d59bc9 (diff)
downloadcpython-f67c2383da573ecc1a774b61d382ca445d73d37c.zip
cpython-f67c2383da573ecc1a774b61d382ca445d73d37c.tar.gz
cpython-f67c2383da573ecc1a774b61d382ca445d73d37c.tar.bz2
Patch by Toby Dickenson, mentored by Mark Hammond, to support
automatically finding (most of) the standard PYD extensions, and to remove the hardcoded Python version.
Diffstat (limited to 'Tools/freeze/winmakemakefile.py')
-rw-r--r--Tools/freeze/winmakemakefile.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/Tools/freeze/winmakemakefile.py b/Tools/freeze/winmakemakefile.py
index 320504b..d668a6e8 100644
--- a/Tools/freeze/winmakemakefile.py
+++ b/Tools/freeze/winmakemakefile.py
@@ -51,6 +51,7 @@ def makemakefile(outfp, vars, files, target):
sys.stdout = save
def realwork(vars, moddefns, target):
+ version_suffix = `sys.version_info[0]`+`sys.version_info[1]`
print "# Makefile for Microsoft Visual C++ generated by freeze.py script"
print
print 'target = %s' % target
@@ -72,7 +73,7 @@ def realwork(vars, moddefns, target):
print '# The following line assumes you have built Python using the standard instructions'
print '# Otherwise fix the following line to point to the library.'
- print 'pythonlib = "$(pythonhome)/pcbuild/python15$(debug_suffix).lib"'
+ print 'pythonlib = "$(pythonhome)/pcbuild/python%s$(debug_suffix).lib"' % version_suffix
print
# We only ever write one "entry point" symbol - either
@@ -87,7 +88,7 @@ def realwork(vars, moddefns, target):
target_ext = ".dll"
- print "# As the target uses Python15.dll, we must use this compiler option!"
+ print "# As the target uses Python%s.dll, we must use this compiler option!" % version_suffix
print "cdl = /MD"
print
print "all: $(target)$(debug_suffix)%s" % (target_ext)