|
|
| 15 |
import Utils |
15 |
import Utils |
| 16 |
|
16 |
|
| 17 |
## https://launchpad.net/pybindgen/ |
17 |
## https://launchpad.net/pybindgen/ |
| 18 |
REQUIRED_PYBINDGEN_VERSION = (0, 10, 0, 626) |
18 |
REQUIRED_PYBINDGEN_VERSION = (0, 10, 0, 630) |
| 19 |
REQUIRED_PYGCCXML_VERSION = (0, 9, 5) |
19 |
REQUIRED_PYGCCXML_VERSION = (0, 9, 5) |
| 20 |
|
20 |
|
| 21 |
|
21 |
|
|
|
| 69 |
except Configure.ConfigurationError, ex: |
69 |
except Configure.ConfigurationError, ex: |
| 70 |
conf.report_optional_feature("python", "Python Bindings", False, str(ex)) |
70 |
conf.report_optional_feature("python", "Python Bindings", False, str(ex)) |
| 71 |
return |
71 |
return |
|
|
72 |
|
| 73 |
# -fvisibility=hidden optimization |
| 74 |
if conf.env['CXX_NAME'] == 'gcc' and conf.env['CC_VERSION'] >= (4,0,0): |
| 75 |
conf.env.append_value('CXXFLAGS_PYEXT', '-fvisibility=hidden') |
| 76 |
if conf.env['CC_NAME'] == 'gcc' and conf.env['CC_VERSION'] >= (4,0,0): |
| 77 |
conf.env.append_value('CCFLAGS_PYEXT', '-fvisibility=hidden') |
| 72 |
|
78 |
|
| 73 |
# Check for the location of pybindgen |
79 |
# Check for the location of pybindgen |
| 74 |
if Options.options.with_pybindgen is not None: |
80 |
if Options.options.with_pybindgen is not None: |