Skip to content

Commit

Permalink
Merge pull request boostorg#39 from termoshtt/cmake_python3
Browse files Browse the repository at this point in the history
(with minor modification from Jim Bosch)
  • Loading branch information
TallJimbo committed Nov 23, 2014
2 parents 397e53b + b0d351e commit 7b51138
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions libs/numpy/example/wrap.cpp
Expand Up @@ -111,8 +111,11 @@ BOOST_PYTHON_MODULE(example) {
int main(int argc, char **argv)
{
// This line makes our module available to the embedded Python intepreter.
PyImport_AppendInittab("example", &initexample);

# if PY_VERSION_HEX >= 0x03000000
PyImport_AppendInittab("example", &PyInit_example);
# else
PyImport_AppendInittab("example", &initexample);
# endif
// Initialize the Python runtime.
Py_Initialize();

Expand Down

0 comments on commit 7b51138

Please sign in to comment.