Package: python-setuptools
Version: 20.1.1-1
Severity: important

It seems that, despite the docs clearly indicating that this should work:

https://docs.python.org/2/distutils/setupscript.html#installing-additional-files

The syntax:

data_files=[('bitmaps', ['bm/b1.gif', 'bm/b2.gif'])],

results in b1.gif and b2.gif being silently ignored whereas

data_files=[('config', ['cfg/data.cfg'])],

works.

This was seen with lava-server and lava-dispatcher. lava-server has the more 
complex
data_files listing:

https://git.linaro.org/lava/lava-server.git/blob/HEAD:/setup.py

    data_files=[
        ('/etc/lava-server',
         ['etc/settings.conf',
          'etc/uwsgi.ini',
          'etc/debug.wsgi',
          'etc/lava-server.wsgi',
          'etc/uwsgi.reload',
          'etc/env.yaml']),
        ('/etc/apache2/sites-available',
         ['etc/lava-server.conf']),

These files suddenly went missing from the package (and are missing in 2016.2),
necessitating these changes in the packaging:

https://github.com/Linaro/pkg-lava-server/commit/e9549b77efc8891946149c43cdc544ce94845017
https://github.com/Linaro/pkg-lava-server/commit/dc6acf7991353fa54ec75dabedd9d6a08de6cdf1
https://github.com/Linaro/pkg-lava-server/commit/fc5398d03e4d6333301b4d39402bd45aa2f2fb83

Yet, lava-dispatcher has this block in setup.py:

    data_files=[
        ('/usr/share/lava-dispatcher/',
            ['etc/tftpd-hpa']),
        ('/etc/exports.d',
            ['etc/lava-dispatcher-nfs.exports']),
        ('/etc/modprobe.d',
            ['etc/lava-options.conf']),
        ('/etc/modules-load.d/',
            ['etc/lava-modules.conf']),
        ('/etc/init.d/',
            ['etc/lava-slave.init']),

... and these files were all preserved in the package and exist currently:

https://packages.debian.org/sid/amd64/lava-dispatcher/filelist

despite no such changes being required in the .install file (no changes in 2 
years):

https://github.com/Linaro/pkg-lava-dispatcher/blob/master/debian/lava-dispatcher.install

In each case, the rule to install the data_files into the appropriate locations 
is:
python setup.py install --root=$(CURDIR)/debian/lava-dispatcher/ 
--install-layout=deb
(s/lava-dispatcher/lava-server/ for the lava-server package.)


-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 
'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386, armhf, arm64

Kernel: Linux 4.3.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages python-setuptools depends on:
ii  python-pkg-resources  20.1.1-1
pn  python:any            <none>

python-setuptools recommends no packages.

Versions of packages python-setuptools suggests:
pn  python-setuptools-doc  <none>

-- no debconf information

Reply via email to