Creating Source Distributions and Eggs


This page follows on from the Subversion Branch Management and Managing Python Distributions page.

Create A Source Distribution And Egg From The Tagged Version

The only thing left to do is to create a release of the source distribution and/or egg:

$ python sdist

This will create a version of the library tarred and gzipped under:


You can create a python egg using:

$ python bdist_egg

Which will create:


Making the distributions available

If desired the files under dist/ can be copied to the NDG repository at:

Which is served from From there, tools such as  Easy Install will be able to find, download and build them.

Tagging and packaging in the cows_support SVN

Note that a utility script ( see: ) is provided in the COWS-Support SVN directory that does the following:

# ==============
# Simple bash script for automating the process of:
#   * creating a tagged version of a package
#   * adding and committing the tagged version to SVN
#   * creating a source distribution of the package
#   * creating a package egg
# Usage
# -----
# <package_name>