Ensure that the build_ext task is called to generate SWIG .py files
before the Python copy step happens and we miss packaging and
installing the generated files.
Wrap the install command for use with pip. This is a bit of a
hack because setuptools looks at the stack frame to determine if it
was called from the setup function, and wrapping it would break that
behavior.
Wrap the bdist_egg command for use with easy_install.
Coverage remained the same at 18.295% when pulling 41ca7d1eecf7ece5775cafe2289d09a00ccc34bb on ccpost:fix/pip-install into f793225af16f675c8ff46397a5a5b3cea67406c4 on LudovicRousseau:master.
build_ext
task is called to generate SWIG .py files before the Python copy step happens and we miss packaging and installing the generated files.install
command for use withpip
. This is a bit of a hack because setuptools looks at the stack frame to determine if it was called from the setup function, and wrapping it would break that behavior.bdist_egg
command for use witheasy_install
.Bear in mind that I'm no setuptools / distutils expert. This is the combined result of a bunch of Googling and some source diving into setuptools / distutils. Interesting references about this problem include: http://stackoverflow.com/questions/10559589/adding-output-file-to-python-extension http://stackoverflow.com/questions/29477298/setup-py-run-build-ext-before-anything-else http://bugs.python.org/issue7562 http://stackoverflow.com/questions/12491328/python-distutils-not-include-the-swig-generated-module http://stackoverflow.com/questions/17666018/using-distutils-where-swig-interface-file-is-in-src-folder/26556654#26556654