Open
Description
Hi! Recently I have been experimenting a bit with build and installer in the context of CI pipelines.
I noticed that if python -m installer --destdir="" <wheel>
at least scripts (but maybe also the rest of the wheel contents) are not installed to /
but likely somewhere else.
From a user perspective I would assume that providing empty string would behave the same way as not providing --destdir
at all (in which case files are properly installed to the root filesystem).
When looking at e.g. how this is handled in a Makefile which allows overriding of the destination using the DESTDIR
environment variable we can observe that the following code snippet follows my above assumption:
PREFIX ?= /usr/local
install:
install -vDm 644 some/file -t "$(DESTDIR)/$(PREFIX)/share/foo/"