Skip to content

Fix python3-setuptools: remove introduced wheel subpackage#1641

Open
dcasota wants to merge 2 commits intovmware:5.0from
dcasota:patch-2
Open

Fix python3-setuptools: remove introduced wheel subpackage#1641
dcasota wants to merge 2 commits intovmware:5.0from
dcasota:patch-2

Conversation

@dcasota
Copy link
Copy Markdown
Contributor

@dcasota dcasota commented Mar 27, 2026

The root cause is a circular dependency: python3-setuptools needs python3-wheel (via ExtraBuildRequires) to run bdist_wheel, but python3-wheel requires python3-setuptools to build. Since ExtraBuildRequires is not used by the scheduler for build ordering, and the installExtraToolchainRPMS only looks at the local packages repo (which doesn't have python3-wheel yet), the wheel package is not available at build time.

Nothing depends on the python3-setuptools-wheel subpackage, so the fix is to change the build to use %py3_build (standard setup.py build) instead of bdist_wheel, and remove the wheel subpackage.

The fix is applied to SPECS/91/python3-setuptools/python3-setuptools.spec. Here's what was changed:

  1. Removed %define ExtraBuildRequires python3-wheel -- this dependency can't be satisfied during a clean build because python3-wheel itself requires python3-setuptools (circular dependency), and the ExtraBuildRequires mechanism only installs from the local packages repo where wheel hasn't been built yet.

  2. Changed %build from %{python3} setup.py bdist_wheel to %py3_build -- uses the standard setup.py build which doesn't require the wheel package.

  3. Removed the wheel subpackage (%package wheel, %description wheel, %files wheel) and associated install steps -- since we no longer produce a .whl file, and nothing in the build depends on python3-setuptools-wheel.

  4. Removed unused %define macros for python_wheel_dir and python_wheel_name.

dcasota and others added 2 commits March 27, 2026 19:52
The commit a3ced8c introduced wheel subpackage infrastructure and
ExtraBuildRequires with incorrect syntax. PR vmware#1641 only fixed the colon
typo but did not address the root cause. This commit removes the wheel
subpackage, ExtraBuildRequires, and related build/install steps that
should not be part of this spec.

Release bumped to 8.2.

Change-Id: Ic1f1145f36d9007ccb9c19d4d293a60009d2a3e7
Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
@dcasota dcasota changed the title typo Fix python3-setuptools: remove introduced wheel subpackage Mar 28, 2026
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.

1 participant