From owner-freebsd-python@FreeBSD.ORG  Sun May  2 18:31:13 2004
Return-Path: <owner-freebsd-python@FreeBSD.ORG>
Delivered-To: freebsd-python@freebsd.org
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id B88D916A4CF
	for <freebsd-python@FreeBSD.org>;
	Sun,  2 May 2004 18:31:13 -0700 (PDT)
Received: from lakermmtao04.cox.net (lakermmtao04.cox.net [68.230.240.35])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 198EA43D45
	for <freebsd-python@FreeBSD.org>;
	Sun,  2 May 2004 18:31:13 -0700 (PDT)	(envelope-from mezz7@cox.net)
Received: from mezz.mezzweb.com ([68.103.32.140]) by lakermmtao04.cox.net
          (InterMail vM.6.01.03.02 201-2131-111-104-20040324) with ESMTP
          id <20040503013111.LJFO19546.lakermmtao04.cox.net@mezz.mezzweb.com>
          for <freebsd-python@FreeBSD.org>; Sun, 2 May 2004 21:31:11 -0400
Date: Sun, 02 May 2004 20:31:52 -0500
To: freebsd-python@FreeBSD.org
References: <opr7eg0tql8ckrg5@smtp.central.cox.net>
From: Jeremy Messenger <mezz7@cox.net>
Content-Type: text/plain; format=flowed; charset=iso-8859-1
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Message-ID: <opr7eg7exq8ckrg5@smtp.central.cox.net>
In-Reply-To: <opr7eg0tql8ckrg5@smtp.central.cox.net>
User-Agent: Opera7.23/Linux M2 build 518
Subject: Re: Is it bug in Straw or Python?
X-BeenThere: freebsd-python@freebsd.org
X-Mailman-Version: 2.1.1
Precedence: list
List-Id: FreeBSD-specific Python issues <freebsd-python.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-python>,
	<mailto:freebsd-python-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-python>
List-Post: <mailto:freebsd-python@freebsd.org>
List-Help: <mailto:freebsd-python-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-python>,
	<mailto:freebsd-python-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Mon, 03 May 2004 01:31:13 -0000

Oh, one more thing.. In case if anyone want to do the test w/ update of 
net/straw. I have the diff to update it to 0.23 and I am awaing for my 
mentor, adamw, to approve it.

http://people.freebsd.org/~mezz/adamw/straw.diff

Cheers,
Mezz

On Sun, 02 May 2004 20:27:55 -0500, Jeremy Messenger <mezz7@cox.net> wrote:

> Hello,
>
> I am sure, some of you might remember that net/straw has hit on Python 
> bug sometime ago. So, I am not sure if it's Straw or Python bug. The 
> update version (0.23, not in ports tree yet) of Straw will complain:
>
> =======================================
> creating /var/tmp/straw/etc/gconf/schemas
> copying data/straw.schemas -> /var/tmp/straw/etc/gconf/schemas
> running install_gconf
> error: Interrupted system call
> *** Error code 1
> =======================================
>
> It complains with and without '-c -O1' in PYDISTUTILS_INSTALLARGS. So, I 
> created a workaround for now like this:
>
> =======================================
> -      msg_sources      = translation_files(),
> +      msg_sources      = ['glade/strings.c'] 
> + glob.glob('src/lib/*.py'),
> =======================================
>
> It solves problem, since this is what has in the old version of Straw. 
> Here's what translation_files() that was added looks like in setup.py:
>
> =======================================
> def translation_files():
>      '''Files for translation...'''
>      potfile = './po/POTFILES.in'
>
>      if not os.path.exists(potfile):
>          sys.exit("No such file, '%s'. Please file a bug report.." % 
> potfile)
>
>      f = open(potfile)
>      files = []
>
>      for line in f:
>          # ignore comments and newline
>          if line.startswith('#') or line.startswith('\n'):
>              continue
>          else: files.append(line.strip())
>
>      f.close()
>      return files
> =======================================
>
> Attaching setup.py here in case if anyone want the full of it.
>
> P.S. CC me, I am not on this list. Thanks!
>
> Cheers,
> Mezz


-- 
mezz7@cox.net  -  mezz@FreeBSD.org
bsdforums.org 's moderator, mezz.