Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion Tests/test_image_access.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,12 @@ def test_embeddable(self) -> None:
""")

objects = compiler.compile(["embed_pil.c"])
compiler.link_executable(objects, "embed_pil")
libraries = []
if compiler.compiler_type == "mingw32":
# MSVC links the Python library automatically via a pragma in
# pyconfig.h, but MinGW needs it to be passed explicitly
libraries.append("python3")
compiler.link_executable(objects, "embed_pil", libraries=libraries)

env = os.environ.copy()
env["PATH"] = sys.prefix + ";" + env["PATH"]
Expand Down
Loading