summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/ccompiler.py
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2001-08-27 15:08:16 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2001-08-27 15:08:16 (GMT)
commite259e5980c0a0889024ee99e4879a80fa8cd2086 (patch)
tree36622f59422fc1d0517fed2bea5768846b3f7aa3 /Lib/distutils/ccompiler.py
parent9403591014c5904baef0ad4d808cf222b107dc1f (diff)
downloadcpython-e259e5980c0a0889024ee99e4879a80fa8cd2086.zip
cpython-e259e5980c0a0889024ee99e4879a80fa8cd2086.tar.gz
cpython-e259e5980c0a0889024ee99e4879a80fa8cd2086.tar.bz2
Patch by Bill Noon: added 'dylib' as a library type along with
'static' and 'shared'. This fixes extension building for dynamic Pythons on MacOSX.
Diffstat (limited to 'Lib/distutils/ccompiler.py')
-rw-r--r--Lib/distutils/ccompiler.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/distutils/ccompiler.py b/Lib/distutils/ccompiler.py
index 4a282d4..4efd934 100644
--- a/Lib/distutils/ccompiler.py
+++ b/Lib/distutils/ccompiler.py
@@ -792,8 +792,8 @@ class CCompiler:
output_dir=''):
if output_dir is None: output_dir = ''
- if lib_type not in ("static","shared"):
- raise ValueError, "'lib_type' must be \"static\" or \"shared\""
+ if lib_type not in ("static","shared","dylib"):
+ raise ValueError, "'lib_type' must be \"static\", \"shared\" or \"dylib\""
fmt = getattr (self, lib_type + "_lib_format")
ext = getattr (self, lib_type + "_lib_extension")