[Python-Dev] ossaudiodev and linuxaudiodev not built on SLES11SP2 due to change in sys.platform

Wempa, Kristofer Kristofer.Wempa at sig.com
Mon May 21 16:53:06 CEST 2012


Sorry, I forgot to mention that this is for Python 2.6.8 and 2.7.3.


From: python-dev-bounces+kristofer.wempa=sig.com at python.org [mailto:python-dev-bounces+kristofer.wempa=sig.com at python.org] On Behalf Of Wempa, Kristofer
Sent: Monday, May 21, 2012 10:49 AM
To: python-dev at python.org
Subject: [Python-Dev] ossaudiodev and linuxaudiodev not built on SLES11SP2 due to change in sys.platform


I am currently working on porting our Linux tool chains to SuSe Enterprise Linux 11 service pack 2 (SLES11SP2).  During this process, we noticed an issue due to a change in the sys.platform string.  Previously, the string was "linux2" and it has now changed to "linux3".  This seems to be due to a change in the kernel version.  This causes the ossaudiodev and linuxaudiodev modules to be omitted from the build.  I found the relevant code in setup.py:

        if platform == 'linux2':
            # Linux-specific modules
            exts.append( Extension('linuxaudiodev', ['linuxaudiodev.c']) )
        else:
            missing.append('linuxaudiodev')

        if platform in ('linux2', 'freebsd4', 'freebsd5', 'freebsd6',
                        'freebsd7', 'freebsd8'):
            exts.append( Extension('ossaudiodev', ['ossaudiodev.c']) )
        else:
            missing.append('ossaudiodev')

Since neither of these account for "linux3", they are both omitted from the build.  I can simply modify the code to include "linux3" so that these modules are built on the new platform.  However, I wanted to check and see whether they are specifically being omitted for a reason or if the setup file just wasn't ported and tested against the new platform.  Any help would be appreciated.  Thanks.

                Kris


________________________________

IMPORTANT: The information contained in this email and/or its attachments is confidential. If you are not the intended recipient, please notify the sender immediately by reply and immediately delete this message and all its attachments. Any review, use, reproduction, disclosure or dissemination of this message or any attachment by an unintended recipient is strictly prohibited. Neither this message nor any attachment is intended as or should be construed as an offer, solicitation or recommendation to buy or sell any security or other financial instrument. Neither the sender, his or her employer nor any of their respective affiliates makes any warranties as to the completeness or accuracy of any of the information contained herein or that this message or any of its attachments is free of viruses.

________________________________

IMPORTANT: The information contained in this email and/or its attachments is confidential. If you are not the intended recipient, please notify the sender immediately by reply and immediately delete this message and all its attachments. Any review, use, reproduction, disclosure or dissemination of this message or any attachment by an unintended recipient is strictly prohibited. Neither this message nor any attachment is intended as or should be construed as an offer, solicitation or recommendation to buy or sell any security or other financial instrument. Neither the sender, his or her employer nor any of their respective affiliates makes any warranties as to the completeness or accuracy of any of the information contained herein or that this message or any of its attachments is free of viruses.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20120521/2f270330/attachment-0001.html>


More information about the Python-Dev mailing list