forked from pool/python
581a05421a
- fix build on factory: setup reports linux3 not linux2 now, adapt checks - fix build on factory: setup reports linux3 not linux2 now, adapt checks OBS-URL: https://build.opensuse.org/request/show/76083 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python?expand=0&rev=102
21 lines
813 B
Diff
21 lines
813 B
Diff
--- Python-2.7.1/setup.py 2011/07/10 23:56:34 1.1
|
|
+++ Python-2.7.1/setup.py 2011/07/10 23:57:47
|
|
@@ -1454,14 +1454,14 @@
|
|
|
|
|
|
# Platform-specific libraries
|
|
- if platform == 'linux2':
|
|
+ if (platform in ('linux2', 'linux3')):
|
|
# Linux-specific modules
|
|
exts.append( Extension('linuxaudiodev', ['linuxaudiodev.c']) )
|
|
else:
|
|
missing.append('linuxaudiodev')
|
|
|
|
- if (platform in ('linux2', 'freebsd4', 'freebsd5', 'freebsd6',
|
|
- 'freebsd7', 'freebsd8')
|
|
+ if (platform in ('linux2', 'linux3', 'freebsd4', 'freebsd5',
|
|
+ 'freebsd6', 'freebsd7', 'freebsd8')
|
|
or platform.startswith("gnukfreebsd")):
|
|
exts.append( Extension('ossaudiodev', ['ossaudiodev.c']) )
|
|
else:
|