Skip to content

Commit

Permalink
build: include gil/nogil in the version banner
Browse files Browse the repository at this point in the history
  • Loading branch information
nedbat committed Aug 3, 2024
1 parent da1682f commit 2b53664
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions igor.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,9 @@ def print_banner(label):
if rev:
version += f" (rev {rev})"

gil = "gil" if getattr(sys, '_is_gil_enabled', lambda: True)() else "nogil"
version += f" ({gil})"

try:
which_python = os.path.relpath(sys.executable)
except ValueError:
Expand Down

0 comments on commit 2b53664

Please sign in to comment.