mirror of
https://github.com/python/cpython.git
synced 2025-07-23 03:05:38 +00:00

svn+ssh://pythondev@svn.python.org/python/trunk ........ r59887 | neal.norwitz | 2008-01-10 06:42:58 +0100 (Thu, 10 Jan 2008) | 1 line Reword entry, not sure I made it much better though. ........ r59888 | andrew.kuchling | 2008-01-10 14:37:12 +0100 (Thu, 10 Jan 2008) | 1 line Check for fd of -1 to save fsync() and fstat() call ........ r59891 | thomas.heller | 2008-01-10 19:45:40 +0100 (Thu, 10 Jan 2008) | 1 line Reflow a paragraph, and fix a typo. ........ r59892 | raymond.hettinger | 2008-01-10 20:15:10 +0100 (Thu, 10 Jan 2008) | 1 line Examples for named tuple subclassing should include __slots__ ........ r59895 | raymond.hettinger | 2008-01-10 21:37:12 +0100 (Thu, 10 Jan 2008) | 1 line Clarify how to add a field to a named tuple. ........ r59896 | amaury.forgeotdarc | 2008-01-10 22:59:42 +0100 (Thu, 10 Jan 2008) | 12 lines Closing issue1761. Surprising behaviour of the "$" regexp: it matches the end of the string, AND just before the newline at the end of the string:: re.sub('$', '#', 'foo\n') == 'foo#\n#' Python is consistent with Perl and the pcre library, so we just document it. Guido prefers "\Z" to match only the end of the string. ........ r59898 | raymond.hettinger | 2008-01-11 00:00:01 +0100 (Fri, 11 Jan 2008) | 1 line Neaten-up the named tuple docs ........ r59900 | raymond.hettinger | 2008-01-11 01:23:13 +0100 (Fri, 11 Jan 2008) | 1 line Run doctests on the collections module ........ r59903 | raymond.hettinger | 2008-01-11 02:25:54 +0100 (Fri, 11 Jan 2008) | 1 line Doctest results return a named tuple for readability ........ r59904 | raymond.hettinger | 2008-01-11 03:12:33 +0100 (Fri, 11 Jan 2008) | 1 line Comment-out missing constant (from rev 59819) ........ r59905 | raymond.hettinger | 2008-01-11 03:24:13 +0100 (Fri, 11 Jan 2008) | 1 line Have Decimal.as_tuple return a named tuple. ........ r59906 | raymond.hettinger | 2008-01-11 04:04:50 +0100 (Fri, 11 Jan 2008) | 1 line Let most inspect functions return named tuples ........ r59907 | raymond.hettinger | 2008-01-11 04:20:54 +0100 (Fri, 11 Jan 2008) | 1 line Improve usability of the SequenceMatcher by returning named tuples describing match ranges. ........ r59909 | thomas.heller | 2008-01-11 09:04:03 +0100 (Fri, 11 Jan 2008) | 1 line Add an important missing blank. ........ r59910 | georg.brandl | 2008-01-11 10:19:11 +0100 (Fri, 11 Jan 2008) | 2 lines Guard definition of TIPC_SUB_CANCEL with an #ifdef. ........ r59911 | georg.brandl | 2008-01-11 10:20:58 +0100 (Fri, 11 Jan 2008) | 2 lines News entries for rev. 5990[567]. ........ r59912 | georg.brandl | 2008-01-11 10:55:53 +0100 (Fri, 11 Jan 2008) | 2 lines Documentation for r5990[3567]. ........ r59913 | thomas.heller | 2008-01-11 13:41:39 +0100 (Fri, 11 Jan 2008) | 4 lines The sqlite3 dll, when compiled in debug mode, must be linked with /MDd to use the debug runtime library. Further, the dll will be named sqlite3_d.dll. ........ r59919 | thomas.heller | 2008-01-11 16:38:46 +0100 (Fri, 11 Jan 2008) | 6 lines Revert revision 59913, because it was wrong: The sqlite3 dll, when compiled in debug mode, must be linked with /MDd to use the debug runtime library. Further, the dll will be named sqlite3_d.dll. ........ r59920 | christian.heimes | 2008-01-11 16:42:29 +0100 (Fri, 11 Jan 2008) | 1 line Removed unused variable ........
88 lines
2.2 KiB
Python
88 lines
2.2 KiB
Python
"""Script to compile the dependencies of _tkinter
|
|
|
|
Copyright (c) 2007 by Christian Heimes <christian@cheimes.de>
|
|
|
|
Licensed to PSF under a Contributor Agreement.
|
|
"""
|
|
|
|
import os
|
|
import sys
|
|
import shutil
|
|
|
|
here = os.path.abspath(os.path.dirname(__file__))
|
|
par = os.path.pardir
|
|
|
|
if 1:
|
|
TCL = "tcl8.4.16"
|
|
TK = "tk8.4.16"
|
|
TIX = "tix-8.4.0"
|
|
else:
|
|
TCL = "tcl8.5b3"
|
|
TK = "tcl8.5b3"
|
|
TIX = "Tix8.4.2"
|
|
|
|
ROOT = os.path.abspath(os.path.join(here, par, par))
|
|
# Windows 2000 compatibility: WINVER 0x0500
|
|
# http://msdn2.microsoft.com/en-us/library/aa383745.aspx
|
|
NMAKE = ('nmake /nologo /f %s '
|
|
'COMPILERFLAGS=\"-DWINVER=0x0500 -D_WIN32_WINNT=0x0500 -DNTDDI_VERSION=NTDDI_WIN2KSP4\" '
|
|
'%s %s')
|
|
|
|
def nmake(makefile, command="", **kw):
|
|
defines = ' '.join(k+'='+v for k, v in kw.items())
|
|
cmd = NMAKE % (makefile, defines, command)
|
|
print("\n\n"+cmd+"\n")
|
|
if os.system(cmd) != 0:
|
|
raise RuntimeError(cmd)
|
|
|
|
def build(platform, clean):
|
|
if platform == "Win32":
|
|
dest = os.path.join(ROOT, "tcltk")
|
|
machine = "X86"
|
|
elif platform == "x64":
|
|
dest = os.path.join(ROOT, "tcltk64")
|
|
machine = "X64"
|
|
else:
|
|
raise ValueError(platform)
|
|
|
|
# TCL
|
|
tcldir = os.path.join(ROOT, TCL)
|
|
if 1:
|
|
os.chdir(os.path.join(tcldir, "win"))
|
|
if clean:
|
|
nmake("makefile.vc", "clean")
|
|
nmake("makefile.vc")
|
|
nmake("makefile.vc", "install", INSTALLDIR=dest)
|
|
|
|
# TK
|
|
if 1:
|
|
os.chdir(os.path.join(ROOT, TK, "win"))
|
|
if clean:
|
|
nmake("makefile.vc", "clean", TCLDIR=tcldir)
|
|
nmake("makefile.vc", TCLDIR=tcldir)
|
|
nmake("makefile.vc", "install", TCLDIR=tcldir, INSTALLDIR=dest)
|
|
|
|
# TIX
|
|
if 1:
|
|
# python9.mak is available at http://svn.python.org
|
|
os.chdir(os.path.join(ROOT, TIX, "win"))
|
|
if clean:
|
|
nmake("python9.mak", "clean")
|
|
nmake("python9.mak", MACHINE=machine)
|
|
nmake("python9.mak", "install")
|
|
|
|
def main():
|
|
if len(sys.argv) < 2 or sys.argv[1] not in ("Win32", "x64"):
|
|
print("%s Win32|x64" % sys.argv[0])
|
|
sys.exit(1)
|
|
|
|
if "-c" in sys.argv:
|
|
clean = True
|
|
else:
|
|
clean = False
|
|
|
|
build(sys.argv[1], clean)
|
|
|
|
|
|
if __name__ == '__main__':
|
|
main()
|