-
Python — Programming language.
-
Pip — Python package installer.
-
Pipenv — Python dependency manager.
-
composer.json — Pipenv configuration. Describe Python dependencies and their versions to download and update through the command line.
-
.editorconfig — EditorConfig configuration. Keep consistent code editor settings across the project and its files.
-
Install Python, Pip, and Pipenv to the local machine. Pip is bundled with Python in the latest versions.
- See the Environment section for the recommended approach to setting up the development environment.
-
Navigate to the project's root directory in the command line.
-
Execute
pipenv installto automatically download all required dependencies.
-
Install Homebrew.
-
Execute
brew install python@3.8. -
Execute
sudo pip3 install pipenv.-
Note that a version of Python is included with macOS for compatibility with legacy software. Each installed version is isolated by default and can be accessed separately:
-
pythonpoints to the system's pre-installed Python version. -
python2points to Homebrew's Python version 2.x, if installed. -
python3points to Homebrew's Python version 3.x, if installed.
-
-
The same naming rules apply to other Python-related symlinks, such as
pip3orpython3-config.
-
-
Execute
pipenv shell. -
Execute
python -m msb.
- Execute
pipenv run python -m msb.
MacOS has security measures to prevent scripts from having control over the system. You must open Security & Privacy under System Preferences, and grant Accessibility access to Terminal (or whichever application you will be running the script from).