Kaydet (Commit) 247a9b87 authored tarafından Benjamin Peterson's avatar Benjamin Peterson

Merged revisions 69415,69591,69593 via svnmerge from

svn+ssh://pythondev@svn.python.org/python/trunk

........
  r69415 | benjamin.peterson | 2009-02-07 13:08:22 -0600 (Sat, 07 Feb 2009) | 1 line

  make destinsrc private
........
  r69591 | martin.v.loewis | 2009-02-13 14:26:16 -0600 (Fri, 13 Feb 2009) | 1 line

  Update Tix build procedure.
........
  r69593 | martin.v.loewis | 2009-02-13 14:51:48 -0600 (Fri, 13 Feb 2009) | 1 line

  Add optional code signing after merging.
........
üst ba01dd93
...@@ -256,7 +256,7 @@ def move(src, dst): ...@@ -256,7 +256,7 @@ def move(src, dst):
os.rename(src, real_dst) os.rename(src, real_dst)
except OSError: except OSError:
if os.path.isdir(src): if os.path.isdir(src):
if destinsrc(src, dst): if _destinsrc(src, dst):
raise Error("Cannot move a directory '%s' into itself '%s'." % (src, dst)) raise Error("Cannot move a directory '%s' into itself '%s'." % (src, dst))
copytree(src, real_dst, symlinks=True) copytree(src, real_dst, symlinks=True)
rmtree(src) rmtree(src)
...@@ -264,7 +264,7 @@ def move(src, dst): ...@@ -264,7 +264,7 @@ def move(src, dst):
copy2(src, real_dst) copy2(src, real_dst)
os.unlink(src) os.unlink(src)
def destinsrc(src, dst): def _destinsrc(src, dst):
src = abspath(src) src = abspath(src)
dst = abspath(dst) dst = abspath(dst)
if not src.endswith(os.path.sep): if not src.endswith(os.path.sep):
......
...@@ -346,8 +346,8 @@ class TestMove(unittest.TestCase): ...@@ -346,8 +346,8 @@ class TestMove(unittest.TestCase):
for src, dst in [('srcdir', 'srcdir/dest')]: for src, dst in [('srcdir', 'srcdir/dest')]:
src = os.path.join(TESTFN, src) src = os.path.join(TESTFN, src)
dst = os.path.join(TESTFN, dst) dst = os.path.join(TESTFN, dst)
self.assert_(shutil.destinsrc(src, dst), self.assert_(shutil._destinsrc(src, dst),
msg='destinsrc() wrongly concluded that ' msg='_destinsrc() wrongly concluded that '
'dst (%s) is not in src (%s)' % (dst, src)) 'dst (%s) is not in src (%s)' % (dst, src))
finally: finally:
shutil.rmtree(TESTFN, ignore_errors=True) shutil.rmtree(TESTFN, ignore_errors=True)
...@@ -358,8 +358,8 @@ class TestMove(unittest.TestCase): ...@@ -358,8 +358,8 @@ class TestMove(unittest.TestCase):
for src, dst in [('srcdir', 'src/dest'), ('srcdir', 'srcdir.new')]: for src, dst in [('srcdir', 'src/dest'), ('srcdir', 'srcdir.new')]:
src = os.path.join(TESTFN, src) src = os.path.join(TESTFN, src)
dst = os.path.join(TESTFN, dst) dst = os.path.join(TESTFN, dst)
self.failIf(shutil.destinsrc(src, dst), self.failIf(shutil._destinsrc(src, dst),
msg='destinsrc() wrongly concluded that ' msg='_destinsrc() wrongly concluded that '
'dst (%s) is in src (%s)' % (dst, src)) 'dst (%s) is in src (%s)' % (dst, src))
finally: finally:
shutil.rmtree(TESTFN, ignore_errors=True) shutil.rmtree(TESTFN, ignore_errors=True)
......
...@@ -52,18 +52,18 @@ def build(platform, clean): ...@@ -52,18 +52,18 @@ def build(platform, clean):
if 1: if 1:
os.chdir(os.path.join(ROOT, TK, "win")) os.chdir(os.path.join(ROOT, TK, "win"))
if clean: if clean:
nmake("makefile.vc", "clean", TCLDIR=tcldir) nmake("makefile.vc", "clean", DEBUG=0, TCLDIR=tcldir)
nmake("makefile.vc", TCLDIR=tcldir, MACHINE=machine) nmake("makefile.vc", DEBUG=0, MACHINE=machine)
nmake("makefile.vc", "install", TCLDIR=tcldir, INSTALLDIR=dest, MACHINE=machine) nmake("makefile.vc", "install", DEBUG=0, INSTALLDIR=dest, MACHINE=machine)
# TIX # TIX
if 1: if 1:
# python9.mak is available at http://svn.python.org # python9.mak is available at http://svn.python.org
os.chdir(os.path.join(ROOT, TIX, "win")) os.chdir(os.path.join(ROOT, TIX, "win"))
if clean: if clean:
nmake("python9.mak", "clean") nmake("python.mak", "clean")
nmake("python9.mak", MACHINE=machine, INSTALL_DIR=dest) nmake("python.mak", MACHINE=machine, INSTALL_DIR=dest)
nmake("python9.mak", "install", INSTALL_DIR=dest) nmake("python.mak", "install", INSTALL_DIR=dest)
def main(): def main():
if len(sys.argv) < 2 or sys.argv[1] not in ("Win32", "AMD64"): if len(sys.argv) < 2 or sys.argv[1] not in ("Win32", "AMD64"):
......
import msilib,os,win32com,tempfile,sys import msilib,os,win32com,tempfile,sys
PCBUILD="PCBuild" PCBUILD="PCBuild"
certname = None
from config import * from config import *
Win64 = "amd64" in PCBUILD Win64 = "amd64" in PCBUILD
...@@ -76,3 +77,8 @@ def merge(msi, feature, rootdir, modules): ...@@ -76,3 +77,8 @@ def merge(msi, feature, rootdir, modules):
db.Commit() db.Commit()
merge(msi, "SharedCRT", "TARGETDIR", modules) merge(msi, "SharedCRT", "TARGETDIR", modules)
# certname (from config.py) should be (a substring of)
# the certificate subject, e.g. "Python Software Foundation"
if certname:
os.system('signtool sign /n "%s" /t http://timestamp.verisign.com/scripts/timestamp.dll %s' % (certname, msi))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment