spacepy_testing.add_build_to_path

spacepy_testing.add_build_to_path()[source]

Adds the python build directory to the search path.

Locates the build directory in the same repository as this test module and adds the (version-specific) library directories to the Python module search path, so the unit tests can be run against the built instead of installed version.

Deprecated since version 0.5.0: The new pip-based installation method does not support a separate “build” step, so this function is no longer useful. When developing, either install to a custom location and manually set the path, or use an editable install.