[Distutils] stdeb bug?

Mac Ryan quasipedia at gmail.com
Mon Aug 22 14:21:30 CEST 2011

After having wasted some more hours in trying to understand why I can't
package data_files in the same directory of the python modules (see my
previous post to the ML) I begin to believe I might have hit a bug in

In fact 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
	error: can't copy '': doesn't exist or not a regular file

in my setup.py:

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

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? Any workaround to suggest?

Thank you in advance,

More information about the Distutils-SIG mailing list