Skip to content

Specifying destdir as empty string leads to no scripts installed #136

Open
@dvzrv

Description

@dvzrv

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/"

Metadata

Metadata

Assignees

No one assigned

    Labels

    component: destinationsRelated to WheelDestination and friendstype: bugA confirmed bug or unintended behavior

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions