pybind / pybind/pybind11

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

Open
#4,562 4 comments 0 reactions 1 assignee View on GitHub

@henryiii is already working on this.

Since Mar 16, 2023.

build system regression
Dominant language
C++
Stars
18k
Forks
2.3k
Avg merge
5d 17h
Merged PRs (30d)
10

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.