Is there a way to determine if python has been configured and compiled using "--with-threads --enable-shared"?

This is for Python 2.6.6 on Debian Squeeez. I am trying to find out if the binaries sent with debian were configured with flags:

--with-threads --enable-shared

as if this is not the case, I will need to compile and install it myself from the source code.

+5
source share
1 answer

--with-threads(which by default) will mean that Python supports threads, which will mean that it import threadwill work. An easy way to check this withpython$version -m threading

--enable-shared , Python libpython$version.so, $prefix/lib ( python$version, ). - , - , , libpython. , python$version , ldd . , Debian /usr/lib/python$version.so , /usr/bin/python$version .

+11

All Articles