Skip to content

Commit

Permalink
[svn r4003] r4858@delle: sbehnel | 2008-11-11 23:05:25 +0100
Browse files Browse the repository at this point in the history
 try-and-error fix for universally built MacOS Python platforms

--HG--
branch : trunk
  • Loading branch information
scoder committed Nov 11, 2008
1 parent f9501a9 commit bef5dd8
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions buildlibxml.py
@@ -1,6 +1,5 @@
import os, re
from distutils import log

from distutils import log, sysconfig
## Routines to download and build libxml2/xslt:

LIBXML2_LOCATION = 'ftp://xmlsoft.org/libxml2/'
Expand Down Expand Up @@ -167,6 +166,7 @@ def build_libxml2xslt(download_dir, build_dir,
safe_mkdir(prefix)

configure_cmd = ['./configure', '--without-python',
'--disable-dependency-tracking',
'--disable-shared', '--prefix=%s' % prefix]
call_subprocess(configure_cmd, cwd=libxml2_dir)
call_subprocess(
Expand All @@ -191,6 +191,11 @@ def build_libxml2xslt(download_dir, build_dir,
os.path.join(prefix, 'include', 'libexslt')])
static_library_dirs.append(lib_dir)

unisdk_dir = sysconfig.get_config_var('UNIVERSALSDK')
if unisdk_dir:
static_cflags.extend(['-isysroot', unisdk_dir,
'-arch', '-i386', '-arch', 'ppc'])

for filename in os.listdir(lib_dir):
if [l for l in ['libxml2', 'libxslt', 'libexslt'] if l in filename]:
if [ext for ext in ['.a'] if filename.endswith(ext)]:
Expand Down

0 comments on commit bef5dd8

Please sign in to comment.