[Distutils] stdeb vs dependencies?

K. Richard Pixley rich at noir.com
Wed Feb 3 01:47:07 CET 2010


Andrew Straw wrote:
>> What I'm seeing with stdeb-0.5.1 is that no dependencies are declared
>> at all, but instead, I'm seeing unresolved macro references to
>> ${python:Depends}.
>>     
> What exactly is the error? Can you post the traceback or other error?
> python-support should resolve this reference at .deb build time.
I trimmed a bit of cruft from the middle.

--rich

. tg2.1b1-dev/bin/activate && cd ui && python setup.py bdist_deb
running bdist_deb
running sdist_dsc
running egg_info
writing requirements to ui.egg-info/requires.txt
writing ui.egg-info/PKG-INFO
writing top-level names to ui.egg-info/top_level.txt
writing dependency_links to ui.egg-info/dependency_links.txt
writing entry points to ui.egg-info/entry_points.txt
writing paster_plugins to ui.egg-info/paster_plugins.txt
reading manifest template 'MANIFEST.in'
writing manifest file 'ui.egg-info/SOURCES.txt'
I found Debian packages "python-turbogears2" which provides Python 
package "TurboGears2" which does not satisfy our version requirements: 
"TurboGears2>=2.1a1" -- ignoring.
I found no Debian package which provides the required Python package 
"TurboGears2" with version requirements "[('>=', '2.1a1')]".
I found a Debian package which provides the require Python package.  
Python package: "Babel", Debian package: "python-pybabel";  adding 
Depends specifications for the following version(s): "[('>=', '0.9.4')]"
I found a Debian package which provides the require Python package.  
Python package: "zope.sqlalchemy", Debian package: 
"python-zope.sqlalchemy";  adding Depends specifications for the 
following version(s): "[('>=', '0.4')]"
I found a Debian package which provides the require Python package.  
Python package: "repoze.tm2", Debian package: "python-repoze.tm2";  
adding Depends specifications for the following version(s): "[('>=', 
'1.0a4')]"
I found no Debian package which provides the required Python package 
"repoze.what-quickstart" with version requirements "[('>=', '1.0')]".
I found Debian packages "python-tgext.admin" which provides Python 
package "tgext.admin" which does not satisfy our version requirements: 
"tgext.admin>=0.3.3" -- ignoring.
I found no Debian package which provides the required Python package 
"tgext.admin" with version requirements "[('>=', '0.3.3')]".
CALLING dpkg-source -b ui-0.1dev-r254369 ui_0.1dev-r254369.orig.tar.gz 
(in dir deb_dist)
dpkg-source: info: using source format `1.0'
dpkg-source: info: building ui using existing ui_0.1dev-r254369.orig.tar.gz
dpkg-source: info: building ui in ui_0.1dev-r254369-1.diff.gz
dpkg-source: info: building ui in ui_0.1dev-r254369-1.dsc
dpkg-source: warning: extracting unsigned source package 
(ui_0.1dev-r254369-1.dsc)
dpkg-source: info: extracting ui in ui-0.1dev-r254369
dpkg-source: info: unpacking ui_0.1dev-r254369.orig.tar.gz
dpkg-source: info: applying ui_0.1dev-r254369-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: -Wl,-Bsymbolic-functions
dpkg-buildpackage: set FFLAGS to default value: -g -O2
dpkg-buildpackage: set CXXFLAGS to default value: -g -O2
dpkg-buildpackage: source package ui
dpkg-buildpackage: source version 0.1dev-r254369-1
dpkg-buildpackage: source changed by Rich Pixley <rich.pixley at palm.com>
dpkg-buildpackage: host architecture amd64
 fakeroot debian/rules clean
make[1]: Entering directory 
`/home/rich/projects/v4/ui/deb_dist/ui-0.1dev-r254369'
dh clean
   dh_testdir
   dh_auto_clean
running clean
'build/lib.linux-x86_64-2.6' does not exist -- can't clean it
'build/bdist.linux-x86_64' does not exist -- can't clean it
'build/scripts-2.6' does not exist -- can't clean it
   dh_clean
make[1]: Leaving directory 
`/home/rich/projects/v4/ui/deb_dist/ui-0.1dev-r254369'
 debian/rules build
make[1]: Entering directory 
`/home/rich/projects/v4/ui/deb_dist/ui-0.1dev-r254369'
dh build
   dh_testdir
   dh_auto_configure
   dh_auto_build
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.6
creating build/lib.linux-x86_64-2.6/ui
copying ui/__init__.py -> build/lib.linux-x86_64-2.6/ui

[...]

copying ui/config/deployment.ini_tmpl -> 
build/lib.linux-x86_64-2.6/ui/config
copying ui/controllers/controller.template -> 
build/lib.linux-x86_64-2.6/ui/controllers
   dh_auto_test
make[1]: Leaving directory 
`/home/rich/projects/v4/ui/deb_dist/ui-0.1dev-r254369'
 fakeroot debian/rules binary
make[1]: Entering directory 
`/home/rich/projects/v4/ui/deb_dist/ui-0.1dev-r254369'
dh binary
   dh_testroot
   dh_prep
   dh_installdirs
   dh_auto_install
running install
running build
running build_py
running egg_info
writing requirements to ui.egg-info/requires.txt
writing ui.egg-info/PKG-INFO
writing top-level names to ui.egg-info/top_level.txt
writing dependency_links to ui.egg-info/dependency_links.txt
writing entry points to ui.egg-info/entry_points.txt
writing paster_plugins to ui.egg-info/paster_plugins.txt
reading manifest file 'ui.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'ui.egg-info/SOURCES.txt'
running install_lib
creating 
/home/rich/projects/v4/ui/deb_dist/ui-0.1dev-r254369/debian/python-ui/home
creating 
/home/rich/projects/v4/ui/deb_dist/ui-0.1dev-r254369/debian/python-ui/home/rich
creating 
/home/rich/projects/v4/ui/deb_dist/ui-0.1dev-r254369/debian/python-ui/home/rich/projects
creating 
/home/rich/projects/v4/ui/deb_dist/ui-0.1dev-r254369/debian/python-ui/home/rich/projects/v4

[...]

   dh_makeshlibs
   dh_shlibdeps
   dh_installdeb
   dh_gencontrol
dpkg-gencontrol: warning: unknown substitution variable ${python:Provides}
dpkg-gencontrol: warning: unknown substitution variable ${python:Depends}
dpkg-gencontrol: warning: unknown substitution variable ${python:Provides}
dpkg-gencontrol: warning: unknown substitution variable ${python:Versions}
   dh_md5sums
   dh_builddeb
dpkg-deb: building package `python-ui' in 
`../python-ui_0.1dev-r254369-1_all.deb'.
make[1]: Leaving directory 
`/home/rich/projects/v4/ui/deb_dist/ui-0.1dev-r254369'
 dpkg-genchanges -b >../ui_0.1dev-r254369-1_amd64.changes
dpkg-genchanges: binary-only upload - not including any source code
dpkg-buildpackage: binary only upload (no source included)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20100202/28e86def/attachment.htm>


More information about the Distutils-SIG mailing list