Python distutils.msvccompiler.get_build_architecture() Examples

The following are 17 code examples of distutils.msvccompiler.get_build_architecture(). You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may also want to check out all available functions/classes of the module distutils.msvccompiler , or try the search function .
Example #1
Source File: misc_util.py    From predictive-maintenance-using-machine-learning with Apache License 2.0 5 votes vote down vote up
def get_build_architecture():
    # Importing distutils.msvccompiler triggers a warning on non-Windows
    # systems, so delay the import to here.
    from distutils.msvccompiler import get_build_architecture
    return get_build_architecture() 
Example #2
Source File: misc_util.py    From keras-lambda with MIT License 5 votes vote down vote up
def get_build_architecture():
        """Return the processor architecture.

        Possible results are "Intel", "Itanium", or "AMD64".
        """
        prefix = " bit ("
        i = sys.version.find(prefix)
        if i == -1:
            return "Intel"
        j = sys.version.find(")", i)
        return sys.version[i+len(prefix):j] 
Example #3
Source File: misc_util.py    From keras-lambda with MIT License 5 votes vote down vote up
def get_build_architecture():
        from distutils.msvccompiler import get_build_architecture
        return get_build_architecture() 
Example #4
Source File: misc_util.py    From Carnets with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
def get_build_architecture():
    # Importing distutils.msvccompiler triggers a warning on non-Windows
    # systems, so delay the import to here.
    from distutils.msvccompiler import get_build_architecture
    return get_build_architecture() 
Example #5
Source File: misc_util.py    From coffeegrindsize with MIT License 5 votes vote down vote up
def get_build_architecture():
    # Importing distutils.msvccompiler triggers a warning on non-Windows
    # systems, so delay the import to here.
    from distutils.msvccompiler import get_build_architecture
    return get_build_architecture() 
Example #6
Source File: misc_util.py    From ImageFusion with MIT License 5 votes vote down vote up
def get_build_architecture():
        """Return the processor architecture.

        Possible results are "Intel", "Itanium", or "AMD64".
        """
        prefix = " bit ("
        i = sys.version.find(prefix)
        if i == -1:
            return "Intel"
        j = sys.version.find(")", i)
        return sys.version[i+len(prefix):j] 
Example #7
Source File: misc_util.py    From ImageFusion with MIT License 5 votes vote down vote up
def get_build_architecture():
        from distutils.msvccompiler import get_build_architecture
        return get_build_architecture() 
Example #8
Source File: misc_util.py    From Fluid-Designer with GNU General Public License v3.0 5 votes vote down vote up
def get_build_architecture():
        """Return the processor architecture.

        Possible results are "Intel", "Itanium", or "AMD64".
        """
        prefix = " bit ("
        i = sys.version.find(prefix)
        if i == -1:
            return "Intel"
        j = sys.version.find(")", i)
        return sys.version[i+len(prefix):j] 
Example #9
Source File: misc_util.py    From Fluid-Designer with GNU General Public License v3.0 5 votes vote down vote up
def get_build_architecture():
        from distutils.msvccompiler import get_build_architecture
        return get_build_architecture() 
Example #10
Source File: misc_util.py    From recruit with Apache License 2.0 5 votes vote down vote up
def get_build_architecture():
    # Importing distutils.msvccompiler triggers a warning on non-Windows
    # systems, so delay the import to here.
    from distutils.msvccompiler import get_build_architecture
    return get_build_architecture() 
Example #11
Source File: misc_util.py    From Mastering-Elasticsearch-7.0 with MIT License 5 votes vote down vote up
def get_build_architecture():
    # Importing distutils.msvccompiler triggers a warning on non-Windows
    # systems, so delay the import to here.
    from distutils.msvccompiler import get_build_architecture
    return get_build_architecture() 
Example #12
Source File: misc_util.py    From Computable with MIT License 5 votes vote down vote up
def get_build_architecture():
        """Return the processor architecture.

        Possible results are "Intel", "Itanium", or "AMD64".
        """
        prefix = " bit ("
        i = sys.version.find(prefix)
        if i == -1:
            return "Intel"
        j = sys.version.find(")", i)
        return sys.version[i+len(prefix):j] 
Example #13
Source File: misc_util.py    From Computable with MIT License 5 votes vote down vote up
def get_build_architecture():
        from distutils.msvccompiler import get_build_architecture
        return get_build_architecture() 
Example #14
Source File: misc_util.py    From auto-alt-text-lambda-api with MIT License 5 votes vote down vote up
def get_build_architecture():
        """Return the processor architecture.

        Possible results are "Intel", "Itanium", or "AMD64".
        """
        prefix = " bit ("
        i = sys.version.find(prefix)
        if i == -1:
            return "Intel"
        j = sys.version.find(")", i)
        return sys.version[i+len(prefix):j] 
Example #15
Source File: misc_util.py    From auto-alt-text-lambda-api with MIT License 5 votes vote down vote up
def get_build_architecture():
        from distutils.msvccompiler import get_build_architecture
        return get_build_architecture() 
Example #16
Source File: misc_util.py    From lambda-packs with MIT License 5 votes vote down vote up
def get_build_architecture():
        """Return the processor architecture.

        Possible results are "Intel", "Itanium", or "AMD64".
        """
        prefix = " bit ("
        i = sys.version.find(prefix)
        if i == -1:
            return "Intel"
        j = sys.version.find(")", i)
        return sys.version[i+len(prefix):j] 
Example #17
Source File: misc_util.py    From lambda-packs with MIT License 5 votes vote down vote up
def get_build_architecture():
        from distutils.msvccompiler import get_build_architecture
        return get_build_architecture()