Giter VIP home page Giter VIP logo

p's Introduction

SYNOPSIS:
    A couple of python/virtualenv utilities.

    p is a simple function for managing virtualenvs. It is similar to
    virtualenvwrapper but with fewer features. Use it to activate, deactivate,
    and switch virtualenvs.

    Currently there are two (shell) hooks provided:
        * post-activate
        * post-deactivate.
    These should be files placed in the bin directory of your virtualenv

    p.sh is meant to be sourced and not run directly.

    pystrap is a utility for fine grained control over python and virtualenv,
    or for use with old or awful unixes without nice repositories. It:
        * downloads and compiles python from source
        * installs python in your user directory
        * downloads virtualenv and dependencies
        * creates virtualenvs using these

    Everything is kept in ~/.python.

    Build deps are required:
        OSX:
            * xcode command line utils (has headers for some modules)
            * brew install gdbm (for gdbm headers)
            * still missing:
                _bsddb             dl                 imageop
                linuxaudiodev      ossaudiodev        spwd
                sunaudiodev
        DEB:
            * make sure deb-src is enabled in sources.list
            * aptitude build-dep python2.7

REQUIRES:
    bash
    p requires PYENV to be set to your base dir for virtualenvs

PROVIDES:
    p
    pystrap

INSTALL:
    p:
        put into ~/.bashrc or the like:
            export PYENV=~/my_virtual_envs
            source /path/to/p.sh

    pystrap:
        put it somewhere in $PATH
        read comments at top of script, you'll need deps installed to build.

USAGE:
    p           - list virtualenvs
    p -h        - short help
    p --help    - long help
    p -d        - deactivate current virtualenv and run post-deactivate hook
    p -a        - revert -d
    p -m MODULE - cd to directory where module lives
    p .         - cd to site-packages of current virtualenv
    p ..        - cd to root of current virtualenv
    p ENV       - deactivate current virtualenv and activate ENV with hooks

    pystrap -h --help
    pystrap        - install python2 and virtualenv
    pystrap ENV    - create virtualenv ENV with python2
    pystrap -3     - install python3 and virtualenv
    pystrap -3 ENV - create virtualenv ENV with python3

p's People

Contributors

rupa avatar

Watchers

 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.