Andrew Straw wrote: [snip]
> Hmm, this is strange. Apparently pycentral isn't interested in > Python2.3, and yet it does get called. It's possible there's a pycentral > bug, but I'm not sure. Can you post the contents of your > deb-dst/bzr-0.16.0/debian/rules file? Hi, It's at the end of the mail. > I don't have Python2.3 installed, > so I'm flying blindly here... > >> >>> FWIW, I built a version of python-bzr_0.16.0-1_all.deb using >>> more-or-less the commands you issued just now on Ubuntu Edgy. Upon >>> installing it, all went well, and I didn't get the issues you're having. >>> >>> Also, I just added a section "A complete example" to the webpage >>> http://stdeb.python-hosting.com/ using your package as an example. This >>> works fine on my system. >>> >> >> Yes, that's helpful. Thank you! >> >> I have a couple of questions; if you have time, maybe you could add >> information about this to your on-line example?: >> >> 1) bzr is, I suppose, a standalone program rather than a python module. >> It would be proper to name the package "bzr", "bzr-local", "bzr-mybuild" >> or something. I think "bzr" would be best, or perhaps that it at least >> provides bzr. >> What would be the best way to achieve this with stdeb? >> > Hmm, I'll have to add this. This shouldn't hard. >> 2) Would it be possible to get the source documentation under doc/ >> placed in /usr/share/doc/package-name (e.g. /usr/share/doc/python-bzr)? >> > Again, this is another feature request -- I'll have to add support for > it. Unfortunately, there's not a universal standard for Python > documentation (separate from the source code), so this one will require > some thinking about. >> 3) How to shift the installation from /usr to /usr/local? (à la >> --prefix=/usr/local) >> > Hmm, another good question... Does pycentral actually support that? I > guess it does. OK, I'll consider this another feature request! :) > > I'll send an email when I've implemented any or all of these features... That sounds great! Best regards Tore Rules file: #!/usr/bin/make -f # This file was automatically generated by stdeb 0.2.a1 at # Wed, 9 May 2007 22:35:31 +0200 PACKAGE_NAME=python-bzr MODULE_NAME=bzr DEB_UPSTREAM_VERSION=0.16.0 PYVERS=$(shell pyversions -vr) build: build-stamp build-stamp: $(PYVERS:%=build-python%) touch $@ build-python%: # Force setuptools, but reset sys.argv[0] to 'setup.py' because setup.py files expect that. python$* -c "import setuptools,sys;f='setup.py';sys.argv[0]=f;execfile(f,{'__file__':f,'__name__':'__main__'})" build touch $@ clean: dh_testdir dh_testroot rm -f *-stamp rm -rf dist build -find -name '*.py[co]' | xargs rm -f # find . -name *.pyc -exec rm {} \; dh_clean install: build install-prereq $(PYVERS:%=install-python%) install-prereq: dh_testdir dh_testroot dh_clean -k install-python%: # Force setuptools, but reset sys.argv[0] to 'setup.py' because setup.py files expect that. python$* -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} mv debian/${PACKAGE_NAME}/usr/lib/python$*/site-packages/${MODULE_NAME}-${DEB_UPSTREAM_VERSION}-py$*.egg-info debian/${PACKAGE_NAME}/usr/lib/python$*/site-packages/${MODULE_NAME}.egg-info binary-arch: binary-indep: build install dh_testdir -i dh_testroot -i dh_pycentral -i dh_installdocs -i dh_installdirs -i dh_installexamples -i dh_strip -i dh_compress -i -X.py dh_fixperms -i : # Replace all '#!' calls to python with $(PYTHON) : # and make them executable for i in \ `find debian/python-bzr/usr/bin -type f` \ `find debian/python-bzr/usr/lib -type f`; \ do \ case "$$i" in *-[0-9].[0-9]) continue; esac; \ sed '1s,#!.*python[^ ]*\(.*\),#! /usr/bin/python\1,' \ $$i > $$i.temp; \ if cmp --quiet $$i $$i.temp; then \ rm -f $$i.temp; \ else \ mv -f $$i.temp $$i; \ chmod 755 $$i; \ echo "fixed interpreter: $$i"; \ fi; \ done dh_installdeb -i dh_gencontrol -i dh_md5sums -i dh_builddeb -i binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install configure _______________________________________________ Distutils-SIG maillist - [email protected] http://mail.python.org/mailman/listinfo/distutils-sig
