//
// Install pypy:
//
//   conda create -n pypy pypy python=3.7 boost
//   conda activate pypy
//
// Compile this file for pypy on Mac:
//
//   clang++ -o hello.pypy37-pp73-darwin.so -L ${CONDA_PREFIX}/lib -Wl,-rpath,${CONDA_PREFIX}/lib -shared -lboost_python37 -undefined dynamic_lookup -I${CONDA_PREFIX}/include hello.cpp
//
// Test it:
//
//   python -c 'import hello; print(hello.greet())'
//
#include <boost/python.hpp>

char const* greet()
{
   return "hello, world";
}

BOOST_PYTHON_MODULE(hello)
{
    using namespace boost::python;
    def("greet", greet);
}
