[Python-checkins] r84902 - in python/branches/py3k: Misc/NEWS PC/VC6/build_ssl.py PC/VS8.0/build_ssl.py PCbuild/build_ssl.py
hirokazu.yamamoto
python-checkins at python.org
Sun Sep 19 11:24:20 CEST 2010
Author: hirokazu.yamamoto
Date: Sun Sep 19 11:24:20 2010
New Revision: 84902
Log:
Issue #9552: Avoid unnecessary rebuild of OpenSSL. (Windows)
Modified:
python/branches/py3k/Misc/NEWS
python/branches/py3k/PC/VC6/build_ssl.py
python/branches/py3k/PC/VS8.0/build_ssl.py
python/branches/py3k/PCbuild/build_ssl.py
Modified: python/branches/py3k/Misc/NEWS
==============================================================================
--- python/branches/py3k/Misc/NEWS (original)
+++ python/branches/py3k/Misc/NEWS Sun Sep 19 11:24:20 2010
@@ -197,6 +197,8 @@
Build
-----
+- Issue #9552: Avoid unnecessary rebuild of OpenSSL. (Windows)
+
- Issue #9810: Compile bzip2 source files in python's project file
directly. It used to be built with bzip2's makefile.
Modified: python/branches/py3k/PC/VC6/build_ssl.py
==============================================================================
--- python/branches/py3k/PC/VC6/build_ssl.py (original)
+++ python/branches/py3k/PC/VC6/build_ssl.py Sun Sep 19 11:24:20 2010
@@ -173,12 +173,12 @@
# os.system("perl util\mk1mf.pl debug "+configure+" >"+makefile)
fix_makefile(makefile)
- shutil.copy(r"crypto\buildinf.h", r"crypto\buildinf_%s.h" % arch)
- shutil.copy(r"crypto\opensslconf.h", r"crypto\opensslconf_%s.h" % arch)
+ shutil.copy2(r"crypto\buildinf.h", r"crypto\buildinf_%s.h" % arch)
+ shutil.copy2(r"crypto\opensslconf.h", r"crypto\opensslconf_%s.h" % arch)
# Now run make.
- shutil.copy(r"crypto\buildinf_%s.h" % arch, r"crypto\buildinf.h")
- shutil.copy(r"crypto\opensslconf_%s.h" % arch, r"crypto\opensslconf.h")
+ shutil.copy2(r"crypto\buildinf_%s.h" % arch, r"crypto\buildinf.h")
+ shutil.copy2(r"crypto\opensslconf_%s.h" % arch, r"crypto\opensslconf.h")
#makeCommand = "nmake /nologo PERL=\"%s\" -f \"%s\"" %(perl, makefile)
makeCommand = "nmake /nologo -f \"%s\"" % makefile
Modified: python/branches/py3k/PC/VS8.0/build_ssl.py
==============================================================================
--- python/branches/py3k/PC/VS8.0/build_ssl.py (original)
+++ python/branches/py3k/PC/VS8.0/build_ssl.py Sun Sep 19 11:24:20 2010
@@ -220,8 +220,8 @@
if arch == "amd64":
create_makefile64(makefile, m32)
fix_makefile(makefile)
- shutil.copy(r"crypto\buildinf.h", r"crypto\buildinf_%s.h" % arch)
- shutil.copy(r"crypto\opensslconf.h", r"crypto\opensslconf_%s.h" % arch)
+ shutil.copy2(r"crypto\buildinf.h", r"crypto\buildinf_%s.h" % arch)
+ shutil.copy2(r"crypto\opensslconf.h", r"crypto\opensslconf_%s.h" % arch)
# Now run make.
if arch == "amd64":
@@ -230,8 +230,8 @@
print("ml64 assembler has failed.")
sys.exit(rc)
- shutil.copy(r"crypto\buildinf_%s.h" % arch, r"crypto\buildinf.h")
- shutil.copy(r"crypto\opensslconf_%s.h" % arch, r"crypto\opensslconf.h")
+ shutil.copy2(r"crypto\buildinf_%s.h" % arch, r"crypto\buildinf.h")
+ shutil.copy2(r"crypto\opensslconf_%s.h" % arch, r"crypto\opensslconf.h")
#makeCommand = "nmake /nologo PERL=\"%s\" -f \"%s\"" %(perl, makefile)
makeCommand = "nmake /nologo -f \"%s\"" % makefile
Modified: python/branches/py3k/PCbuild/build_ssl.py
==============================================================================
--- python/branches/py3k/PCbuild/build_ssl.py (original)
+++ python/branches/py3k/PCbuild/build_ssl.py Sun Sep 19 11:24:20 2010
@@ -224,15 +224,15 @@
if arch == "amd64":
create_makefile64(makefile, m32)
fix_makefile(makefile)
- shutil.copy(r"crypto\buildinf.h", r"crypto\buildinf_%s.h" % arch)
- shutil.copy(r"crypto\opensslconf.h", r"crypto\opensslconf_%s.h" % arch)
+ shutil.copy2(r"crypto\buildinf.h", r"crypto\buildinf_%s.h" % arch)
+ shutil.copy2(r"crypto\opensslconf.h", r"crypto\opensslconf_%s.h" % arch)
# If the assembler files don't exist in tmpXX, copy them there
if not os.path.exists("tmp"+dirsuffix):
os.mkdir("tmp"+dirsuffix)
for f in os.listdir("asm"+dirsuffix):
if not f.endswith(".asm"): continue
- shutil.copy(r"asm%s\%s" % (dirsuffix, f), "tmp"+dirsuffix)
+ shutil.copy2(r"asm%s\%s" % (dirsuffix, f), "tmp"+dirsuffix)
# Now run make.
if arch == "amd64":
@@ -241,8 +241,8 @@
print("ml64 assembler has failed.")
sys.exit(rc)
- shutil.copy(r"crypto\buildinf_%s.h" % arch, r"crypto\buildinf.h")
- shutil.copy(r"crypto\opensslconf_%s.h" % arch, r"crypto\opensslconf.h")
+ shutil.copy2(r"crypto\buildinf_%s.h" % arch, r"crypto\buildinf.h")
+ shutil.copy2(r"crypto\opensslconf_%s.h" % arch, r"crypto\opensslconf.h")
#makeCommand = "nmake /nologo PERL=\"%s\" -f \"%s\"" %(perl, makefile)
makeCommand = "nmake /nologo -f \"%s\"" % makefile
More information about the Python-checkins
mailing list