[BUG]: pyd file is created without suffix and along new dlls
@henryiii is already working on this.
Since Mar 16, 2023.
- Dominant language
- C++
- Stars
- 18k
- Forks
- 2.3k
- Avg merge
- 5d 17h
- Merged PRs (30d)
- 10
Description
Required prerequisites
- Make sure you've read the documentation. Your issue may be addressed there.
- Search the issue tracker and Discussions to verify that this hasn't already been reported. +1 or comment there if it has.
- Consider asking first in the Gitter chat room or in a Discussion.
What version (or hash if on master) of pybind11 are you using?
2.10.3
Problem description
When building my module, I expect the output to be a PYD file such as pybind11_example.cp310-win_amd64.pyd.
Instead, the output I get is pybind11_example (without an extension name) along with additional files python310.dll and zlib1.dll. Manually adding the extension name and (optionally) deleting the additional .dll appear to give a functioning output, but I believe this is not the intended behavior.
This was not the case in version 2.9.1, where the behavior is as expected.
I believe I saw a report of a problem like this one earlier, but can't seem to find it anymore, so I apologize if I'm duplicating a post.
I have a large project and am trying to turn it into a minimum reproducible example, but here it goes, using Python3.10 and pybind11 installed via vcpkg. The structure is inspired from this blog article https://www.benjack.io/hybrid-python/c-packages-revisited/.
Reproducible example code
No response
Is this a regression? Put the last known working version here if it is.
2.9.1
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.