Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to check if Python3 was built with '--enable-shared'?

Environment:

  • Mac OS X 10.8.5
  • Apache 2.2.26
  • Homebrew Python 3.3.3

Problem:

I am trying to install mod_wsgi but first need to determine if Python was configured and compiled with the '--enable-shared' option.

Questions:

  1. How can I determine if Homebrew installed Python with the '--enable-shared' option?
  2. If it was not installed, what is the correct way to install it?

Thank you!

like image 301
fire_water Avatar asked Apr 21 '14 16:04

fire_water


1 Answers

From the python repl:

import sysconfig
sysconfig.get_config_vars('Py_ENABLE_SHARED')
like image 161
Ian Laird Avatar answered Oct 01 '22 17:10

Ian Laird