[lxml-dev] lxml Mac installation idea
Michael Guntsche
mike at it-loops.com
Thu Nov 13 11:33:46 CET 2008
On Thu, 13 Nov 2008 00:05:31 +0100, Guntsche Michael <mike at it-loops.com>
wrote:
> I spent far more time than I wanted on this one, but please check this..
> Maybe there is a better way to add the environment variables, but I
> did not wnat to change call_subprocess that much.
> Index: buildlibxml.py
> + # We just take the CFLAGS and LDFLAG from the python build
> environment
> + # so it does not matter if it was compiled Universal or not.
> + os.environ['CFLAGS'] = sysconfig.get_config_var('CFLAGS')
> + os.environ['LDFLAGS'] = sysconfig.get_config_var('LDFLAGS')
> + os.environ['MACOS_DEPLOYMENT_TARGET'] = "10.3"
> +
> + # We are loosing the link to iconv add it again
> + static_binaries.append('-liconv')
> +
Replying to my own E-Mail here. My SMTP server crapped out so this is a
little bit delayed.
Maybe we should set back the CFLAGS and LDFLAGS after compiling libxml2 and
libxslt.
What happens is that the build of etree.so now has the flags twice. I is
not doing any harm right now, because they are the same anyway but it looks
"cleaner". Or we change call_subprocess so we can pass the env flags there.
Anyway, I will try to test this today on my PPC machine with 10.4 (Tiger)
still installed.
Maybe others with a different setup could test this as well. Doing it this
way links as against the system libraries just libxml2 and libxslt are
taken from the static build.
Kind regards,
Michael
More information about the lxml-dev
mailing list