You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
src/Makefile.am: install Python module in src/swig_python/ for testing
Running the SWIG Python tests requires that Python is able to find the
wallycore native extension. To save users from needing to build it
manually and add its location to `PYTHONPATH` themselves, we add a
target dependency in `src/Makefile.am` to trigger the Python build
before we'll need the native extension for running the SWIG Python
tests. It's unfortunate that we can't merely call `setup.py build` and
then ask setuptools where it stashed its staging copy of the module, as
there seems to be no accessible query interface for that information. So
instead we have to tell `setup.py` to install the module to a location
that we do know, and then we can pass that location in `PYTHONPATH` when
we run the SWIG Python tests.
See: #501 (comment)
0 commit comments