[Python-modules-team] Bug#546847: epsilon FTBFS with python 2.6

Jakub Wilk ubanus at users.sf.net
Sun Nov 15 14:01:23 UTC 2009


* Fabrice Coutadeur <fabricesp at ubuntu.com>, 2009-09-16, 05:16:
>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)

FWIW, you should not mix tabs and spaces. :)

-- 
Jakub Wilk
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/python-modules-team/attachments/20091115/72acd275/attachment.pgp>


More information about the Python-modules-team mailing list