Skip to content

Instantly share code, notes, and snippets.

@mzpqnxow
Created April 13, 2021 13:23
Show Gist options
  • Save mzpqnxow/ba75a188bbaf29cf9a38f7adc40f9e67 to your computer and use it in GitHub Desktop.
Save mzpqnxow/ba75a188bbaf29cf9a38f7adc40f9e67 to your computer and use it in GitHub Desktop.
Print the the variables associated with a Python build (configure params/autoconf params, basically)
# Call with /path/to/python python-config.py to check a specific version of Python, obviously
import sysconfig
for k, v in sysconfig.get_config_vars().items():
print('%s = %s' % (k, v))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment