Skip to content

Commit 2bc3c58

Browse files
authored
merge dev changes into main (#2)
* Add README * Added ANSI escape codes to show status for INFO etc... * Rename install-python-buildenv.sh to install-python-buildenv-linux.sh * Update script to use brew-specific package names. * Commit macos version
1 parent 014556f commit 2bc3c58

File tree

4 files changed

+29
-13
lines changed

4 files changed

+29
-13
lines changed

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@ A simple `bash` script to install the `pyenv-buildtools` required for `pyenv` se
33
### Usage:
44
***
55
#### Clone the repo:
6-
- git clone https://github.com/defirence/pyenv-buildtools-script.git
6+
- `git clone https://github.com/defirence/pyenv-buildtools-script.git`
77
#### Set the script to be executable.
8-
- chmod +x ./install-python-buildenv.sh
8+
- `chmod +x ./install-python-buildenv.sh`
99
#### Run the script:
10-
- ./install-python-buildenv.sh
11-
***
10+
- `./install-python-buildenv.sh`

install-python-buildenv-linux.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/usr/bin/env/zsh #!/usr/bin/env/bash #!/usr/bin/env/sh
2+
printf "\e[1;36m[INIT]\e[0m Installing python-buildenv tools for pyenv... \n "
3+
printf "\e[1;32m[TASK - brew]\e[0m Updating packages using brew update... \n "
4+
brew update
5+
printf "\e[1;32m[INFO - xcode]\e[0m Installing Apple xcode CLI tools... \n "
6+
xcode-select --install
7+
printf "\e[1;33m[TASK - brew]\e[0m brew update complete, installing required packages... \n "
8+
printf "If brew is not installed, please install it now: \n "
9+
printf "https://brew.sh/installation \n "
10+
printf "Installing make wget curl llvm openssl@1.1 openssl@3 zlib bzip2 libreadline-java sqlite3 ncurses xz python-tk@3.9 tcl-tk libxml2 libxmlsec1 \n "
11+
brew install make wget curl llvm openssl@1.1 openssl@3 zlib bzip2 libreadline-java sqlite3 ncurses xz python-tk@3.9 tcl-tk libxml2 libxmlsec1
12+
printf "\e[1;32m[INFO - brew]\e[0m Installation complete... Exiting. \n "
13+
exit 0

install-python-buildenv.sh

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
1-
#!/usr/bin/env bash
2-
echo -e "\e[1;36m[INIT]\e[0m Installing python-buildenv tools for pyenv..."
3-
echo -e "\e[1;32m[INFO]\e[0m Updating apt packages using apt-get update -y"
4-
sudo apt-get update -y
5-
echo -e "\e[1;33m[TASK]\e[0m apt-get update of package cache complete, installing..."
6-
sudo apt-get install make build-essential libssl-dev zlib1g-dev \
7-
libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm \
8-
libncursesw5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev -y
9-
echo -e "\e[1;32m[INFO]\e[0m Installation complete."
1+
#!/usr/bin/env/zsh #!/usr/bin/env/bash #!/usr/bin/env/sh
2+
printf "\e[1;36m[INIT]\e[0m Installing python-buildenv tools for pyenv... \n "
3+
printf "\e[1;32m[TASK - brew]\e[0m Updating packages using brew update... \n "
4+
brew update
5+
printf "\e[1;32m[INFO - xcode]\e[0m Installing Apple xcode CLI tools... \n "
6+
xcode-select --install
7+
printf "\e[1;33m[TASK - brew]\e[0m brew update complete, installing required packages... \n "
8+
printf "If brew is not installed, please install it now: \n "
9+
printf "https://brew.sh/installation \n "
10+
printf "Installing make wget curl llvm openssl@1.1 openssl@3 zlib bzip2 libreadline-java sqlite3 ncurses xz python-tk@3.9 tcl-tk libxml2 libxmlsec1 \n "
11+
brew install make wget curl llvm openssl@1.1 openssl@3 zlib bzip2 libreadline-java sqlite3 ncurses xz python-tk@3.9 tcl-tk libxml2 libxmlsec1
12+
printf "\e[1;32m[INFO - brew]\e[0m Installation complete... Exiting. \n "
13+
exit 0

test.blank

Whitespace-only changes.

0 commit comments

Comments
 (0)