Is it bug in Straw or Python?
Jeremy Messenger
mezz7 at cox.net
Sun May 2 18:31:13 PDT 2004
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 at 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 at cox.net - mezz at FreeBSD.org
bsdforums.org 's moderator, mezz.
More information about the freebsd-python
mailing list