Skip to content

Conversation

@kurtmckee
Copy link
Contributor

Describe the changes

setuptools v45.x doesn't support pyproject.toml files.
v62.1.x and higher do, and continue to support Python 3.7.

Reproducer:

# Create a venv
python -m venv venv-demo
source venv-demo/bin/activate

# Install setuptools and build
python -m pip install setuptools==45.0.0 build

# Build the package using the already-installed setuptools
python -m build --no-isolation

This results in the following error:

ERROR Backend 'setuptools.build_meta' is not available.

Changing the reproducer to use setuptools 61.2.0 demonstrates that the issue is resolved.

Tasks

  • Unit tests added that reproduce the issue or prove feature is working
  • Fix or feature added
  • Entry to release notes added
  • Pre-commit CI shows no errors
  • Unit tests passing
  • For documentation changes: The Read the Docs preview builds and looks as expected

@mrbean-bremen
Copy link
Member

Thanks, this looks sensible, as far as I can see!

I'm traveling right now, will have a closer look / merge next week when I have access to a computer.

setuptools v45.x doesn't support `pyproject.toml` files.
v62.1.x and higher do, and continue to support Python 3.7.

Reproducer:

```
# Create a venv
python -m venv venv-demo
source venv-demo/bin/activate

# Install setuptools and build
python -m pip install setuptools==45.0.0 build

# Build the package using the already-installed setuptools
python -m build --no-isolation
```

This results in the following error:

```
ERROR Backend 'setuptools.build_meta' is not available.
```

Changing the reproducer to use setuptools 61.2.0
demonstrates that the issue is resolved.
Copy link
Member

@mrbean-bremen mrbean-bremen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@mrbean-bremen mrbean-bremen merged commit 613a33b into pytest-dev:main Aug 27, 2025
121 checks passed
@kurtmckee kurtmckee deleted the fix-build branch August 27, 2025 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants