Closed winstxnhdw closed 3 weeks ago
Hi @winstxnhdw, could you please include a complete minimal reproducer, including the source code for the examples. Please have a look at the advice in https://stackoverflow.com/help/minimal-reproducible-example.
If I had to guess, I would say that is because you are adding a top-lelvel single extension module instead of a package. .pyi
files may be detected inside of packages, but as a coexisting top level file, probably not (that is not how the autodiscovery works). But yeah, we can only confirm this hypothesis or proceed with the investigation once we have a complete minimal reproducer.
Assuming the hypothesis is confirmed, because this is an experimental feature contributed by a member of the community, we have 2 ways we can go about it:
Would you like to give it a go and propose a PR?
Hey @abravalheri,
It's as you said. setuptools
is not detecting the extension module as a package. Simply adding a __init__.py
resolves this issue.
setuptools version
setuptools==75.3.0
Python version
Python 3.13
OS
Arch Linux
Additional environment information
No response
Description
According to the
setuptools
note here,However, I found that my type stubs (.pyi) are not being packaged unless I specify them in my
MANIFEST.in
.Expected behavior
The type stubs should be automatically included in my sdist without having to specify it in
MANIFEST.in
How to Reproduce
.pyi
filesetuptools
required by the build system is>=69.0.0
pip
install the packagesite-packages
folderOutput
N/A