|
46 | 46 | "_ctypes": {},
|
47 | 47 | "_decimal": {},
|
48 | 48 | "_elementtree": {},
|
49 |
| - "_hashlib": {"shared_depends_amd64": ["libcrypto-1_1-x64"]}, |
| 49 | + "_hashlib": { |
| 50 | + "shared_depends_amd64": ["libcrypto-1_1-x64"], |
| 51 | + "shared_depends_win32": ["libcrypto-1_1"], |
| 52 | + }, |
50 | 53 | "_lzma": {
|
51 | 54 | "ignore_additional_depends": {"$(OutDir)liblzma$(PyDebugExt).lib"},
|
52 | 55 | "static_depends": ["liblzma"],
|
|
60 | 63 | # project files.
|
61 | 64 | "_ssl": {
|
62 | 65 | "shared_depends_amd64": ["libcrypto-1_1-x64", "libssl-1_1-x64"],
|
| 66 | + "shared_depends_win32": ["libcrypto-1_1", "libssl-1_1"], |
63 | 67 | "static_depends_no_project": ["libcrypto_static", "libssl_static"],
|
64 | 68 | },
|
65 | 69 | "_queue": {},
|
@@ -689,16 +693,17 @@ def hack_props(td: pathlib.Path, pcbuild_path: pathlib.Path, arch: str, static:
|
689 | 693 | else:
|
690 | 694 | if arch == "amd64":
|
691 | 695 | suffix = b"x64"
|
692 |
| - elif arch == "x86": |
693 |
| - suffix = b"x86" |
| 696 | + elif arch == "win32": |
| 697 | + suffix = None |
694 | 698 | else:
|
695 | 699 | raise Exception("unhandled architecture: %s" % arch)
|
696 | 700 |
|
697 |
| - static_replace_in_file( |
698 |
| - openssl_props, |
699 |
| - b"<_DLLSuffix>-1_1</_DLLSuffix>", |
700 |
| - b"<_DLLSuffix>-1_1-%s</_DLLSuffix>" % suffix, |
701 |
| - ) |
| 701 | + if suffix: |
| 702 | + static_replace_in_file( |
| 703 | + openssl_props, |
| 704 | + b"<_DLLSuffix>-1_1</_DLLSuffix>", |
| 705 | + b"<_DLLSuffix>-1_1-%s</_DLLSuffix>" % suffix, |
| 706 | + ) |
702 | 707 |
|
703 | 708 |
|
704 | 709 | def hack_project_files(
|
@@ -1499,7 +1504,8 @@ def build_cpython(arch: str, pgo=False, build_mode="static"):
|
1499 | 1504 | # We need all the OpenSSL library files in the same directory to appease
|
1500 | 1505 | # install rules.
|
1501 | 1506 | if not static:
|
1502 |
| - openssl_root = td / "openssl" / arch |
| 1507 | + openssl_arch = {"amd64": "amd64", "x86": "win32"}[arch] |
| 1508 | + openssl_root = td / "openssl" / openssl_arch |
1503 | 1509 | openssl_bin_path = openssl_root / "bin"
|
1504 | 1510 | openssl_lib_path = openssl_root / "lib"
|
1505 | 1511 |
|
|
0 commit comments