indygreg / indygreg/python-zstandard

Unable to build only cext backend with pep517 builders

Open
#284 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
642
Forks
116
Avg merge
1d 14h
Merged PRs (30d)
5

Description

The root issue is the `[build_system]` requires array has cffi as an unconditional build-time dependency. Even if you pass `--config-setting='--global-option=--no-cffi-backend'` to `python -m build` it'll fail the build if cffi isn't present. The setup.py entry point does not enforce this requirement if you disable building the cffi backend.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by inspecting the [build_system] requires array and the setup.py entry point. Reproduce the cext-only build with python -m build and --config-setting='--global-option=--no-cffi-backend' without cffi installed; done means the build succeeds without requiring cffi when that backend is disabled.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, python
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.