Skip to content

python: support DESTDIR in pip install step#863

Open
aberaud wants to merge 1 commit into
masterfrom
python_destdir
Open

python: support DESTDIR in pip install step#863
aberaud wants to merge 1 commit into
masterfrom
python_destdir

Conversation

@aberaud

@aberaud aberaud commented May 25, 2026

Copy link
Copy Markdown
Member

Use --root $DESTDIR when the environment variable is set so that staged installs (e.g. 'make DESTDIR=/tmp/pkg install') place the Python package under the staging root.

Also pass --no-build-isolation and --prefix to avoid rebuilding in an isolated venv and to honour CMAKE_INSTALL_PREFIX.

Use --root $DESTDIR when the environment variable is set so that
staged installs (e.g. 'make DESTDIR=/tmp/pkg install') place the
Python package under the staging root.

Also pass --no-build-isolation and --prefix to avoid rebuilding in an
isolated venv and to honour CMAKE_INSTALL_PREFIX.
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