-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hotfix - Revert non-function changes away from env.X
- Loading branch information
Showing
3 changed files
with
12 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -107,19 +107,21 @@ jobs: | |
git_username: "Casper Welzel Andersen" | ||
git_email: "[email protected]" | ||
changes: | | ||
PYTHON= | ||
python --version || PYTHON=NO | ||
if [ -n "${PYTHON} ]; then | ||
PYTHON="$(python --version || :)" | ||
if [ -z "${PYTHON}" ]; then | ||
echo "Python not detected on the system." | ||
exit 1 | ||
fi | ||
PIP= | ||
python -m pip --version || PIP=NO | ||
if [ -n "${PYTHON} ]; then | ||
echo "pip not detected to be installed for Python." | ||
PIP="$(python -m pip --version || :)" | ||
if [ -z "${PIP}" ]; then | ||
echo "pip not detected to be installed for ${PYTHON}." | ||
exit 1 | ||
fi | ||
echo "Python: ${PYTHON}" | ||
echo "pip: ${PIP}" | ||
python -m pip install -U pip | ||
pip install -U setuptools wheel | ||
pip install pre-commit | ||
|