Skip to content

Commit

Permalink
add windows python < 3.10 workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
arvidn committed Jun 8, 2024
1 parent 54b55dc commit e6557c6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bindings/python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,12 @@ def write_b2_python_config(
# overrides ever disagree with us.

ext_suffix = sysconfig.get_config_var("EXT_SUFFIX")
# work-around
if sys.version_info < (3, 10) and sys.platform == "Windows":
import imp

ext_suffix = imp.get_suffixes()[0]

ext_suffix = str(ext_suffix or "")

# python.jam appends the platform-specific final suffix on its own. I can't
Expand Down

0 comments on commit e6557c6

Please sign in to comment.