Proteusiq / jenga

Unhelling Python Environment: Bash script to for easy setup

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

jenga

Unhelling Python Environment: Bash script to easy setup pythonhell

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.

Usage

image

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

More Safe Examples

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

Why?

XKCD


Issues: MacOS and Windows

MacOS

gnu-getopt is required and --runcommands=bash_profile (I think)

brew install gnu-getopt && brew link --force gnu-getopt

Windows

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

Roadmap

  • Create uninstall script
  • Add Poetry installation similar to Jupiter's
  • Write examples
  • Start project flow jenga.sh new <ProjectName>

Credit

The bash script templete adopts command line named parameter bash - Karthik Bhat K

About

Unhelling Python Environment: Bash script to for easy setup

License:MIT License


Languages

Language:Shell 100.0%