|
From: Francesc A. <fa...@op...> - 2003-06-02 09:01:27
|
Hi Gary!,
I have never tried to compile PyTables on MacOSX, but it would be nice to
include support for such a nice OS.
After googling a bit, I have found some clues about what may be happening=
=2E
The problem seems to be in the space on the architecture name ("Power
Macintosh-2.2"). Some people (Steve Graham) suggest to strip out this spa=
ce
with the next patch applied to the util.py file on the distuils package.
=46rom the original post:
> The patch is as follows:
> --- util.py Tue Nov 5 01:29:27 2002
> +++ util.py.osx Tue Nov 5 01:26:22 2002
> @@ -67,6 +67,8 @@
> m =3D rel_re.match(release)
> if m:
> release =3D m.group()
> + elif osname[:6] =3D=3D "darwin":
> + machine =3D machine.replace(' ','')
>
> return "%s-%s-%s" % (osname, release, machine)
> ----end patch (don't include this in file)----
>
> You can patch util.py (after making a backup) like so:
>
> # cd /path/to/python/lib/distutils/
> # cp util.py util.py.orig
> # patch -u -p0 < patch_filename
>
> Where patch_filename is the file you save the patch into.
> If you don't want to use patch you can add the two line fix by hand :)
>
> This will cause the output_dir variable to be set to
> 'build/temp.darwin-6.3-PowerMacintosh-2.2/'
>
> I'm sure there is an easier way to set the build directory through opti=
ons
> in either setup.py or through the command line but I can't find any. Th=
is
> fix seemed to work for me.
>
> -Steve
Just apply this patch and try again. Tell me about your results, please, =
as
I would like to inform on other users about the right solution. It would =
be
nice if you find a more elegant solution (i.e. without need to apply a pa=
tch).
Luck!,
--=20
Francesc Alted
|