Add auto-detect platform for Azure
This commit is contained in:
@@ -68,6 +68,13 @@ def main():
|
|||||||
platform = 'linux'
|
platform = 'linux'
|
||||||
elif sys.platform.startswith('darwin'):
|
elif sys.platform.startswith('darwin'):
|
||||||
platform = 'macos'
|
platform = 'macos'
|
||||||
|
elif 'AZURE_HTTP_USER_AGENT' in os.environ:
|
||||||
|
if os.environ['AGENT_OS'] == 'Linux':
|
||||||
|
platform = 'linux'
|
||||||
|
elif os.environ['AGENT_OS'] == 'Darwin':
|
||||||
|
platform = 'macos'
|
||||||
|
elif os.environ['AGENT_OD'] == 'Windows_NT':
|
||||||
|
platform = 'windows'
|
||||||
|
|
||||||
if platform is None:
|
if platform is None:
|
||||||
print('cibuildwheel: Unable to detect platform. cibuildwheel should run on your CI server, '
|
print('cibuildwheel: Unable to detect platform. cibuildwheel should run on your CI server, '
|
||||||
|
|||||||
Reference in New Issue
Block a user