Giter VIP home page Giter VIP logo

pythonz's Introduction

pythonz: a Python installation manager

Overview

pythonz is a program to automate the building and installation of Python in the users $HOME. This is a fork of the original project, pythonbrew.

The original project seems to be unmaintained, and it also has some extra features which I don't really need, so I made this for to make something a bit simpler that works for me. You may also find it useful.

CPython, Stackless, PyPy and Jython are supported.

Installation

The recommended way to download and install pythonz is to run these statements in your shell:

curl -kL https://raw.github.com/saghul/pythonz/master/pythonz-install | bash

or:

fetch -o - https://raw.github.com/saghul/pythonz/master/pythonz-install | bash

After that, pythonz installs itself to ~/.pythonz.

Please add the following line to the end of your ~/.bashrc:

[[ -s $HOME/.pythonz/etc/bashrc ]] && source $HOME/.pythonz/etc/bashrc

If you need to install pythonz into somewhere else, you can do that by setting a PYTHONZ_ROOT environment variable:

export PYTHONZ_ROOT=/path/to/pythonz
curl -kLO https://raw.github.com/saghul/pythonz/master/pythonz-install
chmod +x pythonz-install
./pythonz-install

For Systemwide (Multi-User) installation

If the install script is run as root, pythonz will automatically install into /usr/local/pythonz.

pythonz will be automatically configured for every user on the system if you install it as root.

After installing it, where you would normally use sudo, non-root users will need to use sudo-pythonz:

sudo-pythonz install 2.7.3

Usage

pythonz command [options] version

Install some pythons:

pythonz install 2.7.3
pythonz install -t stackless 2.7.2
pythonz install -t jython 2.5.2
pythonz install -t pypy --url https://bitbucket.org/pypy/pypy/downloads/pypy-1.8-osx64.tar.bz2 1.8
pythonz install --verbose 2.7.2
pythonz install --configure="CC=gcc_4.1" 2.7.2
pythonz install --url http://www.python.org/ftp/python/2.7/Python-2.7.2.tgz 2.7.2
pythonz install --file /path/to/Python-2.7.2.tgz 2.7.2
pythonz install 2.7.3 3.2.3

List the installed pythons:

pythonz list

List all the available python versions for installing:

pythonz list -a

Uninstall the specified python:

pythonz uninstall 2.7.3
pythonz uninstall -t stackless 3.2.2

Remove stale source folders and archives:

pythonz cleanup

Upgrades pythonz to the latest version:

pythonz update

The recommended way to use a pythonz-installed version of Python is through virtualenv, e.g.:

mkvirtualenv -p ~/.pythonz/pythons/CPython-2.7.3/bin/python python2.7.3

For more information about virtualenv, checkout its documentation.

Commands

See the available commands:

pythonz help

To get help on each individual command run:

pythonz help <command>

pythonz's People

Contributors

saghul avatar utahta avatar yamaneko1212 avatar 02strich avatar tonyseek avatar lepture avatar astrojuanlu avatar kgaughan avatar msabramo avatar eyvoro avatar austinmatherne avatar brandon-rhodes avatar charlax avatar offbyone avatar davidszotten avatar edliaw avatar holmboe avatar sivel avatar tgs avatar totakke avatar

Stargazers

Angus H. avatar

Watchers

idobatter 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.