Py_ENABLE_SHARED
a build configuration variable, set when the python interpreter is compiled.
is usually true, but on some systems is false. This sometimes causes problems, see https://github.com/ariovistus/pyd/issues/43
To check whether it was set for a python build, run
import sysconfig print (sysconfig.get_config_var("Py_ENABLE_SHARED"))
By Default:
Platform | Python | Py_ENABLE_SHARED |
---|---|---|
Fedora * | 2.7 | 1 |
Fedora * | 3.6 | 1 |
Ubuntu 16.04 | 3.5 | 1 |
Ubuntu 16.04 | 2.7 | 1 |
Ubuntu 14.04 | 2.7 | 1 |
Ubuntu 12.04 | 2.7 | 0 |
alpine 3.7 | 2.7 | 1 |
Windows | 2.7 | None |