Skip to content

[Bug] hatch backend does not work in 2.x #191

@barracuda156

Description

@barracuda156

What happened?

Looks like 2.x is broken with hatch and tries to pull in uv. This is undesirable, since uv requires rust, which is broken on some platforms and may be unwanted otherwise by a user.
It will be nice to have a pure-python backend working again.

Version

2.0.1

OS and architecture

macOS 14.7.1

Terminal Output or Logs

--->  Extracting torrra-2.0.1.tar.gz
Executing:  cd "/opt/local/var/macports/build/torrra-1b083c9e/work" && /usr/bin/gzip -dc '/opt/local/var/macports/distfiles/torrra/torrra-2.0.1.tar.gz' | /usr/bin/tar -xf - 
--->  Configuring torrra
--->  Building torrra
Executing:  cd "/opt/local/var/macports/build/torrra-1b083c9e/work/torrra-2.0.1" && /opt/local/Library/Frameworks/Python.framework/Versions/3.13/bin/python3.13 -m build --no-isolation --wheel --outdir /opt/local/var/macports/build/torrra-1b083c9e/work 
* Getting build dependencies for wheel...

Traceback (most recent call last):
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages/pyproject_hooks/_impl.py", line 402, in _call_hook
    raise BackendUnavailable(
    ...<4 lines>...
    )
pyproject_hooks._impl.BackendUnavailable: Cannot import 'uv_build'

ERROR Backend 'uv_build' is not available.
Command failed:  cd "/opt/local/var/macports/build/torrra-1b083c9e/work/torrra-2.0.1" && /opt/local/Library/Frameworks/Python.framework/Versions/3.13/bin/python3.13 -m build --no-isolation --wheel --outdir /opt/local/var/macports/build/torrra-1b083c9e/work 
Exit code: 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions