Re: [Pyobjc-dev] Unable to compile universal binary for non-leopard macs
Brought to you by:
ronaldoussoren
|
From: Ronald O. <ron...@ma...> - 2008-01-30 19:52:21
|
On 30 Jan, 2008, at 4:24, Bruce Lichtenstein wrote:
> Sorry to flood the list with my comments...
>
>
> I fixed the sh /usr/bin/nidump problem for installing via a binary
> package by re-downloading the source code for the bdist_mpkg package
> and modifying the tools.py code as follows:
"easy_install bdist_mpkg==dev" should also work. Bob commited a fix
for this a while back, I commited a better fix more recently (using
the 'grp' module instead of running a commandline tool).
Ronald
>
>
> in the get_gid method
>
> replace:
> for line in os.popen('/usr/bin/nidump group .'):
> fields = line.split(':')
> if len(fields) >= 3:
> _cache[fields[0]] = int(fields[2])
>
>
>
> with:
>
> for line in os.popen('dscl . -list /Groups PrimaryGroupID'):
> fields = (line.split(' ',1))
> fields[0].strip()
> fields[1].strip()
> if len(fields) == 2:
> _cache[fields[0]] = int(fields[1])
>
> i am not sure if this fix is already out there...
>
> I still haven't been able to get a fully self-contained program, so
> any help will still be appreciated...
>
>
> Thanks,
>
> Bruce
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Pyobjc-dev mailing list
> Pyo...@li...
> https://lists.sourceforge.net/lists/listinfo/pyobjc-dev
|