Skip to content

Symlink in Python source breaks maturin pep517 build-wheel #276

Description

@gadomski

Discovered while working conda-forge/staged-recipes#32441. Demonstration:

$ curl https://github.com/developmentseed/async-tiff/archive/refs/tags/py-v0.7.0.tar.gz -O -L
$ tar xvzf py-v0.7.0.tar.gz
$ cd async-tiff-py-v0.7.0/python
$ maturin pep517 build-wheel --compatibility off

You should end up with:

    Finished `release` profile [optimized] target(s) in 1m 10s
💥 maturin failed
  Caused by: Failed to add the files to the wheel
  Caused by: Failed to add the python module to the package
  Caused by: No such file or directory (os error 2)

UPDATE: I have the same setup in rustac (with the symlink), but my source on PyPI contains the files from the symlink (e.g. https://pypi.org/project/rustac/#rustac-0.9.8.tar.gz). So the downstream issue could be resolved by #272 and then using that on conda-forge.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions