how do i know i built python --with-threads

Neal Norwitz neal at
Tue Sep 3 22:27:47 EDT 2002

On Tue, 03 Sep 2002 20:22:09 -0400, Mark McEahern wrote:

> Suppose somebody else installed python on my system--e.g., my evil
> twin--and I wanted to determine whether the python was built like so:
>   ./configure --with-threads --without-pymalloc
> How would I do it?

For threads, you can probably do:

  >>> import sys
  >>> print 'thread' in sys.builtin_module_names

pymalloc is off by default.  The only way I can think of is to do
an nm on the executable and see if there are any pymalloc symbols:

	nm python | grep -i arenabase


More information about the Python-list mailing list