Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

meson and ninja install locations #228

Open
outhud opened this issue Aug 24, 2024 · 0 comments
Open

meson and ninja install locations #228

outhud opened this issue Aug 24, 2024 · 0 comments

Comments

@outhud
Copy link

outhud commented Aug 24, 2024

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

No branches or pull requests

1 participant