Skip to content

Build mpdecimal on Windows and fix Python 3.13 validation #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Sep 5, 2024
Prev Previous commit
Next Next commit
Patch mpdecimal in python.props
  • Loading branch information
zanieb committed Sep 5, 2024
commit 44bfcbda416bd4ef75b9fd8d55002f021c756989
5 changes: 5 additions & 0 deletions cpython-windows/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,13 +352,15 @@ def hack_props(
xz_version = DOWNLOADS["xz"]["version"]
zlib_version = DOWNLOADS["zlib"]["version"]
tcltk_commit = DOWNLOADS["tk-windows-bin"]["git_commit"]
mpdecimal_version = DOWNLOADS["mpdecimal"]["version"]

sqlite_path = td / ("sqlite-autoconf-%s" % sqlite_version)
bzip2_path = td / ("bzip2-%s" % bzip2_version)
libffi_path = td / "libffi"
tcltk_path = td / ("cpython-bin-deps-%s" % tcltk_commit)
xz_path = td / ("xz-%s" % xz_version)
zlib_path = td / ("zlib-%s" % zlib_version)
mpdecimal_path = td / ("mpdecimal-%s" % mpdecimal_version)

openssl_root = td / "openssl" / arch
openssl_libs_path = openssl_root / "lib"
Expand Down Expand Up @@ -398,6 +400,9 @@ def hack_props(
elif b"<zlibDir" in line:
line = b"<zlibDir>%s\\</zlibDir>" % zlib_path

elif b"<mpdecimalDir" in line:
line = b"<mpdecimalDir>%s\\</mpdecimalDir>" % mpdecimal_path

lines.append(line)

with python_props_path.open("wb") as fh:
Expand Down