Date: Sun, 02 May 2004 20:31:52 -0500 From: Jeremy Messenger <mezz7@cox.net> To: freebsd-python@FreeBSD.org Subject: Re: Is it bug in Straw or Python? Message-ID: <opr7eg7exq8ckrg5@smtp.central.cox.net> In-Reply-To: <opr7eg0tql8ckrg5@smtp.central.cox.net> References: <opr7eg0tql8ckrg5@smtp.central.cox.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?opr7eg7exq8ckrg5>