Skip to content

Fails to install on Termux  #4436

@edshamis

Description

@edshamis

There's a dedicated ruff package for Termux, but ruff-lsp and python-lsp-ruff fail to install for the same reason

❯ pip install --upgrade ruff
Collecting ruff
  Using cached ruff-0.0.267.tar.gz (1.1 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Preparing metadata (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [22 lines of output]
      error: failed to get `ruff` as a dependency of package `ruff_cli v0.0.267 (/data/data/com.termux/files/usr/tmp/pip-install-og631z7k/ruff_b22440ecd7e94053a309acbac4637fe9/crates/ruff_cli)`

      Caused by:
        failed to load source for dependency `ruff`

      Caused by:
        Unable to update /data/data/com.termux/files/usr/tmp/pip-install-og631z7k/ruff_b22440ecd7e94053a309acbac4637fe9/local_dependencies/ruff

      Caused by:
        failed to parse manifest at `/data/data/com.termux/files/usr/tmp/pip-install-og631z7k/ruff_b22440ecd7e94053a309acbac4637fe9/local_dependencies/ruff/Cargo.toml`

      Caused by:
        error inheriting `colored` from workspace root manifest's `workspace.dependencies.colored`

      Caused by:
        failed to find a workspace root
      💥 maturin failed
        Caused by: Cargo metadata failed. Does your c
rate compile with `cargo build`?
        Caused by: `cargo metadata` exited with an error:
      Error running maturin: Command '['maturin', 'pep517', 'write-dist-info', '--metadata-directory', '/data/data/com.termux/files/usr/tmp/pip-modern-metadata-9wm3nkcx', '--interpreter', '/data/data/com.termux/files/usr/bin/python3']' returned non-zero exit status 1.
      Checking for Rust toolchain....
      Running `maturin pep517 write-dist-info --metadata-directory /data/data/com.termux/files/usr/tmp/pip-modern-metadata-9wm3nkcx --interpreter /data/data/com.termux/files/usr/bin/python3`
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingreleaseRelated to the release process

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions