Skip to content

sdist command failing for incompatible features #2673

@martinjrobins

Description

@martinjrobins

Bug Description

Thanks for all your work on this excellent crate. I have a dependency (https://github.com/TheDan64/inkwell) that uses multiple incompatible features to select the local version of llvm installed. When I run maturin sdist the command turns on all features (

all_features: true,
), which in my case fails since my crate then depends on inkwell multiple times with different names.

I'm not sure if this is a bug or not, but do you expect maturin sdist to work for a project with multiple incompatible features?

Your maturin version (maturin --version)

1.8.7

Your Python version (python -V)

3.10.12

Your pip version (pip -V)

22.0.2

What bindings you're using

pyo3

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. clone -b ci https://github.com/pybop-team/pybop-diffsol
  2. cd pybop-diffsol
  3. maturin sdist

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions