Skip to content

[bug] Github workflow failing to build python bindings #159

Closed
@drobnyjt

Description

@drobnyjt

Description
Two compile checks have failed in a row on the step where the Python bindings are built and run. The issue is straightforward - the new Rust version introduced the 2021 edition. A sub-dependency of RustBCA (RustBCA depends on geo which depends on geo-types which depends on rstar which depends on pqdselect) wants to build with the 2021 edition. If the Rust compiler that Python is aware of is too old, 2021 edition is an unstable feature that cannot be built. This can happen if a different compiler is on sudo than is on the regular user if the user uses sudo to run setup.py install.

To Reproduce
See the following GitHub actions reports:
https://github.com/lcpp-org/RustBCA/actions/runs/1464722977
https://github.com/lcpp-org/RustBCA/actions/runs/1469449058

Expected behavior
Setup.py should be effortless.

Additional context
I think the main fix will be updating 1) the github workflow 2) the documentation that suggests using sudo to run setup.py. Further investigation might be required, but I have managed to build on my machine by avoiding sudo and instead building to a local directory. Fundamentally this is a combination of a permissions issue and an environment issue.

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