[Patches] [ python-Patches-1054967 ] bdist_deb - Debian packager

SourceForge.net noreply at sourceforge.net
Wed Oct 27 05:44:57 CEST 2004

Patches item #1054967, was opened at 2004-10-27 00:48
Message generated for change (Comment added) made by jafo
You can respond by visiting: 

Category: Distutils and setup.py
>Group: Python 2.5
Status: Open
Resolution: None
Priority: 5
Submitted By: Geoffrey T. Dairiki (dairiki)
>Assigned to: Sean Reifschneider (jafo)
Summary: bdist_deb - Debian packager

Initial Comment:
Here's a first crack at a bdist_deb.

This patch implements two new distutils commands:

  Build Debian packages
  Create and populate a top-level debian subdirectory.
  (Essentially dh_make for distutils packages.)

There is a slightly detailed README.bdist_deb included
in the patches.

I'm open to suggestions for improvements and bug-fixes.


>Comment By: Sean Reifschneider (jafo)
Date: 2004-10-27 03:44

Logged In: YES 

I'm just doing a review of this code.  A couple of things:

   There's been some concern expressed about
   Namely, that if debchange changes it's algorithm, it won't be
   reflected in this code.  It seems like one possible way
around that
   would be to build a directory with a "debian" directory
under it, a
   fake "changelog", and then call debchange to write the
data out, and
   parse it.  Too bad there's not a direct hook into
debchange to get
   that information.

   Can _formatdate, if email doesn't exist, use

   Ditto for _parseaddr?

It looks pretty good.  However, when trying to build a .deb
of my
jotweb2 package, it's failing with:

   cp: cannot stat `doc': No such file or directory
   dh_installdocs: command returned error code 256

I'm not sure exactly why.  I do have a "doc" directory in my
package directory, but I don't reference to it in my setup.py or
MANIFEST.  Adding it to the MANIFEST doesn't seem to help this.



You can respond by visiting: 

More information about the Patches mailing list