Skip to content

Commit

Permalink
try detect abi
Browse files Browse the repository at this point in the history
  • Loading branch information
NIC-MichalLabedzki committed Jun 11, 2020
1 parent 52c0918 commit 547ae11
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions nf.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,17 @@ def log(*arg):
except Exception as e:
log('cannot detect wsl: ', e)
log('is_wsl {}'.format(is_wsl))

import sysconfig
abi = sysconfig.get_config_var('SOABI')
if abi is None:
abi = '{}-{}'.format(sysconfig.get_python_version(), sysconfig.get_platform())
if sys.version_info.major >= 3 and sys.version_info.minor >= 2:
abi = 'abi_{}-{}'.format(sys.abiflags, abi)
if sys.version_info.major >= 3 and sys.version_info.minor >= 3:
abi = '{}-{}'.format(sys.implementation.name, abi)
log('abi {}'.format(abi))

log('argv {}'.format(sys.argv))
log('args {}'.format(args))

Expand Down

0 comments on commit 547ae11

Please sign in to comment.