Skip to content

Wheels for mixed Python/Rust project does not include Python source code #885

Open
@padix-key

Description

@padix-key

Bug Description

Hi, I have a project (https://github.com/biotite-dev/fastpdb) built with maturin that uses mixed Rust/Python code.
However, the wheels built from this project do only include the .so file, the Python source file is not included.
This problem does not appear, when the package is installed from source distribution, via PEP 517 or via maturin develop.
This problem appears with maturin 0.12.14. A few months ago (2021-11-12) (I assume I used the newest version of maturin at this point) this issue did not occur.

Your Python version (python -V)

Python 3.9.9

Your pip version (pip -V)

21.3.1

What bindings you're using

No response

Does cargo build work?

  • Yes, it works

If on windows, have you checked that you aren't accidentally using unix path (those with the forward slash /)?

  • Yes

Steps to Reproduce

  1. maturin build --release -i python -o dist
  2. pip install dist/fastpdb-1.0.1-cp39-cp39-manylinux_2_24_x86_64.whl

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingupstreamUpstream issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions