Git Product home page Git Product logo

stdeb's Introduction

image

stdeb - Python to Debian source package conversion utility

stdeb produces Debian source packages from Python packages via a new distutils command, sdist_dsc. Automatic defaults are provided for the Debian package, but many aspects of the resulting package can be customized (see the customizing section, below). An additional command, bdist_deb, creates a Debian binary package, a .deb file. The install_deb command installs this .deb file. The debianize command builds a debian/ directory directly alongside your setup.py.

Several convenience utilities are also provided:

  • pypi-download will query the Python Package Index (PyPI) for a package and download it.
  • pypi-install will query the Python Package Index (PyPI) for a package, download it, create a .deb from it, and then install the .deb.
  • py2dsc will convert a distutils-built source tarball into a Debian source package.
  • py2dsc-deb will convert a distutils-built source tarball into a Debian source package and then use the Debian machinery to build a .deb file from this.

Python 3 support

As explained in more detail below, the heart of stdeb is the sdist_dsc distutils command. This command runs once to generate a Debian source package. This Debian source package can specify building packages for Python 2, Python 3, or both. Furthermore, this generation can be done with the Python 2 or Python 3 interpreter. By default, only packages are built for the version of Python being used. To override this, use --with-python2=True or --with-python3=True as an argument to the sdist_dsc distutils command (or use both to be sure). For example, to build only a Python 3 package using the Python 3 interpreter:

python3 setup.py --command-packages=stdeb.command bdist_deb

To build both Python 2 and Python 3 packages using the Python 3 interpreter (and only the Python3 package installs scripts):

python3 setup.py --command-packages=stdeb.command sdist_dsc --with-python2=True --with-python3=True --no-python2-scripts=True bdist_deb

