summaryrefslogtreecommitdiffstats
path: root/setup.py
diff options
context:
space:
mode:
authorSkip Montanaro <skip@pobox.com>2003-05-07 15:38:47 (GMT)
committerSkip Montanaro <skip@pobox.com>2003-05-07 15:38:47 (GMT)
commit50727728b9d101f1c33f5f45e403a2a86492e422 (patch)
treeb72c8797c6852cb21ad9722c0ba4533135b10b16 /setup.py
parentb4f12424a540045f2f6cc7f4216426a4bb3b9746 (diff)
downloadcpython-50727728b9d101f1c33f5f45e403a2a86492e422.zip
cpython-50727728b9d101f1c33f5f45e403a2a86492e422.tar.gz
cpython-50727728b9d101f1c33f5f45e403a2a86492e422.tar.bz2
set platform properly for OSF/1
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/setup.py b/setup.py
index 3761af6..afb8bbb 100644
--- a/setup.py
+++ b/setup.py
@@ -243,6 +243,8 @@ class PyBuildExt(build_ext):
platform = 'darwin'
elif platform[:6] == 'atheos':
platform = 'atheos'
+ elif platform[:4] == 'osf1':
+ platform = 'osf1'
return platform
@@ -286,8 +288,7 @@ class PyBuildExt(build_ext):
inc_dirs += os.getenv('C_INCLUDE_PATH', '').split(os.pathsep)
# OSF/1 has some stuff in /usr/ccs/lib (like -ldb)
- if platform[:4] == 'osf1':
- platform = 'osf1'
+ if platform == 'osf1':
lib_dirs += ['/usr/ccs/lib']
# Check for MacOS X, which doesn't need libm.a at all