Skip to content

Commit 44bfcbd

Browse files
committed
Patch mpdecimal in python.props
1 parent 5adad22 commit 44bfcbd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cpython-windows/build.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,13 +352,15 @@ def hack_props(
352352
xz_version = DOWNLOADS["xz"]["version"]
353353
zlib_version = DOWNLOADS["zlib"]["version"]
354354
tcltk_commit = DOWNLOADS["tk-windows-bin"]["git_commit"]
355+
mpdecimal_version = DOWNLOADS["mpdecimal"]["version"]
355356

356357
sqlite_path = td / ("sqlite-autoconf-%s" % sqlite_version)
357358
bzip2_path = td / ("bzip2-%s" % bzip2_version)
358359
libffi_path = td / "libffi"
359360
tcltk_path = td / ("cpython-bin-deps-%s" % tcltk_commit)
360361
xz_path = td / ("xz-%s" % xz_version)
361362
zlib_path = td / ("zlib-%s" % zlib_version)
363+
mpdecimal_path = td / ("mpdecimal-%s" % mpdecimal_version)
362364

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

403+
elif b"<mpdecimalDir" in line:
404+
line = b"<mpdecimalDir>%s\\</mpdecimalDir>" % mpdecimal_path
405+
401406
lines.append(line)
402407

403408
with python_props_path.open("wb") as fh:

0 commit comments

Comments
 (0)