Page MenuHomeFreeBSD

*/*: Explicitly pass dist directory for Python wheels
AbandonedPublic

Authored by michaelo on Sat, Aug 15, 5:12 PM.
Tags
None
Referenced Files
F167865868: D58861.diff
Tue, Aug 25, 2:38 AM
F167865843: D58861.diff
Tue, Aug 25, 2:38 AM
F167831795: D58861.diff
Mon, Aug 24, 8:39 PM
Unknown Object (File)
Mon, Aug 24, 4:44 PM
Unknown Object (File)
Sat, Aug 15, 7:54 PM
Unknown Object (File)
Sat, Aug 15, 7:53 PM
Subscribers
None

Details

Reviewers
None
Summary

Mk/Uses/python.mk's PEP517_BUILD_CMD now places wheel output in ${WRKDIR}/whl
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 ${WRKDIR}/whl 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.

Diff Detail

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