mirror of
https://github.com/boostorg/python.git
synced 2026-02-02 21:12:15 +00:00
Handle BOOST_LIB_NAME for NumPy on Python 2/3
This was reusing the Python 2 name on Python 3, which is incorrect since the Python 3 library for Boost.NumPy has a `3` in it. Hence this checks against the Python version and defines this correctly.
This commit is contained in:
committed by
Stefan Seefeld
parent
90829714cc
commit
d6554d6c65
@@ -62,7 +62,11 @@
|
||||
// Set the name of our library, this will get undef'ed by auto_link.hpp
|
||||
// once it's done with it:
|
||||
//
|
||||
#define BOOST_LIB_NAME boost_numpy
|
||||
#if PY_MAJOR_VERSION == 2
|
||||
# define BOOST_LIB_NAME boost_numpy
|
||||
#elif PY_MAJOR_VERSION == 3
|
||||
# define BOOST_LIB_NAME boost_numpy3
|
||||
#endif
|
||||
//
|
||||
// If we're importing code from a dll, then tell auto_link.hpp about it:
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user