This python script works to install homebrew, pyenv, pyenv-virtualenv, direnv, pythonrc, and update user's bash_profile.
- Installs Homebrew, pyenv, Pyenv-virtualenv, direnv
- This sets up your python dev environments
- Creates pythonrc.py file (simlinked to automatically receive
updates when github repo pulled)
- Python history, tab completion, pretty printing, and color
- Updates .bash_profile with necessary hooks (Bash history, tab completion, python environment)
- git
- Github
- This runs using the users pre-installed python 2
- Old bash profile will be copied and saved to $HOME/.bash_profile and then will be replaced by bash_profile_template.txt
- Clone this repo into your home directory
- Run the setup script
cd /path_to/DevelopmentSetup
python comp_dev_setup_Py2.py (for mac)- Enjoy :)
pyenv virtualenv <python_version> <environment_name>If you don't have python versions installed spesifically for pyenv you can run
pyenv install -lto view the versions available and then
pyenv install <version> to install the version of your choosing
pyenv activate <environment_name> pyenv deactivate cd <directory_to_link_to_env>
pyenv local <environment_name>- If not, run this command and will all be ok (hopefully)
sed '1 s/$/_HiStOrY_V2_/' $HOME/.pyhistory- For more info on this fix: https://stackoverflow.com/questions/17824898/why-does-readline-read-history-file-give-me-ioerror-errno-2-no-such-file-or
- Is it just not running?
- Did you clone the repo into your $HOME directory? If not sure, check (command below displays home directory)
echo $HOME- What branch did you grab? Was it 'master' ?
git branchIf the branch denoted by the asterisk is not master
git checkout masterEnvironment Pages/Repos within script:
- Homebrew: https://brew.sh/
- Pyenv: https://github.com/pyenv/pyenv
- Pyenv-virtualenv: https://github.com/pyenv/pyenv-virtualenv
- direnv: https://github.com/direnv/direnv
testing
