This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author lkcl
Recipients lkcl
Date 2009-01-24.17:50:48
SpamBayes Score 0.021145621
Marked as misclassified No
Message-id <1232819450.01.0.0863165056727.issue5043@psf.upfronthosting.co.za>
In-reply-to
Content
def get_msvcr():
    """Include the appropriate MSVC runtime library if Python was built
    with MSVC 7.0 or later.
    """
    msc_pos = sys.version.find('MSC v.')
    if msc_pos != -1:
        msc_ver = sys.version[msc_pos+6:msc_pos+10]
        if msc_ver == '1300':
            # MSVC 7.0
            return ['msvcr70']
        elif msc_ver == '1310':
            # MSVC 7.1
            return ['msvcr71']
        elif msc_ver == '1400':
            # VS2005 / MSVC 8.0
            return ['msvcr80']
        elif msc_ver == '1500':
            # VS2008 / MSVC 9.0
            return ['msvcr90']
        else:
            raise ValueError("Unknown MS Compiler version %i " % msc_Ver)

    return [] <<<<<<<<-----
History
Date User Action Args
2009-01-24 17:50:50lkclsetrecipients: + lkcl
2009-01-24 17:50:50lkclsetmessageid: <1232819450.01.0.0863165056727.issue5043@psf.upfronthosting.co.za>
2009-01-24 17:50:48lkcllinkissue5043 messages
2009-01-24 17:50:48lkclcreate