-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor poetry example for user installation
- Loading branch information
1 parent
52bcccc
commit d853e81
Showing
6 changed files
with
50 additions
and
42 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/bin/bash | ||
# SPDX-License-Identifier: MIT-0 | ||
|
||
set -euxo pipefail | ||
|
||
case "$OSTYPE" in | ||
darwin*) | ||
# Mac-specific installations | ||
brew install pipx | ||
;; | ||
|
||
linux*) | ||
if [[ "${EUID:-}" -ne 0 ]]; then | ||
echo 'This script must be run as root' >&2 | ||
exit 2 | ||
fi | ||
|
||
# Ubuntu-specific installations | ||
echo 'APT::Acquire::Retries "4";' > /etc/apt/apt.conf.d/80-acquire-retries | ||
echo 'APT::Get::Assume-Yes "true";' > /etc/apt/apt.conf.d/90-get-assume-yes | ||
|
||
export DEBIAN_FRONTEND='noninteractive' | ||
|
||
apt-get update | ||
apt-get install --no-install-recommends pipx python3 | ||
;; | ||
esac | ||
|
||
pipx install poetry | ||
pipx ensurepath |
This file was deleted.
Oops, something went wrong.
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