Skip to content

[BUG]: pyd file is created without suffix and along new dlls #4562

Open
@polortiz4

Description

@polortiz4

Required prerequisites

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/.

pybind11_example.zip

Reproducible example code

No response

Is this a regression? Put the last known working version here if it is.

2.9.1

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions