Hi,
I tried your instructions on my Ubuntu 10.04 machine and got the following:
$ sudo python setup.py --command-packages=stdeb.command bdist_deb
{'scripts': ['src/pythonturtle']}
running bdist_deb
running sdist_dsc
running egg_info
creating PythonTurtle.egg-info
writing requirements to PythonTurtle.egg-info/requires.txt
writing PythonTurtle.egg-info/PKG-INFO
writing top-level names to PythonTurtle.egg-info/top_level.txt
writing dependency_links to PythonTurtle.egg-info/dependency_links.txt
writing manifest file 'PythonTurtle.egg-info/SOURCES.txt'
reading manifest file 'PythonTurtle.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'PythonTurtle.egg-info/SOURCES.txt'
E: The cache directory is empty. You need to run 'apt-file update' first.
ERROR running: apt-file search --ignore-case --regexp (/(wx|psyco)(?:-[^/]+)?(?:-py[0-9]\.[0-9.]+)?\.egg-info)
Traceback (most recent call last):
File "setup.py", line 117, in
setup( **options)
File "/usr/lib/python2.6/distutils/core.py", line 152, in setup
dist.run_commands()
File "/usr/lib/python2.6/distutils/dist.py", line 975, in run_commands
self.run_command(cmd)
File "/usr/lib/python2.6/distutils/dist.py", line 995, in run_command
cmd_obj.run()
File "/usr/lib/pymodules/python2.6/stdeb/command/bdist_deb.py", line 23, in run
self.run_command('sdist_dsc')
File "/usr/lib/python2.6/distutils/cmd.py", line 333, in run_command
self.distribution.run_command(command)
File "/usr/lib/python2.6/distutils/dist.py", line 995, in run_command
cmd_obj.run()
File "/usr/lib/pymodules/python2.6/stdeb/command/sdist_dsc.py", line 222, in run
sdist_dsc_command = self,
File "/usr/lib/pymodules/python2.6/stdeb/util.py", line 712, in __init__
install_requires))
File "/usr/lib/pymodules/python2.6/stdeb/util.py", line 281, in get_deb_depends_from_setuptools_requires
args))
RuntimeError: returncode 1 from subprocess ['apt-file', 'search', '--ignore-case', '--regexp', '(/(wx|psyco)(?:-[^/]+)?(?:-py[0-9]\\.[0-9.]+)?\\.egg-info)']
$