paul@5 | 1 | Shed Skin Packaging for Debian
|
paul@5 | 2 | ==============================
|
paul@5 | 3 |
|
paul@5 | 4 | Firstly, check out the Shed Skin repository (perhaps in the parent directory
|
paul@5 | 5 | of this directory):
|
paul@5 | 6 |
|
paul@5 | 7 | svn checkout http://shedskin.googlecode.com/svn/trunk/ shedskin-read-only
|
paul@5 | 8 |
|
paul@5 | 9 | When packaging, perform an update:
|
paul@5 | 10 |
|
paul@5 | 11 | svn update
|
paul@5 | 12 |
|
paul@5 | 13 | Then, export a snapshot to a separate directory:
|
paul@5 | 14 |
|
paul@19 | 15 | svn export . ../shedskin-snapshot-20100327
|
paul@19 | 16 |
|
paul@19 | 17 | The idea is then to combine the snapshot with this packaging infrastructure.
|
paul@5 | 18 |
|
paul@5 | 19 | Move into the export directory:
|
paul@5 | 20 |
|
paul@19 | 21 | cd ../shedskin-snapshot-20100327
|
paul@5 | 22 |
|
paul@5 | 23 | Now, copy the debian directory from this directory into the export directory:
|
paul@5 | 24 |
|
paul@5 | 25 | cp -R ../shedskin-packaging/debian/ .
|
paul@5 | 26 |
|
paul@21 | 27 | Since some problems have arisen in Shed Skin 0.5 with distutils, package data
|
paul@21 | 28 | installation and byte-compilation performed by Debian's python-central post-
|
paul@21 | 29 | installation scripts, the setup script needs to be patched:
|
paul@21 | 30 |
|
paul@21 | 31 | cp ../shedskin-packaging/setup.py.diff .
|
paul@21 | 32 | patch -p0 < setup.py.diff
|
paul@21 | 33 |
|
paul@21 | 34 | The shedskin.shared module also needs to be patched:
|
paul@21 | 35 |
|
paul@21 | 36 | cp ../shedskin-packaging/shared.py.diff .
|
paul@21 | 37 | patch -p0 < shared.py.diff
|
paul@21 | 38 |
|
paul@22 | 39 | Various issues related to Python 2.5 and earlier (with respect to support for
|
paul@22 | 40 | the print function in Python 3.x) need fixing with a patch:
|
paul@22 | 41 |
|
paul@22 | 42 | cp ../shedskin-packaging/python25print.diff .
|
paul@22 | 43 | patch -p0 < python25print.diff
|
paul@22 | 44 |
|
paul@5 | 45 | Using pbuilder, try and build the package (this example is using my signing
|
paul@5 | 46 | key):
|
paul@5 | 47 |
|
paul@5 | 48 | pdebuild --auto-debsign --debsign-k 9F308B3C
|
paul@5 | 49 |
|
paul@5 | 50 | Some files will appear in /var/cache/pbuilder/result/ (such as the binary
|
paul@5 | 51 | package files), whereas others will appear in the parent directory.
|
paul@10 | 52 |
|
paul@21 | 53 | Maintenance Notes
|
paul@21 | 54 | -----------------
|
paul@21 | 55 |
|
paul@21 | 56 | When packaging a new release, update the release history below along with the
|
paul@21 | 57 | debian/changelog file:
|
paul@21 | 58 |
|
paul@21 | 59 | debchange -v 0.5 -D unstable
|
paul@21 | 60 |
|
paul@21 | 61 | Shed Skin Release History
|
paul@21 | 62 | =========================
|
paul@10 | 63 |
|
paul@10 | 64 | Release Subversion Revision
|
paul@10 | 65 | ------- -------------------
|
paul@21 | 66 | 0.5 1507
|
paul@19 | 67 | 0.4 1363
|
paul@14 | 68 | 0.3-2 1165
|
paul@10 | 69 | 0.3-1 1165
|