Page MenuHomeFreeBSD

*/*: Explicitly pass dist directory for Python wheels
Needs ReviewPublic

Authored by michaelo on Sat, Aug 15, 5:12 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Aug 15, 7:54 PM
Unknown Object (File)
Sat, Aug 15, 7:53 PM
Subscribers
None
This revision needs review, but there are no reviewers specified.

Details

Reviewers
None
Summary

Mk/Uses/python.mk's PEP517_BUILD_CMD now places wheel output in
${PEP517_BUILD_DISTDIR} (default ${WRKDIR}/whl; see <commit>) rather than
the build backend's default dist directory, which varies by backend (e.g.
${WRKSRC}/dist for build/setuptools). Ports that override PEP517_BUILD_CMD
or PEP517_INSTALL_CMD directly, or invoke a build tool on their own (e.g.
maturin), bypassing the new default, must follow suit: build commands
(python -m build, python -m flit_core.wheel, maturin build, ...) now pass
${PEP517_BUILD_DISTDIR} as their dist directory (--outdir, -o, ...) instead
of their previous, backend-specific default, and install commands that glob
for the built wheel look there too.

PR: 290653

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 75612
Build 72495: arc lint + arc unit