Skip to content

meson and ninja install locations #228

Open
@outhud

Description

@outhud

From this section of the script, where it installs meson and ninja with pip3 on linux, I find that they get installed to ~/.local/bin/ and not the path specified below, so later parts of the script don't find meson and ninja.

      #check if meson and ninja are installed MESON_INSTALLED AND system is not MacOS
      if ! $MESON_INSTALLED; then

        # meson and ninja can be installed via pip3
        execute pip3 install pip setuptools --quiet --upgrade --no-cache-dir --disable-pip-version-check
        for r in meson ninja; do
          if ! command_exists ${r}; then
            execute pip3 install ${r} --quiet --upgrade --no-cache-dir --disable-pip-version-check
          fi
          export PATH=$PATH:~/Library/Python/3.9/bin
        done
      fi
    fi

I think the script could be updated on that line to also add ~/.local/bin/ to path.

I tested this on a minimal debian bullseye image, the existing PATH was just:

echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions