Suppose you want to package
the "graph" module. It is available on pypi
so, to get the sources and create a debian source archive, you type:
$ easy-deb -v2.4 -d
python-pypi-delegate -D /tmp graph
$ easy-deb -v2.4 -D /tmp delegate
The above commands will create source packages of graph and delegate
for python2.4 . The graph package will depend on the delegate package.
cd /tmp/deb-pkg-graph-0.4/python-pypi-graph-0.4 &&
Now to install the packages type:
$ sudo dpkg -i/tmp/deb-pkg-graph-0.4/python-pypi-graph-0.4/*.deb
$ sudo dpkg -i/tmp/deb-pkg-delegate-0.1/python-pypi-delegate-0.1/*.deb
easy-deb can do
automatic dependency with python modules that have "Requires:" lines
in theyr PKG-INFO.
If you want to change the configuration edit
/etc/easydeb/config.cfg. There you can change the maintainer of the
generated package and the location of mapping and dependencies
databases. These files are plain config files (like windows ini files).
The default installation config and databases are a good example to
For example, to add a new mapping you must edit the file specified in
the config file, adding a line like:
tk: tk8.0-dev, python-tk
The example shows that one requirement can be mapped to more than one
To add the dependencies for a module that doesn't provide a PKG-INFO
file with "Requires:" lines, you must edit the dependencies database
and add something like:
This tells easy-deb to add python the python-pypy-delegate package
the list of dependencies for module graph.
You can support more than one distribution: just create common
databases and distribution specific ones. Then in the config file for
you specify a
coma separated list of database files which include both, like: