Skip to content

fix: set build-backend in pyproject.toml#1455

Merged
jdavid merged 1 commit intolibgit2:masterfrom
Jah-yee:master
Mar 19, 2026
Merged

fix: set build-backend in pyproject.toml#1455
jdavid merged 1 commit intolibgit2:masterfrom
Jah-yee:master

Conversation

@Jah-yee
Copy link

@Jah-yee Jah-yee commented Mar 19, 2026

Summary

Remove wheel from build requirements and add proper build-backend = "setuptools.build_meta" per PEP 517.

Problem

Issue #1452 points out that the current pyproject.toml is missing the build-backend setting. Without it, pip uses legacy build behavior which causes issues.

Fix

  • Remove wheel from [build-system].requires (it's no longer needed as it's now part of setuptools)
  • Add build-backend = "setuptools.build_meta" to enable proper PEP 517 build isolation

Testing

This is a configuration-only change. The fix follows PEP 517 and setuptools documentation.

Closes #1452

Remove wheel from build requirements and add proper
build-backend per PEP 517. This fixes the issue where
pip install would not use build isolation properly.

Fixes libgit2#1452
@jdavid jdavid merged commit 6b027da into libgit2:master Mar 19, 2026
14 checks passed
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.

[packaging][good first issue] Set build backend in pyproject.toml

2 participants