def get_ext_modules():
    ext_modules = []
    if ('--platlib-patch' in sys.argv):
        if sys.platform.startswith('linux'):
            ext_modules = [Extension('_foo', ['stub.cc'])]
        sys.argv.remove('--platlib-patch')
    return ext_modules
def get_ext_modules():
    ext_modules = []
    if ('--platlib-patch' in sys.argv):
        if sys.platform.startswith('linux'):
            ext_modules = [Extension('_foo', ['stub.cc'])]
        sys.argv.remove('--platlib-patch')
    return ext_modules