mirror of
https://github.com/python/cpython.git
synced 2026-01-05 23:12:38 +00:00
svn+ssh://pythondev@svn.python.org/python/trunk ........ r59377 | georg.brandl | 2007-12-06 01:24:23 +0100 (Thu, 06 Dec 2007) | 2 lines Add another GHOP student to ACKS. ........ r59378 | raymond.hettinger | 2007-12-06 01:56:53 +0100 (Thu, 06 Dec 2007) | 5 lines Fix Issue 1045. Factor-out common calling code by simplifying the length_hint API. Speed-up the function by caching the PyObject_String for the attribute lookup. ........ r59380 | georg.brandl | 2007-12-06 02:52:24 +0100 (Thu, 06 Dec 2007) | 2 lines Diverse markup fixes. ........ r59383 | georg.brandl | 2007-12-06 10:45:39 +0100 (Thu, 06 Dec 2007) | 2 lines Better re.split examples. ........ r59386 | christian.heimes | 2007-12-06 14:15:13 +0100 (Thu, 06 Dec 2007) | 2 lines Fixed get_config_h_filename for Windows. Without the patch it can't find the pyconfig.h file inside a build tree. Added several small unit tests for sysconfig. ........ r59387 | christian.heimes | 2007-12-06 14:30:11 +0100 (Thu, 06 Dec 2007) | 1 line Silence more warnings, _CRT_NONSTDC_NO_DEPRECATE is already defined in pyconfig.h but several projects don't include it. ........ r59389 | christian.heimes | 2007-12-06 14:55:01 +0100 (Thu, 06 Dec 2007) | 1 line Disabled one test that is failing on Unix ........ r59399 | christian.heimes | 2007-12-06 22:13:06 +0100 (Thu, 06 Dec 2007) | 8 lines Several Windows related cleanups: * Removed a #define from pyconfig.h. The macro was already defined a few lines higher. * Fixed path to tix in the build_tkinter.py script * Changed make_buildinfo.c to use versions of unlink and strcat which are considered safe by Windows (as suggested by MvL). * Removed two defines from pyproject.vsprops that are no longer required. Both are defined in pyconfig.h and make_buildinfo.c doesn't use the unsafe versions any more (as suggested by MvL). * Added some more information about PGO and the property files to PCbuild9/readme.txt. Are you fine with the changes, Martin? ........ r59400 | raymond.hettinger | 2007-12-07 02:53:01 +0100 (Fri, 07 Dec 2007) | 4 lines Don't have the docs berate themselves. Keep a professional tone. If a todo is needed, put it in the tracker. ........ r59402 | georg.brandl | 2007-12-07 10:07:10 +0100 (Fri, 07 Dec 2007) | 3 lines Increase unit test coverage of SimpleXMLRPCServer. Written for GHOP by Turkay Eren. ........ r59406 | georg.brandl | 2007-12-07 16:16:57 +0100 (Fri, 07 Dec 2007) | 2 lines Update to windows doc from Robert. ........
78 lines
1.9 KiB
Python
78 lines
1.9 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
|
|
|
|
TCL = "tcl8.4.16"
|
|
TK = "tk8.4.16"
|
|
TIX = "tix-8.4.0"
|
|
#TIX = "Tix8.4.2"
|
|
ROOT = os.path.abspath(os.path.join(here, par, par))
|
|
NMAKE = "nmake /nologo "
|
|
|
|
def system(cmd):
|
|
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 True:
|
|
os.chdir(os.path.join(tcldir, "win"))
|
|
if clean:
|
|
system(NMAKE + "/f makefile.vc clean")
|
|
system(NMAKE + "/f makefile.vc")
|
|
system(NMAKE + "/f makefile.vc INSTALLDIR=%s install" % dest)
|
|
|
|
# TK
|
|
if True:
|
|
os.chdir(os.path.join(ROOT, TK, "win"))
|
|
if clean:
|
|
system(NMAKE + "/f makefile.vc clean")
|
|
system(NMAKE + "/f makefile.vc TCLDIR=%s" % tcldir)
|
|
system(NMAKE + "/f makefile.vc TCLDIR=%s INSTALLDIR=%s install" %
|
|
(tcldir, dest))
|
|
|
|
# TIX
|
|
if True:
|
|
# python9.mak is available at http://svn.python.org
|
|
os.chdir(os.path.join(ROOT, TIX, "win"))
|
|
if clean:
|
|
system(NMAKE + "/f python9.mak clean")
|
|
system(NMAKE + "/f python9.mak MACHINE=%s" % machine)
|
|
system(NMAKE + "/f 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()
|