Skip to content

TylerFilko/TF_DevSetup

Repository files navigation

DevelopmentSetup for Mac OS X

This python script works to install homebrew, pyenv, pyenv-virtualenv, direnv, pythonrc, and update user's bash_profile.

Features:

  • 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)

Requirments:

  • git
  • Github

Notes:

  • 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

To Run:

  1. Clone this repo into your home directory
  2. Run the setup script
cd /path_to/DevelopmentSetup
python comp_dev_setup_Py2.py      (for mac)
  1. Enjoy :)

Setting Up Your Python Virtual Environment(s):

Creating Environment:

    pyenv virtualenv <python_version> <environment_name>
Installing Python versions for pyenv:

If you don't have python versions installed spesifically for pyenv you can run

pyenv install -l

to view the versions available and then

pyenv install <version> 

to install the version of your choosing

Activating Virtual Environment:

    pyenv activate <environment_name>

Deactivating Virtual Environment:

    pyenv deactivate

Linking Environment To Directory:

    cd <directory_to_link_to_env>
    pyenv local <environment_name>

Trouble/Problems?

Don't trip Dogg, we got you!

Problem & Possible Solutions:

  1. When you open Python within your command window it should look like problem_img
  • If not, run this command and will all be ok (hopefully)
sed '1 s/$/_HiStOrY_V2_/' $HOME/.pyhistory
  1. 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 branch

If the branch denoted by the asterisk is not master

git checkout master

Environment Pages/Repos within script:

testing

About

Development Env. Setup For Linux/Mac Systems

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •