Description: Tentative fix for pybind11 2.2 support
Index: psi4-1.1/psi4/src/export_functional.cc
===================================================================
--- psi4-1.1.orig/psi4/src/export_functional.cc
+++ psi4-1.1/psi4/src/export_functional.cc
@@ -109,7 +109,7 @@ void export_functional(py::module &m)
         def("set_meta_cutoff", &Functional::set_meta_cutoff, "docstring").
         def("set_parameter", &Functional::set_parameter, "docstring").
         def("print_out", &Functional::py_print, "docstring").
-        def("print_detail",&SuperFunctional::py_print_detail, "docstring");
+        def("print_detail",&Functional::py_print_detail, "docstring");
 
     py::class_<VBase, std::shared_ptr<VBase> >(m, "VBase", "docstring").
         def_static("build", [](std::shared_ptr<BasisSet> &basis, std::shared_ptr<SuperFunctional> &func, std::string type){
Index: psi4-1.1/psi4/src/core.cc
===================================================================
--- psi4-1.1.orig/psi4/src/core.cc
+++ psi4-1.1/psi4/src/core.cc
@@ -1235,8 +1235,8 @@ void psi4_python_module_finalize()
 }
 
 
-PYBIND11_PLUGIN(core) {
-    py::module core("core", "C++ Innards of Psi4: Open-Source Quantum Chemistry");
+PYBIND11_MODULE(core, core) {
+    core.doc() = "C++ Innards of Psi4: Open-Source Quantum Chemistry";
 //    py::module core("core", R"pbdoc(
 //
 //        Psi4: An Open-Source Ab Initio Electronic Structure Package
@@ -1505,6 +1505,4 @@ PYBIND11_PLUGIN(core) {
 
     //py::class_<Process>(core, "Process").
     //        def_property_readonly_static("environment", [](py::object /*self*/) { return Process::environment; });
-
-    return core.ptr();
 }
Index: psi4-1.1/psi4/src/export_mints.cc
===================================================================
--- psi4-1.1.orig/psi4/src/export_mints.cc
+++ psi4-1.1/psi4/src/export_mints.cc
@@ -820,7 +820,8 @@ void export_mints(py::module& m)
             def(py::init<std::shared_ptr<Vector>, std::shared_ptr<Vector> >()).
             def("set_params", &CorrelationFactor::set_params, "docstring");
 
-    py::class_<FittedSlaterCorrelationFactor, CorrelationFactor>(m, "FittedSlaterCorrelationFactor", "docstring").
+    py::class_<FittedSlaterCorrelationFactor, std::shared_ptr<FittedSlaterCorrelationFactor>, CorrelationFactor>(
+        m, "FittedSlaterCorrelationFactor", "docstring").
             def(py::init<double>()).
             def("exponent", &FittedSlaterCorrelationFactor::exponent);
 
