This is for Python 2.6.6 on Debian Squeeez. I’m trying to find out if the binaries shipped with debian were configured with the flags of:
--with-threads --enable-shared
as if they were not I will need to compile and install from source myself.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
--with-threads(which is the default) will mean Python supports threading, which will meanimport threadwill work. An easy way to test this is withpython$version -m threading--enable-sharedwill mean Python comes with alibpython$version.sofile, installed in$prefix/lib(alongside thepython$versiondirectory, not inside it.) The easiest thing to do is to look if that file is there — assuming you want to know because you need to use this libpython shared library. If you actually need to know if thepython$versionbinary uses this shared library,lddwill tell you that. I make that distinction because on Debian,/usr/lib/python$version.sowill exist even though/usr/bin/python$versionis statically linked.