Skip to content

Commit

Permalink
Allow for sys.abiflags to be absent
Browse files Browse the repository at this point in the history
  • Loading branch information
tttapa committed May 19, 2024
1 parent e1f5dbd commit e10d9cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/py_build_cmake/config/quirks.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def cross_compile_mac(config: ValueReference, archs):
cross_cfg["arch"] = platform_to_platform_tag("_".join(cross_arch))
if sys.implementation.name == "cpython":
version = "".join(map(str, sys.version_info[:2]))
abi = sys.abiflags
abi = getattr(sys, "abiflags", "")
env = cross_cfg["cmake"]["env"] = {}
env["SETUPTOOLS_EXT_SUFFIX"] = f".cpython-{version}{abi}-darwin.so"
config.set_value("cross", cross_cfg)
Expand Down

0 comments on commit e10d9cd

Please sign in to comment.