Skip to content

Instantly share code, notes, and snippets.

@teisman
Created April 4, 2013 06:48
Show Gist options
  • Save teisman/5308362 to your computer and use it in GitHub Desktop.
Save teisman/5308362 to your computer and use it in GitHub Desktop.

To install your personal python package, first create a source distribution by entering python setup.py sdist. On UNIX systems, default output format is a gzipped tar .tar.gz.

When the source distribution has been created, use pip install -e /path/to/setup/file/ to install the distribution in editable mode. What this does is it created a symbolic link, adding the location of the source distribution to the python path sys.path.

When this is set up, new versions of your package can be rolled simply by replacing the source distribution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment