aboutsummaryrefslogtreecommitdiff
path: root/python.md
blob: 42eabd682c73fb1ac8366045d35d94db5aca8de0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Python packaging
================

Example: using [stdeb](http://github.com/astraw/stdeb) to build [http://kedpm.sf.net].

    sudo apt-get install stdeb fakeroot
    sudo apt-get install python-crypto libglade2-0 python-gtk2 python-glade2

File `~/.pydistutils.cfg`:

    [sdist_dsc]
    force-buildsystem: False

File `kedpm.cfg`:

    [DEFAULT]
    Package: kedpm
    Maintainer: User Name <user@example.org>
    Depends: python-crypto

Getting the code:

    wget http://downloads.sourceforge.net/project/kedpm/kedpm/0.4.0/kedpm-0.4.0.tar.gz

Packaging:

    py2dsc --extra-cfg-file kedpm.cfg kedpm-0.4.0.tar.gz
    cd deb_dist/kedpm-0.4.0
    dpkg-buildpackage -rfakeroot -uc -us
    cd ..
    sudo dpkg -i kedpm_0.4.0-1_all.deb