]> granicus.if.org Git - python/commitdiff
Don't try to build dl on darwin. It doesn't build out of the box, and it
authorJack Jansen <jack.jansen@cwi.nl>
Tue, 18 Feb 2003 10:24:34 +0000 (10:24 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Tue, 18 Feb 2003 10:24:34 +0000 (10:24 +0000)
wouldn't serve a useful purpose anyway.

setup.py

index 01b87ebeb663eab7ccf1b52613e0b7d4a260ff18..3217033bd1ef12956913897cadaaf5b99d08a871 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -734,7 +734,7 @@ class PyBuildExt(build_ext):
         if sys.maxint == 0x7fffffff:
             # This requires sizeof(int) == sizeof(long) == sizeof(char*)
             dl_inc = find_file('dlfcn.h', [], inc_dirs)
-            if (dl_inc is not None) and (platform not in ['atheos']):
+            if (dl_inc is not None) and (platform not in ['atheos', 'darwin']):
                 exts.append( Extension('dl', ['dlmodule.c']) )
 
         # Platform-specific libraries