Skip to content
Discussion options

You must be logged in to vote

As it turns out, the .pyd files generated as a result of the cythonization and compilation of the Python source code were not being included because they were listed in .gitignore.

The fact that maturin uses .gitignore to decide which files to include during the build is only briefly mentioned in the documentation here (v1.12.6).

In a mixed Rust/Python project, additional files in the Python source dir (but not in .gitignore) will be automatically included in the build outputs (source distribution and/or wheel).

In my original pure Python project the .pyd files are added to .gitignore. However, setuptools still manages to include them when building the wheel. I found maturin’s behavior …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by iikaro
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant