Skip to content

Support wheel.exclude #540

Closed
Closed
@dalcinl

Description

@dalcinl

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions