diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2006-08-25 00:11:38 +0000 |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2006-08-25 00:11:38 +0000 |
commit | 58af7ef55df997ab615748205ef6914f5373f953 (patch) | |
tree | 66fd33821db8d0875dc915fa6012fad3f51e5468 | |
parent | 7b3c03179091e5a849fe0aa9d2ac7290806c36a7 (diff) | |
download | cpython-git-58af7ef55df997ab615748205ef6914f5373f953.tar.gz |
Patch #1545507: Exclude ctypes package in Win64 MSI file.
-rw-r--r-- | Misc/NEWS | 2 | ||||
-rw-r--r-- | Tools/msi/msi.py | 8 |
2 files changed, 10 insertions, 0 deletions
@@ -36,6 +36,8 @@ Documentation Build ----- +- Patch #1545507: Exclude ctypes package in Win64 MSI file. + - Fix OpenSSL debug build process. diff --git a/Tools/msi/msi.py b/Tools/msi/msi.py index 8a72eb93d0..f06944f430 100644 --- a/Tools/msi/msi.py +++ b/Tools/msi/msi.py @@ -872,6 +872,12 @@ def add_files(db): version=version, language=lang) tmpfiles.append("msvcr71.dll") + # Check if _ctypes.pyd exists + have_ctypes = os.path.exists(srcdir+"/PCBuild/_ctypes.pyd") + if not have_ctypes: + print "WARNING: _ctypes.pyd not found, ctypes will not be included" + extensions.remove("_ctypes.pyd") + # Add all .py files in Lib, except lib-tk, test dirs={} pydirs = [(root,"Lib")] @@ -889,6 +895,8 @@ def add_files(db): # data: Lib/email/test # output: Lib/test testsuite.set_current() + elif not have_ctypes and dir == "ctypes": + continue else: default_feature.set_current() lib = PyDirectory(db, cab, parent, dir, dir, "%s|%s" % (parent.make_short(dir), dir)) |