mirror of
https://github.com/python/cpython.git
synced 2024-11-23 18:04:37 +08:00
Improve Victor’s commit with cool new 2.5 idiom
This commit is contained in:
parent
1e73a2467f
commit
5e2d5df477
3
setup.py
3
setup.py
@ -1380,8 +1380,7 @@ class PyBuildExt(build_ext):
|
||||
# End multiprocessing
|
||||
|
||||
# Platform-specific libraries
|
||||
if any(platform.startswith(prefix)
|
||||
for prefix in ("linux", "freebsd", "gnukfreebsd")):
|
||||
if platform.startswith(('linux', 'freebsd', 'gnukfreebsd')):
|
||||
exts.append( Extension('ossaudiodev', ['ossaudiodev.c']) )
|
||||
else:
|
||||
missing.append('ossaudiodev')
|
||||
|
Loading…
Reference in New Issue
Block a user