Originally, pysdfgen seems not correctly packaging the source code and CMakeLists.txt when doting python3 setup.py sdist. (I'm not sure why it was working well until recently, but maybe setuptools changes behavior recently ?? .. )
Because of this, although pysdfgen==0.1.6 can be installed via pip, the package does not contain any SDFGen's binary... I noticed this bug when I made a tiny typo-fix PR in scikit-robot and it failed. https://github.com/iory/scikit-robot/pull/254
Description
Originally, pysdfgen seems not correctly packaging the source code and CMakeLists.txt when doting
python3 setup.py sdist
. (I'm not sure why it was working well until recently, but maybesetuptools
changes behavior recently ?? .. ) Because of this, although pysdfgen==0.1.6 can be installed via pip, the package does not contain any SDFGen's binary... I noticed this bug when I made a tiny typo-fix PR in scikit-robot and it failed. https://github.com/iory/scikit-robot/pull/254WHat I changed
But, in any case, to my understanding according to https://python-packaging.readthedocs.io/en/latest/non-code-files.html we should make some change. First we must add
include_package_data=True
in setup.py parameter Second, we must addinclude
keyword in the MANIFEST (or MANIFEST.in) file. (e.g. in MANIFEST.in file in opencv-python https://github.com/opencv/opencv-python/blob/4.x/MANIFEST.in ) Third: rename MANIFEST => MANIFEST.inmy environment
h-ishida@stonep:~/python/pySDFGen/dist$ python3 -m pip --version pip 20.0.2 from /usr/lib/python3/dist-packages/pip (python 3.8)
Before
After