Giter Club home page Giter Club logo

brew-pip's Introduction

 _                                  _       
| |__  _ __ _____      __     _ __ (_)_ __  
| '_ \| '__/ _ \ \ /\ / /____| '_ \| | '_ \      brew pip installs python packages
| |_) | | |  __/\ V  V /_____| |_) | | |_) |            inside of Homebrew.
|_.__/|_|  \___| \_/\_/      | .__/|_| .__/ 
                             |_|     |_|    

Install

$ curl -sSL https://raw.github.com/edavis/brew-pip/master/brew_pip.py > ~/bin/brew-pip
$ chmod +x ~/bin/brew-pip

Usage

brew pip mercurial        # install the latest mercurial package
brew pip django==1.2      # install django-1.2
brew pip ~/tox-1.3.tar.gz # can install local packages, too
brew pip -u django==1.3.1 # upgrade to django-1.3.1
brew pip -k ipython       # install ipython, but don't link it (i.e., keg-only)
brew rm django            # uninstallation taken care of by homebrew itself
brew pip -h               # for help

Setup

So python can load your installed libraries, you need to update your PYTHONPATH:

export PYTHONPATH=$(brew --prefix)/lib/python2.7/site-packages

And for any scripts to be found, you need to update your PATH:

export PATH=$PATH:$(brew --prefix)/share/python

But doesn't everybody use virtualenv now?

Why, yes, they do. But that doesn't mean global installations are totally useless. What if you want to use a package without being active in a virtualenv -- like say ipython?

With brew pip you can globally install a select few packages while relying on virtualenv for everything else.

It's the best of both worlds.

Changelog

In development

  • Add a --version argument
  • Handles @rev syntax correctly

v0.4.0 (2011-12-28)

  • Much more robust handling of different package syntaxes
  • Can install VCS packages
  • Add test suite

v0.3.0 (2011-12-26)

  • Add brew-pip.rb for Homebrew installation
  • Can accept local source distributions for installation

v0.2.0 (2011-12-25)

  • Use pip directly, instead of creating temporary formula files.

brew-pip's People

Contributors

adamv avatar josh avatar smerrill avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.