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

Update Makefile and make.py script #1959

Merged
merged 2 commits into from
Feb 12, 2022
Merged

Update Makefile and make.py script #1959

merged 2 commits into from
Feb 12, 2022

Conversation

carlosperate
Copy link
Member

@carlosperate carlosperate commented Dec 28, 2021

  • Completes make.py docs command
  • Adds more entries to make.py clean from the Makefile.
  • Invokes python modules explicitly via the Python interpreter, i.e. python -m black ... instead of black ...
    • In some situations, like pip installing in a user environment without sudo, the installed packages like black or flake don't have their entry point added to PATH.
    • It's also more robust to make sure it's always calling this Python environment module instead of something else with precedence in the PATH
    • This is also needed for running additional tests in CI: PR CI: Add Arm Raspbian job that installs Mu in system Python. #1960

In some situations, like pip installing in a user environment without
sudo, the installed packages like black or flake don't have their
entry point added to PATH.

Using "python -m black ..." instead ensures the commands can always
be launched.

It's also more robust to make sure it's always calling this Python
environment module instead of something else with precedence in
the PATH
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.

2 participants