Unhelling Python Environment: Bash script to easy setup
Jenga is a Swahili word for build
. jenga.sh
automate the steps needed to setup python with pyenv
. Let's reduce the potential for human error and get your system unhelled faster than ever before.
Help Menu:
curl -L https://raw.githubusercontent.com/Proteusiq/jenga/main/jenga.sh | bash -s _ --help
Installing latest Python 3.10 and a Jupyter Lab virtual environment with in changing .bashrc
curl -L https://raw.githubusercontent.com/Proteusiq/jenga/main/jenga.sh | bash -s _ --python=3.10 --runcommands=bashrc --jupyter
Download jenga.sh
from the repository. Ensure that you understand what the script is doing before running it.
Make jenga.sh
executable
chmod +x jenga.sh
Getting help
./jenga.sh --help # get help
Install pyenv with latest python 3.10
with .bashrc
as run commands file
./jenga.sh --python=3.10 --runcommands=bashrc
For data scients, jupyter lab can be added with --jupyter
e.g. use latest python 3.9
, with .zshrc
as run commands and install jupyter lab
./jenga.sh --python=3.9 --runcommands=zshrc --jupyter
gnu-getopt is required and --runcommands=bash_profile
(I think)
brew install gnu-getopt && brew link --force gnu-getopt
Windows users need WSL
- Download and Install Ubuntu from the Microsoft Store.
- Execute code below as Admin & Restart PC (
shutdown /R /T 0
).
# Run powershell as Admin
wsl --install
- Create uninstall script
- Add Poetry installation similar to Jupiter's
- Write examples
- Start project flow
jenga.sh new <ProjectName>
The bash script templete adopts command line named parameter bash - Karthik Bhat K