Closed ccpost closed 8 years ago
How is the test_install
target supposed to be used?
Is it only for tests on your side or should I really add it in the project?
Up to you whether you want to include it or not. I don't imagine anyone would ever want to run it unless they were actively debugging this issue, since it does a real install into whatever Python you have active. I was just rolling up the steps I was initially doing manually to run through the different installation cases automatically.
Should I remove?
yes, please. Remove it.
build_ext
task is called beforebuild_py
to generate SWIG .py files before the Python copy step happens and we miss packaging and installing the generated files.test_install
for testing multiple build and install methods on the active Python installation.This is much cleaner; not sure why it didn't occur to me last night. I think this should work with any install method entry point into setuptools because it's explicitly hooking into
build_py
, which should always be called.The new Makefile target isn't the cleanest thing ever. I just wanted an automated way to test the whole clean installation loop into my local Python install.