Package: epsilon Severity: wishlist Hi,
epsilon FTBFS with python 2.6, with the following error: .... Automatically determined setup() args: { 'package_data': { 'epsilon': []}, 'packages': [ 'epsilon', 'epsilon.test', 'epsilon.scripts', 'epsilon.hotfixes', 'build.lib.linux-i686-2.6.epsilon', 'build.lib.linux-i686-2.6.epsilon.test', 'build.lib.linux-i686-2.6.epsilon.scripts', 'build.lib.linux-i686-2.6.epsilon.hotfixes']} running build running build_py error: package directory 'build/lib/linux-i686-2/6/epsilon' does not exist make: *** [debian/python-module-stampdir/python-epsilon] Error 1 dpkg-buildpackage: error: /usr/bin/fakeroot debian/rules binary gave error exit status 2 This is because the epsilon/setuphelper.py script is detecting also the temporary build directory. Here is the patch to fix that: # patch the search routine to avoid detecting temporary build directory Index: epsilon-0.5.12/epsilon/setuphelper.py =================================================================== --- epsilon-0.5.12.orig/epsilon/setuphelper.py 2009-09-16 04:39:38.000000000 +0000 +++ epsilon-0.5.12/epsilon/setuphelper.py 2009-09-16 04:39:44.000000000 +0000 @@ -43,7 +43,8 @@ pkgName = dirpath[2:].replace('/', '.') if '__init__.py' in filenames: # The current directory is a Python package - packages.append(pkgName) + if 'build' not in dirpath: + packages.append(pkgName) elif 'plugins' in dirnames: # The current directory is for the Twisted plugin system pluginPackages.append(pkgName) After fixing this issue, there are still some parts to be fixed. Here are the proposed fixes: diff -u epsilon-0.5.12/debian/rules epsilon-0.5.12/debian/rules --- epsilon-0.5.12/debian/rules +++ epsilon-0.5.12/debian/rules @@ -11,7 +11,9 @@ - rm $(PKGDIR)/usr/lib/python*/site-packages/epsilon/release.py - rm $(PKGDIR)/usr/lib/python*/site-packages/epsilon/test/test_release.py - rm -r $(PKGDIR)/usr/lib/python*/site-packages/build + rm $(PKGDIR)/usr/lib/python*/*-packages/epsilon/release.py + rm $(PKGDIR)/usr/lib/python*/*-packages/epsilon/test/test_release.py ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS))) $(call cdbs_python_binary,python$(cdbs_python_compile_version)) debian/runtrial.py $(PKGDIR) epsilon endif mv $(PKGDIR)/usr/bin/benchmark $(PKGDIR)/usr/bin/epsilon-benchmark + +clean:: + rm -rf _trial_temp diff -u epsilon-0.5.12/debian/runtrial.py epsilon-0.5.12/debian/runtrial.py --- epsilon-0.5.12/debian/runtrial.py +++ epsilon-0.5.12/debian/runtrial.py @@ -9,6 +9,7 @@ _path = sys.path[:] sys.path[:] = [] addsitedir(join(root, site_packages[1:])) +addsitedir(join(root, 'usr/lib/python2.6/site-packages')) #for whatever reason cdbs still installs python modules in site-packages sys.path.extend(_path) from twisted.scripts.trial import run Thanks, Fabrice -- System Information: Debian Release: squeeze/sid APT prefers karmic-updates APT policy: (500, 'karmic-updates'), (500, 'karmic-security'), (500, 'karmic') Architecture: amd64 (x86_64) Kernel: Linux 2.6.28-15-generic (SMP w/2 CPU cores) Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Shell: /bin/sh linked to /bin/dash -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org