[contrib/python/yt] PY23 support.
@@ -3378,6 +3378,25 @@ multimodule PY23_LIBRARY {
}
}
+multimodule PY23_CPP_LIBRARY {
+ module PY2: LIBRARY {
+ .RESTRICTED=PY_SRCS PY3_SRCS USE_PYTHON USE_PYTHON3
+ OBJ_SUF=.py2
+# PYTHON_ADDINCL()
+ }
+ module PY3: LIBRARY {
+ .ALIASES=PY_REGISTER=PY3_REGISTER PYTHON_ADDINCL=PYTHON3_ADDINCL
+ .RESTRICTED=PY_SRCS PY3_SRCS USE_PYTHON USE_PYTHON3
+# PYTHON3_ADDINCL()
+ when ($MSVC == "yes" || $CYGWIN == "yes") {
+ MODULE_PREFIX=py3c
+ }
+ otherwise {
+ MODULE_PREFIX=libpy3c
+ }
+ OBJ_SUF=.py3
+ }
+}
STORYBOARD_FLAGS=--errors --warnings --notices --auto-activate-custom-fonts --output-format human-readable-text
macro _SRC("storyboard", SRC, SRCFLAGS...) {
