mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
Improve Victor’s commit with cool new 2.5 idiom
This commit is contained in:
parent
1e73a2467f
commit
5e2d5df477
1 changed files with 1 additions and 2 deletions
3
setup.py
3
setup.py
|
|
@ -1380,8 +1380,7 @@ class PyBuildExt(build_ext):
|
||||||
# End multiprocessing
|
# End multiprocessing
|
||||||
|
|
||||||
# Platform-specific libraries
|
# Platform-specific libraries
|
||||||
if any(platform.startswith(prefix)
|
if platform.startswith(('linux', 'freebsd', 'gnukfreebsd')):
|
||||||
for prefix in ("linux", "freebsd", "gnukfreebsd")):
|
|
||||||
exts.append( Extension('ossaudiodev', ['ossaudiodev.c']) )
|
exts.append( Extension('ossaudiodev', ['ossaudiodev.c']) )
|
||||||
else:
|
else:
|
||||||
missing.append('ossaudiodev')
|
missing.append('ossaudiodev')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue