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:

PlatformPythonPy_ENABLE_SHARED
Fedora *2.71
Fedora *3.61
Ubuntu 16.043.51
Ubuntu 16.042.71
Ubuntu 14.042.71
Ubuntu 12.042.70
alpine 3.72.71





















Windows2.7None