News

  • Bugfixes:
    • add sleep between PyPI API calls to avoid rate limit (#173)
  • Improvements:
    • use SOURCE_DATE_EPOCH if set for timestamp in generated changelog to generate reproducbile artifacts (#166)
    • update debhelper compat version from 7 to 9 (#158)
    • added flag --with-dh-systemd (#162)
    • add support for DEBEMAIL envvar (#168)
    • use setuptools "url" field for "Homepage" field in debian/control (#169)
    • dh_virtualenv: specify Python version (#165)
    • added compat flag to modify Debian compatibility level (#163)
  • Cosmetic:
    • remove excess newlines from debian/control and rules file (#167)
    • use flake8 to check style in Travis CI, update code to comply (#171)
  • Bugfixes:
    • handle path with spaces in zip tarball (#150)
    • fix map() iterator issue in Python 3 (#152)
    • fix checking for python3-all (instead of python-all) when using only Python 3 (#154)
  • Improvements:
    • get date in Python, avoiding requiring date on macOS (#115)
    • add configuration file option Python2-Depends-Name (#156)
    • add an option --with-dh-virtualenv (#155)
    • add an option named ignore-source-changes (#151)
  • Bugfixes:
    • fix applying patch files under Python 3
  • Improvements:
    • add --sign-results to sdist_dsc and bdist_deb command
    • add --debian-version to CLI program options
    • add support for Breaks / Breaks3 in debian/control
    • add support for Suite3 option
    • support zip files in pypi-install
  • Breaking changes:
    • remove deprecated dh_desktop call
  • 2015-02-18: Version 0.8.5. See the download page. Bugfixes: reverted change that installed into virtualenv when built in virtualenv. Improvements: Added --allow-virtualenv-install-location to allow installing into virtualenv location. Supports Debian Squeeze (6), Debian Wheezy (7), Ubuntu Precise (12.04), Ubuntu Trusty (14.04) and later releases.
  • 2015-02-16: Version 0.8.4. See the download page. Bugfixes: works on Python 3.4 (e.g. Ubuntu Trusty) again. Improvements: Improved customization for Python 3 (Dirk Thomas added force-x-python3-version and X-Python3-Version and Louis for Recommends3, Suggests3, Provides3 and Replaces3 support. Supports Debian Squeeze (6), Debian Wheezy (7), Ubuntu Precise (12.04), Ubuntu Trusty (14.04) and later releases.
  • 2015-02-14: Version 0.8.3. See the download page. This is a bugfix release which fixes several aspects of Unicode support. Tests pass on Debian Squeeze (6), Debian Wheezy (7), and Ubuntu Precise (12.04). Support for Python 3.4 (e.g. Ubuntu Trusty 14.04) was mistakenly broken and was fixed in the 0.8.3 release.
  • 2014-8-14: Version 0.8.2. See the download page. This is a bugfix release fixing a serious issue that would cause a Python 2 package to be built if only a Python 3 package was requested in some circumstances.
  • 2014-8-10: Version 0.8.1. See the download page. Due to bugs in 0.8.0, this release is the first announced from the 0.8 series. Highlights since 0.7.1:
    • Full support for Python 3. This includes being run from Python 3 and generating packages for Python 3. The default is to build Python 3 packages when run with Python 3 and to build Python 2 packages when run from Python 2. Command line options can be used to build packages for the other Python interpreter, too.
    • Build .changes file for source package. While this still must be signed for upload to a PPA, for example, it should still be useful in some cases.
    • Switch to Debian source format 3.0 (quilt). Practically speaking, the .diff.gz file that used to come with a source package is now replaced by a .debian.tar.gz file.
    • Verify SSL certificates when talking to PyPI using Requests. (Verification requires Requests >= 0.8.8.)
    • Many bugfixes.
  • 2014-05-05: Version 0.7.1. See the download page. Highlights for this release (you may also wish to consult the full changelog). Due to bugs in 0.7.0, this release is the first announced from the 0.7 series. Highlights since 0.6.0:
    • New commands: pypi-download and pypi-install to directly download and install packages from PyPI, respectively. py2dsc-deb directly creates a .deb file from a source tarball.
    • New distutils command: install_deb lets you directly install a python package as a standard system package.
    • Many bugfixes, including the new URL for PyPI.
    • Automated runs of test suite, thanks to Travis CI
    • Thanks to many, especially Piotr Ożarowski for help with stdeb.
  • 2010-06-18: Version 0.6.0. See the download page. Highlights for this release (you may also wish to consult the full changelog):
    • A new debianize command to build a debian/ directory alongside your setup.py file.
    • Bugfixes.
  • 2010-01-09: Version 0.5.1. Bugfix release. See the download page, the changelog and release notes.
  • 2009-12-30: Version 0.5.0. See the download page. Highlights for this release (you may also wish to consult the full changelog):
    • A new pypi-install script will automatically download, make a .deb, and install packages from the Python Package Index (PyPI).
    • Removal of the setuptools dependency.
    • New option (--guess-conflicts-provides-replaces) to query original Debian packages for Conflicts/Provides/Replaces information.
    • As a result of these changes and to fix a couple bugs/warts, some minor backwards incompatible changes and deprecations were made. Please check the release notes.
  • 2009-12-28: Version 0.4.3 Released. See the download page. See the changelog and release notes.
  • 2009-11-02: Version 0.4.2 Released. See the download page. See the changelog and release notes.
  • 2009-10-04: Version 0.4.1 Released. See the download page. See the changelog and release notes.
  • 2009-09-27: Version 0.4 Released. See the download page. This version switches to debhelper 7. See the Changelog for 0.4.

Releases up to and including 0.3.2 are compatible with Ubuntu Hardy.

The commands

pypi-download, command-line command

pypi-download takes a package name, queries PyPI for it and downloads it:

pypi-download [options] mypackage

pypi-install, command-line command

pypi-install takes a package name, queries PyPI for it, downloads it, builds a Debian source package and then .deb from it, and this installs it:

pypi-install [options] mypackage

py2dsc, command-line command

py2dsc takes a .tar.gz source package and build a Debian source package from it:

py2dsc [options] mypackage-0.1.tar.gz # uses pre-built Python source package

py2dsc-deb, command-line command

py2dsc-deb takes a .tar.gz source package and build a Debian source package and then a .deb file from it:

py2dsc-deb [options] mypackage-0.1.tar.gz # uses pre-built Python source package

sdist_dsc, distutils command

All methods eventually result in a call to the sdist_dsc distutils command. You may prefer to do so directly:

python setup.py --command-packages=stdeb.command sdist_dsc

A Debian source package is produced from unmodified Python packages. The following files are produced in a newly created subdirectory deb_dist:

  • packagename_versionname.orig.tar.gz
  • packagename_versionname-debianversion.dsc
  • packagename_versionname-debianversion.diff.gz

These can then be compiled into binary packages using the standard Debian machinery (e.g. dpkg-buildpackage).

bdist_deb, distutils command

A bdist_deb distutils command is installed. This calls the sdist_dsc command and then runs dpkg-buildpackage on the result:

python setup.py --command-packages=stdeb.command bdist_deb

install_deb, distutils command

The install_deb distutils command calls the bdist_deb command and then installs the result. You need to run this with superuser privilege:

sudo python setup.py --command-packages=stdeb.command install_deb

debianize, distutils command

The debianize distutils command builds the same debian/ directory as used in the previous command, but the output is placed directly in the project's root folder (alongside setup.py). This is useful for customizing the Debian package directly (rather than using the various stdeb options to tune the generated package).

python setup.py --command-packages=stdeb.command debianize

A note about telling distutils to use the stdeb distutils commands

Distutils command packages can also be specified in distutils configuration files (rather than using the --command-packages command line argument to setup.py), as specified in the distutils documentation. Specifically, you could include this in your ~/.pydistutils.cfg file:

[global]
command-packages: stdeb.command

Examples

These all assume you have stdeb installed in your system Python path. stdeb also works from a non-system Python path (e.g. a virtualenv).

Quickstart 1: Install something from PyPI now, I don't care about anything else

Do this from the command line:

pypi-install mypackage

Warning: Despite doing its best, there is absolutely no way stdeb can guarantee all the Debian package dependencies will be properly fulfilled without manual intervention. Using pypi-install bypasses your ability to customize stdeb's behavior. Read the rest of this document to understand how to make better packages.

Quickstart 2: Just tell me the fastest way to make a .deb

(First, install stdeb as you normally install Python packages.)

Do this from the directory with your setup.py file:

python setup.py --command-packages=stdeb.command bdist_deb

This will make a Debian source package (.dsc, .orig.tar.gz and .diff.gz files) and then compile it to a Debian binary package (.deb) for your current system. The result will be in deb_dist.

Warning: installing the .deb file on other versions of Ubuntu or Debian than the one on which it was compiled will result in undefined behavior. If you have extension modules, they will probably break. Even in the absence of extension modules, bad stuff will likely happen.

For this reason, it is much better to build the Debian source package and then compile that (e.g. using Ubuntu's PPA) for each target version of Debian or Ubuntu.

Quickstart 3: I read the warning, so show me how to make a source package, then compile it

This generates a source package:

wget http://pypi.python.org/packages/source/R/Reindent/Reindent-0.1.0.tar.gz
py2dsc Reindent-0.1.0.tar.gz

This turns it into a .deb using the standard Debian tools. (Do this on the same source package for each target distribution):

cd deb_dist/reindent-0.1.0/
dpkg-buildpackage -rfakeroot -uc -us

This installs it:

cd ..
sudo dpkg -i python-reindent_0.1.0-1_all.deb

Quickstart 4: Install from a Python package direct to a debian system package

(First, install stdeb as you normally install Python packages.)

Do this from the directory with your setup.py file:

python setup.py --command-packages=stdeb.command install_deb

This will make a Debian source package (.dsc, .orig.tar.gz and .diff.gz files), compile it to a Debian binary package (.deb) for your current system and then install it using dpkg.

Another example, with more explanation

This example is more useful if you don't have a Python source package (.tar.gz file generated by python setup.py sdist). For the sake of illustration, we do download such a tarball, but immediately unpack it (alternatively, use a version control system to grab the unpacked source of a package):

wget http://pypi.python.org/packages/source/R/Reindent/Reindent-0.1.0.tar.gz
tar xzf Reindent-0.1.0.tar.gz
cd Reindent-0.1.0

The following will generate a directory deb_dist containing the files reindent_0.1.0-1.dsc, reindent_0.1.0.orig.tar.gz and reindent_0.1.0-1.diff.gz, which, together, are a debian source package:

python setup.py --command-packages=stdeb.command sdist_dsc

The source generated in the above way is also extracted (using dpkg-source -x) and placed in the deb_dist subdirectory. To continue the example above:

cd deb_dist/reindent-0.1.0
dpkg-buildpackage -rfakeroot -uc -us

Finally, the generated package can be installed:

cd ..
sudo dpkg -i python-reindent_0.1.0-1_all.deb

For yet another example of use, with still more explanation, see allmydata-tahoe ticket 251.

Download

Files are available at the download page (for ancient releases, see the old download page).

The git repository is available at http://github.com/astraw/stdeb

Install (or, using stdeb to create an stdeb installer)

For a bit of fun, here's how to install stdeb using stdeb. Note that stdeb is also in Debian and Ubuntu, so this recipe is only necessary to install a more recent stdeb.

STDEB_VERSION="0.10.0"

# Download stdeb
wget https://pypi.python.org/packages/source/s/stdeb/stdeb-$STDEB_VERSION.tar.gz

# Extract it
tar xzf stdeb-$STDEB_VERSION.tar.gz

# Enter extracted source package
cd stdeb-$STDEB_VERSION

# Build .deb (making use of stdeb package directory in sys.path).
python setup.py --command-packages=stdeb.command bdist_deb

# Install it
sudo dpkg -i deb_dist/python-stdeb_$STDEB_VERSION-1_all.deb

Background

For the average Python package, its source distribution (python_package.tar.gz created with python setup.py sdist) contains nearly everything necessary to make a Debian source package. This near-equivalence encouraged me to write this distutils extension, which executes the setup.py file to extract relevant information. setuptools may optionally be used.

I wrote this initially to Debianize several Python packages of my own, but I have the feeling it could be generally useful. It appears similar, at least in theory, to easydeb, Logilab's Devtools, bdist_dpkg, bdist_deb, pkgme and dh-virtualenv.

Features

  • Create a package for all Python versions supported by python-support. (Limiting this range is possible with the XS-Python-Version: config option.)
  • Automatic conversion of Python package names into valid Debian package names.
  • Attempt to automatically convert version numbers such that ordering is maintained. See also the config option Forced-Upstream-Version.
  • Fine grained control of version numbers. (Debian-Version, Forced-Upstream-Version, Upstream-Version-Prefix, Upstream-Version-Suffix config options.)
  • Install .desktop files. (MIME-Desktop-Files config option.)
  • Install .mime and .sharedmimeinfo files. (MIME-File and Shared-MIME-File config options.)
  • Install copyright files. (Copyright-File config option.)
  • Apply patches to upstream sources. (Stdeb-Patch-File config option.)
  • Pass environment variables to setup.py script. (Setup-Env-Vars config option.)

Customizing the produced Debian source package (config options)

stdeb will attempt to provide reasonable defaults, but these are only guesses.

There are two ways to customize the Debian source package produced by stdeb. First, you may provide options to the distutils commands. Second, you may provide an stdeb.cfg file.

stdeb distutils command options

The sdist_dsc command takes command-line options to the distutils command. For example:

python setup.py --command-packages=stdeb.command sdist_dsc --debian-version 0MyName1

This creates a Debian package with the Debian version set to "0MyName1".

These options can also be set via distutils configuration files. (These are the setup.cfg file alongside setup.py and the ~/.pydistutils.cfg file.) In that case, put the arguments in the [sdist_dsc] section. For example, a project's ~/.setup.cfg file might have this:

[sdist_dsc]
debian-version: 0MyName1

To pass these commands to sdist_dsc when calling bdist_deb, do this:

python setup.py sdist_dsc --debian-version 0MyName1 bdist_deb
Command line option Effect

--with-python2

build Python 2 package (default=True)

--with-python3

build Python 3 package (default=False)

--no-python2-scripts

disable installation of Python 2 scripts (default=False)

--no-python3-scripts

disable installation of Python 3 scripts (default=False)

--force-x-python3-version

Override default minimum python3:any dependency with value from x-python3-version

--allow-virtualenv-install-location

Allow installing into /some/random/virtualenv-path

--with-dh-virtualenv

Build the package using dh_virtualenv, so all dependencies are embedded into the packages.

--with-dh-systemd

Add the systemd addon that will add dh_systemd_enable and dh_systemd_start helpers at the correct time during build.

--sign-results

Use gpg to sign the resulting .dsc and .changes file

--dist-dir (-d)

directory to put final built distributions in (default='deb_dist')

--patch-already-applied (-a)

patch was already applied (used when py2dsc calls sdist_dsc)

--default-distribution

deprecated (see --suite)

--compat

debian compatibility level (default=9)

--suite (-z)

distribution name to use if not specified in .cfg (default='unstable')

--default-maintainer

deprecated (see --maintainer)

--maintainer (-m)

maintainer name and email to use if not specified in .cfg (default from setup.py)

--extra-cfg-file (-x)

additional .cfg file (in addition to stdeb.cfg if present)

--patch-file (-p)

patch file applied before setup.py called (incompatible with file specified in .cfg)

--patch-level (-l)

patch file applied before setup.py called (incompatible with file specified in .cfg)

--patch-posix (-q)

apply the patch with --posix mode

--remove-expanded-source-dir (-r)

remove the expanded source directory

--ignore-install-requires (-i)

ignore the requirements from requires.txt in the egg-info directory

--ignore-source-changes

ignore all changes on source when building source package (add -i.* option to dpkg-source)

--no-backwards-compatibility

This option has no effect, is here for backwards compatibility, and may be removed someday.

--guess-conflicts-provides-replaces

If True, attempt to guess Conflicts/Provides/Replaces in debian/control based on apt-cache output. (Default=False).

--use-premade-distfile (-P)

use .zip or .tar.gz file already made by sdist command

--source

debian/control Source: (Default: <source-debianized-setup-name>)

--package

debian/control Package: (Default: python-<debianized-setup-name>)

--suite

suite (e.g. stable, lucid) in changelog (Default: unstable)

--maintainer

debian/control Maintainer: (Default: <setup-maintainer-or-author>)

--debian-version

debian version (Default: 1)

--section

debian/control Section: (Default: python)

--epoch

version epoch

--forced-upstream-version

forced upstream version

--upstream-version-prefix

upstream version prefix

--upstream-version-suffix

upstream version suffix

--uploaders

uploaders

--copyright-file

copyright file

--build-depends

debian/control Build-Depends:

--build-conflicts

debian/control Build-Conflicts:

--stdeb-patch-file

file containing patches for stdeb to apply

--stdeb-patch-level

patch level provided to patch command

--depends

debian/control Depends:

--suggests

debian/control Suggests:

--recommends

debian/control Recommends:

--xs-python-version

debian/control XS-Python-Version:

--x-python3-version

debian/control X-Python3-Version:

--dpkg-shlibdeps-params

parameters passed to dpkg-shlibdeps

--conflicts

debian/control Conflicts:

--provides

debian/control Provides:

--replaces

debian/control Replaces:

--mime-desktop-files

MIME desktop files

--mime-file

MIME file

--shared-mime-file

shared MIME file

--setup-env-vars

environment variables passed to setup.py

--udev-rules

file with rules to install to udev

You may also pass any arguments described below for the stdeb.cfg file via distutils options. Passing the arguments this way (either on the command line, or in the [sdist_dsc] section of a distutils .cfg file) will take precedence. The option name should be given in lower case.

stdeb.cfg configuration file

You may write config files of the format understood by ConfigParser. When building each package, stdeb looks for the existence of a stdeb.cfg in the directory with setup.py. You may specify an additional config file with the command-line option --extra-cfg-file. The section should should either be [DEFAULT] or [package_name], which package_name is specified as the name argument to the setup() command. An example stdeb.cfg file is:

[DEFAULT]
Depends: python-numpy
XS-Python-Version: >= 2.6

All available options:

Config file option Effect

Source

debian/control Source: (Default: <source-debianized-setup-name>)

Package

debian/control Package: (Default: python-<debianized-setup-name>)

Package3

debian/control Package: for python3 (Default: python3-<debianized-setup-name>)

Suite

suite (e.g. stable, lucid) in changelog (Default: unstable)

Suite3

suite (e.g. stable, lucid) for python3 (Default: uses value of Suite option)

Maintainer

debian/control Maintainer: (Default: <setup-maintainer-or-author>)

Debian-Version

debian version (Default: 1)

Section

debian/control Section: (Default: python)

Epoch

version epoch

Forced-Upstream-Version

forced upstream version

Upstream-Version-Prefix

upstream version prefix

Upstream-Version-Suffix

upstream version suffix

Uploaders

uploaders

Copyright-File

copyright file

Build-Depends

debian/control Build-Depends:

Build-Conflicts

debian/control Build-Conflicts:

Stdeb-Patch-File

file containing patches for stdeb to apply

Stdeb-Patch-Level

patch level provided to patch command

Depends

debian/control Depends:

Depends3

debian/control Depends: for python3

Suggests

debian/control Suggests:

Suggests3

debian/control Suggests: for python3

Recommends

debian/control Recommends:

Recommends3

debian/control Recommends: for python3

XS-Python-Version

debian/control XS-Python-Version:

X-Python3-Version

debian/control X-Python3-Version:

Dpkg-Shlibdeps-Params

parameters passed to dpkg-shlibdeps

Conflicts

debian/control Conflicts:

Conflicts3

debian/control Conflicts: for python3

Breaks

debian/control Breaks:

Breaks3

debian/control Breaks: for python3

Provides

debian/control Provides:

Provides3

debian/control Provides: for python3

Replaces

debian/control Replaces:

Replaces3

debian/control Replaces: for python3

MIME-Desktop-Files

MIME desktop files

MIME-File

MIME file

Shared-MIME-File

shared MIME file

Setup-Env-Vars

environment variables passed to setup.py

Udev-Rules

file with rules to install to udev

Python2-Depends-Name

override Python 2 Debian package name in ${python:Depends}

The option names in stdeb.cfg files are not case sensitive.

Reproducible builds

By default stdeb uses the current time for the the timestamp in the generated changelog file. This results in a non-reproducible build since every invocation generates a different changelog / .deb. The environment variable SOURCE_DATE_EPOCH can be set to a fixed timestamp (e.g. when the version was tagged or of the last commit was made) which will be used in the changelog instead. This will ensure that the produced .deb is reproducible on repeated invocations.

For more information about reproducible builds and this specific environment variable please see https://reproducible-builds.org/docs/source-date-epoch/

Prerequisites

  • Python 2.7 or Python 3.x
  • Standard Debian utilities such as date, dpkg-source and Debhelper 7 (use stdeb 0.3.x if you need to support older distributions without dh7)
  • If your setup.py uses the setuptools features setup_requires or install_requires, you must run apt-file update prior to running any stdeb command.

TODO

  • Make output meet Debian Python Policy specifications or the new python policy. This will include several things, among which are:
    • the ability to make custom changelogs
    • the ability to include project-supplied documentation as a -doc package
    • include license information in debian/copyright
    • the ability to include project-supplied examples, tests, and data as a separate package
    • much more not listed
  • Create (better) documentation
  • Log output using standard distutils mechanisms
  • Refactor the source code to have a simpler, more sane design

Call for volunteers

I don't have a lot of time for this. This project stands a very real chance of being only a shadow of its potential self unless people step up and contribute. There are numerous ways in which people could help. In particular, I'd be interested in finding a co-maintainer or maintainer if the project generates any interest. Secondarily, I would appreciate advice from Debian developers or Ubuntu MOTUs about the arcane details of Python packaging.

Mailing list

Please address all questions to the distutils-SIG

License

MIT-style license. Copyright (c) 2006-2015 stdeb authors.

See the LICENSE.txt file provided with the source distribution for full details.

Authors

Additional Credits

  • Zooko O'Whielacronx for the autofind-depends patch.
  • Brett (last name unknown) for the --ignore-install-requires patch.
  • Ximin Luo for a bug fix.
  • Alexander D. Sedov for bug fixes and suggestions.
  • Michele Mattioni for bug fix.
  • Alexander V. Nikolaev for the debhelper buildsystem specification.
  • Roland Sommer for the description field bugfix.
  • Barry Warsaw for suggesting the debianize command.
  • Asheesh Laroia for updating the PyPI URL.
  • Piotr Ożarowski for implementing dh_python2 support.
  • Nikita Burtsev for unicode tests and fixes
  • Mikołaj Siedlarek for a bugfix
  • Dirk Thomas for --force-x-python3-version and X-Python3-Version
  • Louis for Recommends3, Suggests3, Provides3 and Replaces3 support
  • kzwin for interop with virtualenv
  • GitHub for hosting services.
  • WebFaction (aka python-hosting) for previous hosting services.
  • TravisCI for continuous integration

Join the chat at https://gitter.im/astraw/stdeb

stdeb's People

Contributors

arnaudmorin avatar arthurzenika avatar astraw avatar avnik avatar chrishiestand avatar detrout avatar dirk-thomas avatar edwardbetts avatar electronicru avatar esc avatar fidlej avatar g-reno avatar g2p avatar gitter-badger avatar jbroadus avatar jlejeune avatar jonashrem avatar mattions avatar msiedlarek avatar nuclearsandwich avatar p1otr avatar paulproteus avatar rboulton avatar rodo avatar sathieu avatar sispheor avatar tpikonen avatar veimox avatar warner avatar yozik04 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

stdeb's Issues

--extra-cfg-file doesn't overwrite Depends

Giving an additional config file via --extra-cfg-file one could overwrite field "Depends" in the past. It doesn't do so anymore though.

I've checked the source but there is no test suite provided, otherwise I would've tried to provide a test to fix this behaviour for the future.

make lintian clean debian directory

After running the 'debianize' command, building a source package gives me these lintian warnings:

W: flufl-i18n source: debhelper-but-no-misc-depends python-flufl.i18n
W: flufl-i18n source: out-of-date-standards-version 3.8.3 (current is 3.8.4)

Here are changes to the control file I had to make after the fact:

=== modified file 'debian/control'
--- debian/control 2010-06-10 21:00:27 +0000
+++ debian/control 2010-06-10 21:36:18 +0000
@@ -3,11 +3,11 @@
Section: python
Priority: optional
Build-Depends: python-setuptools (>= 0.6b3), debhelper (>= 7), python-support (>= 0.8.4)
-Standards-Version: 3.8.3
+Standards-Version: 3.8.4

Package: python-flufl.i18n
Architecture: all
-Depends: ${python:Depends}
+Depends: ${python:Depends}, ${misc:Depends}
XB-Python-Version: ${python:Versions}
Provides: ${python:Provides}
Description: A high level API for Python internationalization.

Option --setup-env-vars not recognized

Hi,

I'm trying to compile scipy using stdeb under debian/lenny. Swig can't find the umfpack header files which are installed under /usr/include/suitesparse. So, I am trying to pass this path through in the CPATH environment variable using --setup-env-vars. I'm not sure that would work, but in any case I get an error message that was unexpected:

distutils.errors.DistutilsArgError: option --setup-env-vars not recognized.

The full session is copied below.

Thanks,
Tom

$ py2dsc --force-buildsystem=False --setup-env-vars scipy-0.7.2.tar.gz

Traceback (most recent call last):
File "/usr/bin/py2dsc", line 157, in
main()
File "/usr/bin/py2dsc", line 154, in main
sys.exit(runit())
File "/usr/bin/py2dsc", line 29, in runit
args = parser.getopt(object=optobj)
File "/usr/lib/python2.5/distutils/fancy_getopt.py", line 260, in getopt
raise DistutilsArgError, msg
distutils.errors.DistutilsArgError: option --setup-env-vars not recognized

[patch] stdeb fails if there is a space in current directory name

The following is not-yet-tested:

HACK yukyuk:~/playground/stdeb/gw/stdeb$ git diff
diff --git a/stdeb/util.py b/stdeb/util.py
index 419961c..a38f22c 100644
--- a/stdeb/util.py
+++ b/stdeb/util.py
@@ -946,13 +946,13 @@ install-python%%:
if test "$" = "2.5" -o "$" = "2.4"; then
%(setup_env_vars)spython$* -c "import setuptools,sys;f='setup.py';sys.argv[0]=f;execfile(f,{'file':f,'name':'main'})" install
--no-compile --single-version-externally-managed \

  •        --root $(CURDIR)/debian/${PACKAGE_NAME}; \
    
  •        --root \"$(CURDIR)/debian/${PACKAGE_NAME}\"; \
       mv debian/${PACKAGE_NAME}/usr/lib/python$_/site-packages/_.egg-info \
             debian/${PACKAGE_NAME}/usr/lib/python$_/site-packages/${EGG_MODULE_NAME}.egg-info; \
     else \
       %(setup_env_vars)spython$_ -c "import setuptools,sys;f='setup.py';sys.argv[0]=f;execfile(f,{'**file**':f,'**name**':'**main**'})" install \
         --no-compile --single-version-externally-managed --install-layout=deb \
    
  •        --root $(CURDIR)/debian/${PACKAGE_NAME}; \
    
  •        --root \"$(CURDIR)/debian/${PACKAGE_NAME}\"; \
       mv debian/${PACKAGE_NAME}/usr/lib/python$_/dist-packages/_.egg-info \
             debian/${PACKAGE_NAME}/usr/lib/python$*/dist-packages/${EGG_MODULE_NAME}.egg-info; \
    fi
    

egg_info screws with the version string

if your version has a non-alphanumeric character such as "+" in it (as many debian packages do, eg 1.4.4+svn20091011), running the egg_info command screws with it and changes the "+" into a "-", causing the build to fail.

The offending code in setuptools/command/egg_info.py:
self.distribution.metadata.version = self.egg_version

We can get around this in stdeb/command/sdist_dsc.py:

+        oldver = self.distribution.metadata.version
         self.run_command('egg_info')
+        self.distribution.metadata.version = oldver

but this is kind of ugly. I haven't noticed any bad effects, though - the .deb still ends up with the correct (unaltered) version.

"Unknown option: buildsystem" error

I have installed stdeb 0.6.0 from sources on a debian Lenny system. When running the provided test.sh, I get an "Unknown option: buildsystem" error after "dh clean", followed by an abort. The full output of test.sh is given below.

Thanks for your efforts on stdeb. I hope to use it to build numpy and friends for a few of the different architectures I need.

Thanks,
Tom

$ ./test.sh
--2010-06-26 12:00:44-- http://astraw.com/misc_files/simplepack-8.0.1+r23437.tar.gz
Resolving astraw.com... 69.163.194.242
Connecting to astraw.com|69.163.194.242|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 518 [application/x-tar]
Saving to: `simplepack-8.0.1+r23437.tar.gz'

100%[======================================>] 518 --.-K/s in 0s

2010-06-26 12:00:45 (18.8 MB/s) - `simplepack-8.0.1+r23437.tar.gz' saved [518/518]

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
running the following command in directory: deb_dist/tmp_py2dsc/simplepack-8.0.1+r23437
/usr/bin/python setup.py --command-packages stdeb.command sdist_dsc --dist-dir=/home/tomduck/install/archive/stdeb-0.6.0/deb_dist --use-premade-distfile=/home/tomduck/install/archive/stdeb-0.6.0/simplepack-8.0.1+r23437.tar.gz
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
running sdist_dsc
CALLING dpkg-source -b simplepack-8.0.1+r23437 simplepack_8.0.1+r23437.orig.tar.gz (in dir /home/tomduck/install/archive/stdeb-0.6.0/deb_dist)
dpkg-source: info: using source format `1.0'
dpkg-source: info: building simplepack using existing simplepack_8.0.1+r23437.orig.tar.gz
dpkg-source: info: building simplepack in simplepack_8.0.1+r23437-1.diff.gz
dpkg-source: info: building simplepack in simplepack_8.0.1+r23437-1.dsc
dpkg-source: warning: extracting unsigned source package (simplepack_8.0.1+r23437-1.dsc)
dpkg-source: extracting simplepack in simplepack-8.0.1+r23437
dpkg-source: info: unpacking simplepack_8.0.1+r23437.orig.tar.gz
dpkg-source: info: applying simplepack_8.0.1+r23437-1.diff.gz
dpkg-buildpackage: set CFLAGS to default value: -g -O2
dpkg-buildpackage: set CPPFLAGS to default value:
dpkg-buildpackage: set LDFLAGS to default value:
dpkg-buildpackage: set FFLAGS to default value: -g -O2
dpkg-buildpackage: set CXXFLAGS to default value: -g -O2
dpkg-buildpackage: source package simplepack
dpkg-buildpackage: source version 8.0.1+r23437-1
dpkg-buildpackage: source changed by unknown unknown@unknown
dpkg-buildpackage: host architecture i386
fakeroot debian/rules clean
dh clean
Unknown option: buildsystem
dh: unknown option; aborting
make: *** [clean] Error 1
dpkg-buildpackage: failure: fakeroot debian/rules clean gave error exit status 2

Py2dsc doesn't find the command

mattions@triton:dist(master)$ py2dsc neuronvisio-0.4.0.tar.gz 
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
running the following command in directory: deb_dist/tmp_py2dsc/neuronvisio-0.4.0
/usr/bin/python setup.py --command-packages stdeb.command sdist_dsc --dist-dir=/home/mattions/Work/model/MSN/Neuronvisio/dist/deb_dist --use-premade-distfile=/home/mattions/Work/model/MSN/Neuronvisio/dist/neuronvisio-0.4.0.tar.gz
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Usage: setup.py [global options] taskname [task options] [taskname [taskoptions]]

setup.py: error: no such option: --command-packages
ERROR running: /usr/bin/python setup.py --command-packages stdeb.command sdist_dsc --dist-dir=/home/mattions/Work/model/MSN/Neuronvisio/dist/deb_dist --use-premade-distfile=/home/mattions/Work/model/MSN/Neuronvisio/dist/neuronvisio-0.4.0.tar.gz
ERROR in deb_dist/tmp_py2dsc/neuronvisio-0.4.0

create utility like easy_install

I think it would be straightforward to write an automatic install command for Debian/Ubuntu which would

  1. grab the upstream Python source distribution, (e.g. from PyPI)
  2. convert it to a debian source package,
  3. then compile it to a .deb and
  4. then install it using "dpkg -i".

Parts 2 and 3 are already done and parts 1 and 4 don't seem particularly difficult.

default python for setuptools entry_points console_scripts is not correct

Building a package that makes use of setuptools entry_points console_scripts results in the wrong Python version being used by default.

I think what is happening is that sub setup_py in Debian/Debhelper/Buildsystem/python_distutils.pm calls setup.py for several versions of Python, but the order in which they're called is not such that the default Python is always last. setuptools then modifies the shebang line, and whichever Python gets run last overwrites the file in /usr/bin/my_script. One possible fix would be to modify python_distutils.pm to call the default Python version last.

One possible fix would be to tell setuptools not to create a version-specific shebang line.

Unknown option: buildsystem DH_OPTIONS

Lots of warning like these show up when running under Ubuntu 10.10:

dh_install -i
Unknown option: buildsystem
dh_install: warning: ignored unknown options in DH_OPTIONS
dh_installdocs -i
Unknown option: buildsystem
dh_installdocs: warning: ignored unknown options in DH_OPTIONS
dh_installchangelogs -i
Unknown option: buildsystem
dh_installchangelogs: warning: ignored unknown options in DH_OPTIONS
dh_installexamples -i
Unknown option: buildsystem
dh_installexamples: warning: ignored unknown options in DH_OPTIONS
dh_installman -i
Unknown option: buildsystem
dh_installman: warning: ignored unknown options in DH_OPTIONS
dh_installcatalogs -i
Unknown option: buildsystem
dh_installcatalogs: warning: ignored unknown options in DH_OPTIONS
dh_installcron -i

Please comment. Thanks

call any registered install_data command during postinst

Sometimes packages need to perform some kind of post-install step. The distutils way of doing this seems to be by registering an install_data command (see this example). We could generate a debian/.postinst script that calls this command.

For now, the workaroud is to do it manually:

Do "python setup.py debianize" to create a debian directory with stdeb. (You need stdeb in your --command-packages to do this step.) Then create a file in debian/<python-packagename>.postinst which will be run when the package is installed. (Unfortunately, this would not be carried in the plain distutils source, but only in the debian/ directory. Which is why I filed this ticket.)

I want to data files to be put into /usr/share on Debian, and to be found there by pkg_resources.

I'm getting pycryptopp integrated into Debian. It would be ideal if I could specify that the test vector data files in pycryptopp are "data_files" in the setup.py, and then the resulting .deb would write them into filenames e.g. "/usr/share/pycryptopp/testvectors/SHA256LongMsg.txt", and then a call like "pkg_resources.resource_string('pycryptopp', 'testvectors/SHA256LongMsg.txt')" would import them.

Dave Peterson had an idea of how to accomplish this in a general way that could be applied to other projects than just pycryptopp. I'll now ask him to explain his idea here. :-)

stdeb seems to be adding too many Python dependencies

Built on a recent Ubuntu, stdeb is adding a false dependency on Python 2.7 to a build I am running, even when I override it via XS-Python-Version:

Depends: python2.7 | python2.6, python (>= 2.7.1-0ubuntu2), python (<< 2.8)

How do I tell stdeb not to include the system version of Python as a dependency?

'Description' gets overwritten by last option

Hi,

line 612 in the 0.5.0 release of stdeb/util.py

"for longopt, shortopt, description in stdeb_cfg_options:"

causes wrong descriptions in the generated debian/control because "description" shadows the previously given description-parameter.

In my case i always get the standard text of the udev-rules field as description in the final debian package.

  •        for longopt, shortopt, description in stdeb_cfg_options:
    
  •        for longopt, shortopt, desc in stdeb_cfg_options:
    

solved this for me.

Support config option "Section"

Not all python packages should go into section Python. See e.g. "anki" which goes do "misc". Please consider supporting another config option "Section" to manually set a section.

Specifying XS-Python-Version result in X-Python-Version (and the wrong dependency of the Debian package)

I ran into a problem with stdeb and X-Python-Version. In the stdep.cfg file I specified:
XS-Python-Version: >= 2.6

The resulting debian/control file contains X-Python-Version (without the S). I read that this is the recommended key according to the Debian Python policy. But when running python bdist_deb with Python 2.7 the resulting Debian package will depend on Python 2.7 which is not what I wanted to achieve.

This happens on an Ubuntu 12.04 machine with the Debian package python-stdeb 0.6.0+20100620-2build1. This version has the following changeset 363fa49 included.
When installing stdeb via pip the problem does not appear. After checking the sources stdep from pip is a bit older version and does not contain the above mentioned changeset. Without that change the key XS-Python-Version is preserved and with that the resulting Debian package has the correct dependency.

add distutils command entry point

While it's certainly workable to have to add --command-packages=stdeb.command or hack your ~/.pydistutls.cfg file, I think it does a bit of a disservice to users. Let's make it really easy for them to run stdeb commands by adding an entry point to the setup.py to automatically get stdeb commands once the package is installed.

option --stdeb-patch-file not recognized

Hi,

This is probably related to a similar issue I reported earlier today, using stdeb 0.6.0 under debian/lenny. The --stdeb-patch-file option is reported as unrecognized. The full session is reported below.

Cheers,
Tom

$ py2dsc --force-buildsystem=False --stdeb-patch-file=scipy-0.7.2.diff scipy-0.7.2.tar.gz

Traceback (most recent call last):
File "/usr/bin/py2dsc", line 157, in
main()
File "/usr/bin/py2dsc", line 154, in main
sys.exit(runit())
File "/usr/bin/py2dsc", line 29, in runit
args = parser.getopt(object=optobj)
File "/usr/lib/python2.5/distutils/fancy_getopt.py", line 260, in getopt
raise DistutilsArgError, msg
distutils.errors.DistutilsArgError: option --stdeb-patch-file not recognized

What happend to Distribution?

I might be wrong, but it seems that option 'Distribution' worked some time ago. I could set it to Karmic and get the correct changelog header. It now seems Suite is taking on this role.

If the former ever work, and it's not already mentioned in the changelogs maybe it should go there.

backward compatibility issues

We need to handle backward compatibility issues.

  1. We currently have depend in generated binary packages on python-central because if a package was previously generated with stdeb < 0.4 and then upgraded to stdeb 0.4, it will be broken unless the .preinst script installed with 0.4 is run. This script depends on python-central. Ideally, we wouldn't package the .preinst script or include python-central in the depends. Perhaps we add an option "--pycentral-backwards-compatibility=False" that turns this off?

  2. The fix to #10 causes stdeb to limit the available Python to just one. Now that Debian bug 548392 is fixed, we should initially optionally allow the workaround to be disabled. In the future this option will be the default. Perhaps a "--workaround-548392" option argument? It would initially default to True, and later default to False. If the default True was used (as opposed to giving True on the command line), it could emit a warning that it would be changed in the future.

Perhaps a "--no-backwards-compatibility" flag that adjusts both these options?

Post install hooks?

How can I add post install hooks?

I have my package building using:
python setup.py --command-packages=stdeb.command bdist_deb

What I want to do is run my post install script to add a launcher. I tried editing the postinst file generated by the debhelper in my
deb_dist/program/ directory and tried running:
dpkg-buildpackage -rfakeroot -uc -us

But when I open the .deb file with the archive manager and look at the postinst file it doesn't have the code I added.

Is there a way to add post install hooks/script to the stdeb.cfg file?

Python 3 Support

Hi,

I want to build a debian package for upload to Ubuntu PPA. The upstream source is Ephem which is an astronomy package comprising Python and C.

Using stdeb, I can build a source (and binary) debian package of the Python 2 version (http://pypi.python.org/pypi/pyephem) - the source package is then uploaded to the PPA as the PPA does the build. However I want a Python 3 version and when I run the terminal command

python3 setup.py --command-packages=stdeb.command sdist_dsc

I get

usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
   or: setup.py --help [cmd1 cmd2 ...]
   or: setup.py --help-commands
   or: setup.py cmd --help

error: invalid command 'sdist_dsc'

So...can I use Python 3 and stdeb to make a DEB source/binary package (with C extensions)?

Thanks in advance,

Bernard.

Incorrect handling of symlinks

In my project I have a bin/ directory which symlinks to a python script elsewhere. If I run py2dsc, it fails with:

dpkg-source: error: new version is plain file
dpkg-source: error: old version is symlink to ../dtella.py

because for some reason, the symlink is not preserved at this stage. the symlink exists in all the other copies of the project in deb_dist, including the generated tar.gz (which seems to be the preceding step to this)

conflict/replace/provide all packages built from original debian source

Stdeb already has machinery to allow discovery of the original Debian/Ubuntu package for a given python package distribution. This should be carefully checked to allow graceful upgrades from a Debian/Ubuntu distributed version.

Note some Debian sources (e.g. for numpy) generate multiple debian packages. The stdeb generated version should probably conflict/replace/provide all of these.

patch: stop if a requirement can't be satisfied

I guess if you don't want it to stop then you should use the "--ignore-install-requires" option?

diff --git a/stdeb/util.py b/stdeb/util.py
index adfea5b..3ef0698 100644
--- a/stdeb/util.py
+++ b/stdeb/util.py
@@ -22,6 +22,7 @@ __all__ = ['DebianInfo','build_dsc','expand_tarball','expand_zip',

 import exceptions
 class CalledProcessError(exceptions.Exception): pass
+class CantSatisfyRequirement(exceptions.Exception): pass

 def check_call(*popenargs, **kwargs):
     retcode = subprocess.call(*popenargs, **kwargs)
@@ -132,7 +133,12 @@ def get_date_822():
     result = cmd.stdout.read().strip()
     return result

-def get_deb_depends_from_setuptools_requires(requirements):
+def get_deb_depends_from_setuptools_requires(requirements, exception_on_failure=True):
+    """
+    If exception_on_failure then raise an exception if there is a setuptools
+    requirement that you can't figure out how to satisfy.  Else, just log a
+    warning.
+    """
     depends = [] # This will be the return value from this function.

     requirements = list(pkg_resources.parse_requirements(requirements))
@@ -212,9 +218,14 @@ def get_deb_depends_from_setuptools_requires(requirements):
                          "\"%s\" -- ignoring."
                          % (', '.join(debs), req.project_name, req))
         if not gooddebs:
-            log.warn("I found no Debian package which provides the required "
-                     "Python package \"%s\" with version requirements "
-                     "\"%s\"."% (req.project_name, req.specs))
+            if exception_on_failure:
+                raise CantSatisfyRequirement("I found no Debian package which "
+                    "provides the required Python package \"%s\" with version "
+                    "requirements \"%s\"." % (req.project_name, req.specs), req)
+            else:
+                log.warn("I found no Debian package which provides the required "
+                         "Python package \"%s\" with version requirements "
+                         "\"%s\"."% (req.project_name, req.specs))
         elif len(gooddebs) == 1:
             log.info("I found a Debian package which provides the require "
                      "Python package.  Python package: \"%s\", "

Paver throw an exception complaining about a description which is missing from sdist_dsc

I use paver
http://www.blueskyonmars.com/projects/paver/

I installed stdeb and I get this exception:

Captured Task Output:
---------------------

---> paver.tasks.help
Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py", line 164, in _run_task
    return do_task()
  File "/usr/local/lib/python2.6/dist-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py", line 161, in do_task
    return func(**kw)
  File "/usr/local/lib/python2.6/dist-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py", line 546, in help
    print(fmt % (task.shortname, task.description))
  File "/usr/local/lib/python2.6/dist-packages/Paver-1.0.1-py2.6.egg/paver/setuputils.py", line 150, in description
    return self.command_class.description
AttributeError: class sdist_dsc has no attribute 'description'

Something badly foobared with bdist_deb

Currently, the master makes very broken diff.gz files. For my package, which is called bluepy, I get a duplicate source folder in deb_dist, i.e.: deb_dist/bluepy-0.2.0-dev/bluepy-0.2.0-dev/ This is also reflected in the bluepy_0.2.0-dev-1.diff.gz which is almost the same size as bluepy_0.2.0-dev.orig.tar.gz since it introduces a complete copy of the original sources.

Debian package missing man, mime files

Running this following setup.py:

https://github.com/gliptak/webilder/blob/master/setup.py
https://github.com/gliptak/webilder/blob/master/stdeb.cfg

creates a deb file, which does not contain several files (like man pages, mime) installed using setup.py:

71,79d66
< /usr/share/mime
< /usr/share/mime/packages
< /usr/share/mime/packages/webilder.xml
< /usr/share/man
< /usr/share/man/man1
< /usr/share/man/man1/webilder_desktop.1.gz
< /usr/share/man/man1/webilder_applet.1.gz
< /usr/share/man/man1/webilder_downloader.1.gz
< /usr/share/man/man1/wbz_handler.1.gz
81,83d67
< /usr/lib/mime
< /usr/lib/mime/packages
< /usr/lib/mime/packages/webilder

Could you suggest modifications to the setup allowing those above files to be included in the deb package? Thanks

Empty string as data_files first parameter generates errors.

In my setup.py:

py_modules = ['src/prog'],
data_files=['', ['src/data.yml']],

The setup.py script that I wrote works fine with

python setup.py sdist

(the tar.gz that is being generated has both my module and data file in
the same directory) but it throws errors when I run:

python setup.py --command-packages=stdeb.command bdist_deb

specifically it says:

warning: install_data: setup script did not provide a directory for '' -- installing right in
'/home/<mydirectory>/debian/python-<myapplicationname>/usr'
error: can't copy '': doesn't exist or not a regular file

so I believe stdeb is simply unable to understand that the empty string
means "put the data file together with the module", the way the regular
distutils can.

Am I right or did I misunderstand anything?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.