Description
Right now, wheels use sdist.{include|exclude}
to decide on file inclusion. The problem with this approach is that sdist must include non Python sources (C/C++/Fortran/Cython/SWIG), but these files should typically not go into the wheel. Therefore, the need of wheel.exclude
is rather obvious. I'm not so sure about the wheel.include
, I can only think for files generated during the build that are not explicitly installed in CMakeLists.txt
. I guess supporting wheel.include
would not harm that much, even if the use case is not totally clear just yet.
If there is support for this proposal, I can contribute the implementation in an upcoming PR. I'm not sure right now what's the proper way of using settings.sdist.{include|exclude}
as a fallback if settings.wheel.{include|exclude}
is not specified, I guess we somehow need such an approach for backward compatibility reasons.