Skip to content

Commit

Permalink
setup.py - handle OSX platform
Browse files Browse the repository at this point in the history
  • Loading branch information
biocodz authored Feb 28, 2024
1 parent 31541a4 commit 29d2760
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,13 @@
IS_WIN = 'Windows' in pf
IS_WSL = 'Linux' in pf and 'Microsoft' in pf # Windows Subsystem for Linux (WSL)
IS_LNX = 'Linux' in pf and not 'Microsoft' in pf
MY_OS = 'WIN' if IS_WIN else 'LIN' if IS_LNX else 'WSL' if IS_WSL else None
IS_OSX = 'macOS' in pf
MY_OS = 'WIN' if IS_WIN else 'LIN' if IS_LNX else 'WSL' if IS_WSL else 'OSX' if IS_OSX else None
if not MY_OS:
print(f'Unexpected platform: {pf}')
print(f'[{__name__}] Unexpected platform: {pf}')
sys.exit(1)
else:
print(f'[{__name__}] running on: {pf}, id: {MY_OS}')

modfunc = {} # holds refs to functions in this module

Expand Down

0 comments on commit 29d2760

Please sign in to comment.