I would like to announce the release of stdeb 0.2. = What is it? = stdeb http://stdeb.python-hosting.com/ ("setuptools debian") produces Debian source packages from Python packages via a new distutils command, sdist_dsc, which produces a Debian source package of a Python package. Automatic defaults are provided for the Debian package, but many aspects of the resulting package can be customized via a configuration file. = What's new? = This is a primarily a bug-fix release cleaning up after the alpha series which introduced many new features. Here is the detailed changelog since the last alpha release. 008-03-27 Add ability to pass environment variables to setup.py script. 2008-03-18 Do not allow '.' in source package names. 2008-01-20 Allows a user to build every dependency a package has stated on it's setup.py, recursively. 2007-10-29 Allow upstream tarball to have different name from debian .orig.tar.gz but keep md5sum. 2007-05-28 Fix bug where python distribution name contained '-' but setuptools renamed this to '_'. 2007-05-11 Fix py2dsc script to properly set __file__ and __name__. 2007-04-18 Fix bug where .egg-info renaming failed when upstream version contained '-'. = Thanks = A special thanks to Pedro Algarvio, aka s0undt3ch, for helping with this release.
On Sat, 26 Apr 2008 03:49:34 -0700, Andrew Straw <strawman@astraw.com> wrote:
I would like to announce the release of stdeb 0.2.
= What is it? =
stdeb http://stdeb.python-hosting.com/ ("setuptools debian") produces Debian source packages from Python packages via a new distutils command, sdist_dsc, which produces a Debian source package of a Python package. Automatic defaults are provided for the Debian package, but many aspects of the resulting package can be customized via a configuration file.
= What's new? =
Cool. I gave this a try on Twisted. Here's what I found: * dpkg-buildpackage failed on the result when I ran sdist_dsc from a "development" version of Twisted - ie, one with a version string like "8.0.1+r23437". This seemed to be caused by directories in the source package being named inconsistently, resulting in commands failing with "no such directory" errors. * After I switched to a released version of Twisted, I was able to create a package. When installing the package, I encountered this failure: Compiling /usr/lib/python2.4/site-packages/twisted/test/generator_failure_tests.py ... File "/usr/lib/python2.4/site-packages/twisted/test/generator_failure_tests.py", line 66 yield ^ SyntaxError: invalid syntax pycentral: pycentral pkginstall: error byte-compiling files (991) pycentral pkginstall: error byte-compiling files (991) dpkg: error processing python-twisted (--install): subprocess post-installation script returned error exit status 1 Errors were encountered while processing: python-twisted Indeed, there is a file in Twisted which is not valid Python 2.4 syntax. It is only used by the test suite when running on Python 2.5. Is there some way to have this excluded or compensated for? * Perhaps because of the previous error, the installed package doesn't look quite right. With Python 2.4, the `twisted´ package is importable but with Python 2.5 it can't be found. Compared to the twisted dir in the Python 2.4 site-packages directory, the twisted dir in the Python 2.5 site-packages directory is very sparsely populated, with many files and directories missing. Thanks for your work on this. Jean-Paul
Jean-Paul Calderone wrote: > On Sat, 26 Apr 2008 03:49:34 -0700, Andrew Straw <strawman@astraw.com> > wrote: >> I would like to announce the release of stdeb 0.2. > Cool. I gave this a try on Twisted. Here's what I found: Thanks for testing and, better, reporting your feedback. > * dpkg-buildpackage failed on the result when I ran sdist_dsc from a > "development" version of Twisted - ie, one with a version string > like "8.0.1+r23437". This seemed to be caused by directories in the > source package being named inconsistently, resulting in commands > failing with "no such directory" errors. OK, I added a couple of packages with such version numbers to the test suite and fixed a few bugs that cropped up. I've just released 0.2.1 which includes these fixes. > Indeed, there is a file in Twisted which is not valid Python 2.4 syntax. > It is only used by the test suite when running on Python 2.5. Is there > some way to have this excluded or compensated for? Yes, this can be handled with the XS-Python-Version: config option. (See the section "Customizing the produced Debian source package (config options)" on the web page.) Specifically, you want "XS-Python-Version: >= 2.5". > > * Perhaps because of the previous error, the installed package doesn't > look quite right. With Python 2.4, the `twisted´ package is > importable > but with Python 2.5 it can't be found. Compared to the twisted dir > in the Python 2.4 site-packages directory, the twisted dir in the > Python > 2.5 site-packages directory is very sparsely populated, with many > files > and directories missing. Let me know if this still persists. Most of the files get installed to /usr/share/pycentral, and then a post-install script creates symlinks to the /usr/lib/python2.x directories. (This is standard python-central behavior.)
On Sat, 26 Apr 2008 13:02:46 -0700, Andrew Straw <strawman@astraw.com> wrote:
Jean-Paul Calderone wrote:
On Sat, 26 Apr 2008 03:49:34 -0700, Andrew Straw <strawman@astraw.com> wrote:
I would like to announce the release of stdeb 0.2. Cool. I gave this a try on Twisted. Here's what I found: Thanks for testing and, better, reporting your feedback. [snip]
Great! The version issue seems to be resolved now. I also edited the generated XS-Python-Version to indicate the Python 2.5 dependency and that seems to have fixed the installation issue in the resulting .deb. With a bit more work and a custom config file or three this may be creating some nice debs. This is going to be very useful, thanks. :) Jean-Paul
participants (2)
-
Andrew Straw
-
Jean-Paul Calderone