Skip to content

Commit

Permalink
fixup setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
arvidn committed Dec 21, 2020
1 parent 574ac29 commit e184e86
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bindings/python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,10 @@ def write_b2_python_config(target, config):
# necessary everywhere else, or else b2 will just build "libtorrent.so".
# python.jam appends SHLIB_SUFFIX on its own.
target = target.name.split("libtorrent")[1]
suffix = sysconfig.get_config_var("SHLIB_SUFFIX")
if os.name == "nt":
suffix = sysconfig.get_config_var("EXT_SUFFIX")
else:
suffix = sysconfig.get_config_var("SHLIB_SUFFIX")
if suffix != None and target.endswith(suffix):
target = target[:-len(suffix)]

Expand Down

0 comments on commit e184e86

Please sign in to comment.