Skip to content

Instantly share code, notes, and snippets.

@avoidik
Last active July 11, 2022 16:37
Show Gist options
  • Save avoidik/2ae9257240065a2b6733cc4f0c0e993f to your computer and use it in GitHub Desktop.
Save avoidik/2ae9257240065a2b6733cc4f0c0e993f to your computer and use it in GitHub Desktop.
Azure-Cli under cygwin
@echo off
setup-x86_64.exe -g -B -D -L -d -o -N -s http://cygwin.mirror.constant.com/ -l c:/tools/cygwin/distro -R c:/tools/cygwin -M

This is the unofficial installation guide, please refer to the official guide at https://docs.microsoft.com/en-us/cli/azure/install-azure-cli?view=azure-cli-latest

  • download cygwin installation manager at https://cygwin.com/install.html
  • prepare base cygwin environment with curl and wget packages: setup-x86_64.exe -q -g -B -D -L -d -o -N -s http://cygwin.mirror.constant.com/ -l C:/cygwin/distro -R C:/cygwin -C Base -P curl,wget (FAQ CLI), omit last two parameters -C Base -P curl,wget to quietly update all cygwin packages, and optionally add -M to reveal package manager
  • exec installed cygwin shell
  • clean PATH environment variable: export PATH="/usr/local/bin:/usr/bin" (alternatively you may create a shortcut C:\cygwin\bin\mintty.exe -t "Cygwin Shell" -i "/Cygwin-Terminal.ico" /bin/env "CYGWIN_NOWINPATH=1" /bin/bash -l)
  • install apt-cyg: curl -sSL https://raw.githubusercontent.com/transcode-open/apt-cyg/master/apt-cyg -o /bin/apt-cyg
  • make apt-cyg executable: chmod +x /bin/apt-cyg
  • refresh apt-cyg cache: apt-cyg update
  • install required packages: apt-cyg install python3 python3-devel gcc-g++ gcc-core libffi-devel openssl-devel make libsodium-devel libssl-devel
  • create link to python3: ln -s /usr/bin/python3 /usr/bin/python
  • install pip: curl -sSL https://bootstrap.pypa.io/get-pip.py -o get-pip.py && python get-pip.py
  • run install: SODIUM_INSTALL=system pip install azure-cli (may take some time to compile, if failed try to set specific version like azure-cli==2.0.61)
  • run external browser: export BROWSER="cygstart"
  • login: az login
  • confirm login in a web-browser
  • check with: az account show and az account list --o table

register cygwin in Windows context menu

apt-cyg install chere
chere -i -t mintty -e "Open Cygwin Here" -s bash -c -f -o '-t \"Cygwin Shell\" -i \"/Cygwin-Terminal.ico\"'
@echo off
setup-x86_64.exe -q -g -B -D -L -d -o -N -s http://cygwin.mirror.constant.com/ -l c:/tools/cygwin/distro -R c:/tools/cygwin -C Base -P curl,wget
@echo off
setup-x86_64.exe -q -g -B -D -L -d -o -N -s http://cygwin.mirror.constant.com/ -l c:/tools/cygwin/distro -R c:/tools/cygwin
@razlani
Copy link

razlani commented Dec 25, 2019

I get a similar issue as Markus above :(

ERROR: Command errored out with exit status 1:
command: /home/privy/lib/azure-cli/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-4tzko2ub/psutil/setup.py'"'"'; file='"'"'/tmp/pip-install-4tzko2ub/psutil/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-4tzko2ub/psutil/pip-egg-info
cwd: /tmp/pip-install-4tzko2ub/psutil/
Complete output (1 lines):
platform cygwin is not supported
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

@avoidik
Copy link
Author

avoidik commented Dec 25, 2019

@razlani I've updated the guide, as you may have already figured out you cannot install latest azure-cli version into cygwin since it is not supported by some external dependencies, so I added the exact version number which I was able to compile against of

@razlani
Copy link

razlani commented Dec 25, 2019

@razlani I've updated the guide, as you may have already figured out you cannot install latest azure-cli version into cygwin since it is not supported by some external dependencies, so I added the exact version number which I was able to compile against of

I can confirm that this works a treat :-)

Thank you sir - wishing you a merry everything and a happy new year

@avoidik
Copy link
Author

avoidik commented Mar 27, 2020

there was an attempt to get rid of psutil dependency via Azure/azure-cli#11665, I suppose the latest version should work just fine

@3dom3k
Copy link

3dom3k commented Jun 20, 2022

Hi,

I have a question related to your advice "if failed try to set specific version like azure-cli==2.0.61".

Where do I put this setting?

I failed to compile, with error messages (at least which I could recognize):

  • running build_rust ........ error: can't find Rust compiler
  • This package requires Rust >=1.41.0.

I do attach the output of commands:

The first went OK (getting and installing pip), the second fails with error I mentioned.

Any advice?

Click to expand!
root@mig:/setup # curl -sSL https://bootstrap.pypa.io/get-pip.py -o get-pip.py && python get-pip.py
Collecting pip
  Downloading pip-22.1.2-py3-none-any.whl (2.1 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.1/2.1 MB 6.0 MB/s eta 0:00:00
Collecting wheel
  Downloading wheel-0.37.1-py2.py3-none-any.whl (35 kB)
Installing collected packages: wheel, pip
  Attempting uninstall: pip
    Found existing installation: pip 21.3.1
    Uninstalling pip-21.3.1:
      Successfully uninstalled pip-21.3.1
Successfully installed pip-22.1.2 wheel-0.37.1
root@mig:/setup # SODIUM_INSTALL=system pip install azure-cli
Collecting azure-cli
  Downloading azure_cli-2.37.0-py3-none-any.whl (2.5 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.5/2.5 MB 6.0 MB/s eta 0:00:00
Collecting azure-mgmt-security==2.0.0b1
  Downloading azure_mgmt_security-2.0.0b1-py2.py3-none-any.whl (344 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 344.9/344.9 kB 5.6 MB/s eta 0:00:00
Collecting azure-mgmt-iothubprovisioningservices==1.1.0
  Downloading azure_mgmt_iothubprovisioningservices-1.1.0-py3-none-any.whl (52 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 52.5/52.5 kB 2.9 MB/s eta 0:00:00
Collecting azure-appconfiguration~=1.1.1
  Downloading azure_appconfiguration-1.1.1-py2.py3-none-any.whl (37 kB)
Collecting azure-mgmt-media~=9.0
  Downloading azure_mgmt_media-9.0.0-py3-none-any.whl (211 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 211.1/211.1 kB 5.1 MB/s eta 0:00:00
Collecting packaging<22.0,>=20.9
  Downloading packaging-21.3-py3-none-any.whl (40 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 40.8/40.8 kB 2.0 MB/s eta 0:00:00
Collecting azure-mgmt-cosmosdb==7.0.0b2
  Downloading azure_mgmt_cosmosdb-7.0.0b2-py2.py3-none-any.whl (319 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 319.1/319.1 kB 5.1 MB/s eta 0:00:00
Collecting semver==2.13.0
  Downloading semver-2.13.0-py2.py3-none-any.whl (12 kB)
Collecting azure-mgmt-extendedlocation==1.0.0b2
  Downloading azure_mgmt_extendedlocation-1.0.0b2-py2.py3-none-any.whl (37 kB)
Collecting azure-mgmt-datalake-store~=0.5.0
  Downloading azure_mgmt_datalake_store-0.5.0-py2.py3-none-any.whl (88 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 88.7/88.7 kB 4.2 MB/s eta 0:00:00
Collecting azure-mgmt-monitor~=3.0.0
  Downloading azure_mgmt_monitor-3.0.0-py2.py3-none-any.whl (839 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 839.2/839.2 kB 5.8 MB/s eta 0:00:00
Collecting azure-synapse-managedprivateendpoints~=0.3.0
  Downloading azure_synapse_managedprivateendpoints-0.3.0-py2.py3-none-any.whl (19 kB)
Collecting azure-mgmt-authorization~=0.61.0
  Downloading azure_mgmt_authorization-0.61.0-py2.py3-none-any.whl (94 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 94.5/94.5 kB 6.0 MB/s eta 0:00:00
Collecting azure-mgmt-datalake-analytics~=0.2.1
  Downloading azure_mgmt_datalake_analytics-0.2.1-py2.py3-none-any.whl (146 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 146.6/146.6 kB 4.7 MB/s eta 0:00:00
Collecting azure-mgmt-rdbms~=10.0.0
  Downloading azure_mgmt_rdbms-10.0.0-py2.py3-none-any.whl (644 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 645.0/645.0 kB 6.1 MB/s eta 0:00:00
Collecting azure-mgmt-iothub==2.2.0
  Downloading azure_mgmt_iothub-2.2.0-py3-none-any.whl (839 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 839.9/839.9 kB 5.9 MB/s eta 0:00:00
Collecting azure-mgmt-relay~=0.1.0
  Downloading azure_mgmt_relay-0.1.0-py2.py3-none-any.whl (36 kB)
Collecting azure-mgmt-search~=8.0
  Downloading azure_mgmt_search-8.0.0-py2.py3-none-any.whl (71 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 71.7/71.7 kB 4.8 MB/s eta 0:00:00
Collecting six>=1.10.0
  Downloading six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting azure-mgmt-billing==6.0.0
  Downloading azure_mgmt_billing-6.0.0-py2.py3-none-any.whl (166 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 167.0/167.0 kB 7.4 MB/s eta 0:00:00
Collecting PyGithub~=1.38
  Downloading PyGithub-1.55-py3-none-any.whl (291 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 291.7/291.7 kB 5.6 MB/s eta 0:00:00
Collecting azure-mgmt-resource==21.1.0b1
  Downloading azure_mgmt_resource-21.1.0b1-py3-none-any.whl (1.8 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.8/1.8 MB 6.3 MB/s eta 0:00:00
Collecting azure-mgmt-signalr==1.0.0b2
  Downloading azure_mgmt_signalr-1.0.0b2-py2.py3-none-any.whl (71 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 71.4/71.4 kB 3.1 MB/s eta 0:00:00
Collecting azure-mgmt-databoxedge~=1.0.0
  Downloading azure_mgmt_databoxedge-1.0.0-py2.py3-none-any.whl (1.3 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.3/1.3 MB 5.9 MB/s eta 0:00:00
Collecting azure-keyvault-keys==4.5.1
  Downloading azure_keyvault_keys-4.5.1-py3-none-any.whl (375 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 375.7/375.7 kB 5.2 MB/s eta 0:00:00
Collecting azure-mgmt-containerservice~=19.1.0
  Downloading azure_mgmt_containerservice-19.1.0-py3-none-any.whl (3.0 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.0/3.0 MB 5.9 MB/s eta 0:00:00
Collecting azure-mgmt-devtestlabs~=4.0
  Downloading azure_mgmt_devtestlabs-4.0.0-py2.py3-none-any.whl (137 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 137.0/137.0 kB 4.9 MB/s eta 0:00:00
Collecting azure-mgmt-sql==4.0.0b1
  Downloading azure_mgmt_sql-4.0.0b1-py2.py3-none-any.whl (916 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 916.5/916.5 kB 5.8 MB/s eta 0:00:00
Collecting javaproperties~=0.5.1
  Downloading javaproperties-0.5.2-py2.py3-none-any.whl (19 kB)
Collecting azure-mgmt-dns~=8.0.0
  Downloading azure_mgmt_dns-8.0.0-py2.py3-none-any.whl (118 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 118.9/118.9 kB 3.8 MB/s eta 0:00:00
Collecting azure-mgmt-compute~=27.0.0
  Downloading azure_mgmt_compute-27.0.0-py3-none-any.whl (5.3 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 5.3/5.3 MB 6.2 MB/s eta 0:00:00
Collecting azure-batch~=12.0.0
  Downloading azure_batch-12.0.0-py2.py3-none-any.whl (231 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 231.3/231.3 kB 6.4 MB/s eta 0:00:00
Collecting azure-mgmt-datamigration~=10.0.0
  Downloading azure_mgmt_datamigration-10.0.0-py2.py3-none-any.whl (174 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 174.5/174.5 kB 4.7 MB/s eta 0:00:00
Collecting azure-mgmt-redhatopenshift==1.1.0
  Downloading azure_mgmt_redhatopenshift-1.1.0-py3-none-any.whl (106 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 106.2/106.2 kB 5.8 MB/s eta 0:00:00
Collecting azure-mgmt-servicefabric~=1.0.0
  Downloading azure_mgmt_servicefabric-1.0.0-py2.py3-none-any.whl (139 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 139.6/139.6 kB 4.8 MB/s eta 0:00:00
Collecting azure-graphrbac~=0.60.0
  Downloading azure_graphrbac-0.60.0-py2.py3-none-any.whl (139 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 139.7/139.7 kB 4.9 MB/s eta 0:00:00
Collecting azure-mgmt-trafficmanager~=1.0.0
  Downloading azure_mgmt_trafficmanager-1.0.0-py3-none-any.whl (49 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 49.3/49.3 kB 3.6 MB/s eta 0:00:00
Collecting azure-keyvault~=1.1.0
  Downloading azure_keyvault-1.1.0-py2.py3-none-any.whl (352 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 352.3/352.3 kB 6.2 MB/s eta 0:00:00
Collecting azure-datalake-store~=0.0.49
  Downloading azure_datalake_store-0.0.52-py2.py3-none-any.whl (61 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.7/61.7 kB 3.3 MB/s eta 0:00:00
Collecting azure-mgmt-synapse==2.1.0b2
  Downloading azure_mgmt_synapse-2.1.0b2-py2.py3-none-any.whl (546 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 546.8/546.8 kB 5.6 MB/s eta 0:00:00
Collecting azure-mgmt-managedservices~=1.0
  Downloading azure_mgmt_managedservices-1.0.0-py2.py3-none-any.whl (38 kB)
Collecting azure-synapse-artifacts~=0.12.0
  Downloading azure_synapse_artifacts-0.12.0-py3-none-any.whl (421 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 421.0/421.0 kB 4.5 MB/s eta 0:00:00
Collecting azure-mgmt-containerregistry==8.2.0
  Downloading azure_mgmt_containerregistry-8.2.0-py2.py3-none-any.whl (928 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 928.0/928.0 kB 5.9 MB/s eta 0:00:00
Collecting azure-mgmt-maps~=2.0.0
  Downloading azure_mgmt_maps-2.0.0-py2.py3-none-any.whl (38 kB)
Collecting azure-mgmt-network~=20.0.0
  Downloading azure_mgmt_network-20.0.0-py3-none-any.whl (8.5 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 8.5/8.5 MB 6.1 MB/s eta 0:00:00
Collecting azure-mgmt-keyvault==9.3.0
  Downloading azure_mgmt_keyvault-9.3.0-py2.py3-none-any.whl (412 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 412.4/412.4 kB 5.5 MB/s eta 0:00:00
Collecting xmltodict~=0.12
  Downloading xmltodict-0.13.0-py2.py3-none-any.whl (10.0 kB)
Collecting azure-cli-core==2.37.0
  Downloading azure_cli_core-2.37.0-py3-none-any.whl (218 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 219.0/219.0 kB 5.2 MB/s eta 0:00:00
Collecting azure-mgmt-marketplaceordering==1.1.0
  Downloading azure_mgmt_marketplaceordering-1.1.0-py2.py3-none-any.whl (26 kB)
Collecting azure-mgmt-kusto~=0.3.0
  Downloading azure_mgmt_kusto-0.3.0-py2.py3-none-any.whl (73 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 73.9/73.9 kB 3.5 MB/s eta 0:00:00
Collecting azure-mgmt-redis~=13.1.0
  Downloading azure_mgmt_redis-13.1.0-py2.py3-none-any.whl (87 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 88.0/88.0 kB 5.1 MB/s eta 0:00:00
Collecting azure-mgmt-hdinsight~=9.0.0
  Downloading azure_mgmt_hdinsight-9.0.0-py2.py3-none-any.whl (125 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 125.7/125.7 kB 7.0 MB/s eta 0:00:00
Collecting azure-loganalytics~=0.1.0
  Downloading azure_loganalytics-0.1.1-py2.py3-none-any.whl (16 kB)
Collecting azure-mgmt-containerinstance~=9.1.0
  Downloading azure_mgmt_containerinstance-9.1.0-py2.py3-none-any.whl (58 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 58.0/58.0 kB 3.1 MB/s eta 0:00:00
Collecting azure-mgmt-eventgrid==9.0.0
  Downloading azure_mgmt_eventgrid-9.0.0-py2.py3-none-any.whl (178 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 178.4/178.4 kB 5.2 MB/s eta 0:00:00
Collecting azure-mgmt-servicefabricmanagedclusters~=1.0.0
  Downloading azure_mgmt_servicefabricmanagedclusters-1.0.0-py2.py3-none-any.whl (112 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 112.5/112.5 kB 9.4 MB/s eta 0:00:00
Collecting PyNaCl~=1.5.0
  Downloading PyNaCl-1.5.0.tar.gz (3.4 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.4/3.4 MB 6.2 MB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting colorama~=0.4.4
  Downloading colorama-0.4.5-py2.py3-none-any.whl (16 kB)
Collecting websocket-client~=1.3.1
  Downloading websocket_client-1.3.3-py3-none-any.whl (54 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 54.3/54.3 kB 1.4 MB/s eta 0:00:00
Collecting azure-mgmt-eventhub~=10.0.0
  Downloading azure_mgmt_eventhub-10.0.0-py2.py3-none-any.whl (484 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 484.1/484.1 kB 5.8 MB/s eta 0:00:00
Collecting fabric~=2.4
  Downloading fabric-2.7.0-py2.py3-none-any.whl (55 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 55.3/55.3 kB 3.0 MB/s eta 0:00:00
Collecting azure-mgmt-apimanagement~=3.0.0
  Downloading azure_mgmt_apimanagement-3.0.0-py3-none-any.whl (588 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 588.2/588.2 kB 5.6 MB/s eta 0:00:00
Collecting urllib3[secure]
  Downloading urllib3-1.26.9-py2.py3-none-any.whl (138 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 139.0/139.0 kB 5.5 MB/s eta 0:00:00
Collecting azure-mgmt-servicebus~=7.1.0
  Downloading azure_mgmt_servicebus-7.1.0-py2.py3-none-any.whl (539 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 539.2/539.2 kB 6.4 MB/s eta 0:00:00
Collecting azure-keyvault-administration==4.0.0b3
  Downloading azure_keyvault_administration-4.0.0b3-py2.py3-none-any.whl (77 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 77.5/77.5 kB 3.4 MB/s eta 0:00:00
Collecting azure-mgmt-servicelinker==1.0.0
  Downloading azure_mgmt_servicelinker-1.0.0-py3-none-any.whl (35 kB)
Collecting chardet~=3.0.4
  Downloading chardet-3.0.4-py2.py3-none-any.whl (133 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 133.4/133.4 kB 4.0 MB/s eta 0:00:00
Collecting azure-mgmt-policyinsights~=1.1.0b2
  Downloading azure_mgmt_policyinsights-1.1.0b2-py2.py3-none-any.whl (93 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 93.1/93.1 kB 4.3 MB/s eta 0:00:00
Collecting antlr4-python3-runtime~=4.9.3
  Downloading antlr4-python3-runtime-4.9.3.tar.gz (117 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 117.0/117.0 kB 10.1 MB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
Collecting azure-mgmt-iotcentral~=10.0.0b1
  Downloading azure_mgmt_iotcentral-10.0.0b1-py3-none-any.whl (48 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 48.8/48.8 kB 2.5 MB/s eta 0:00:00
Collecting azure-mgmt-managementgroups~=1.0.0
  Downloading azure_mgmt_managementgroups-1.0.0-py2.py3-none-any.whl (58 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 58.1/58.1 kB 3.3 MB/s eta 0:00:00
Collecting azure-synapse-accesscontrol~=0.5.0
  Downloading azure_synapse_accesscontrol-0.5.0-py2.py3-none-any.whl (30 kB)
Collecting azure-mgmt-batchai==7.0.0b1
  Downloading azure_mgmt_batchai-7.0.0b1-py2.py3-none-any.whl (99 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 99.1/99.1 kB 4.5 MB/s eta 0:00:00
Collecting scp~=0.13.2
  Downloading scp-0.13.6-py2.py3-none-any.whl (8.2 kB)
Collecting azure-mgmt-advisor==9.0.0
  Downloading azure_mgmt_advisor-9.0.0-py2.py3-none-any.whl (46 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 46.9/46.9 kB 1.5 MB/s eta 0:00:00
Collecting azure-mgmt-recoveryservices~=2.0.0
  Downloading azure_mgmt_recoveryservices-2.0.0-py2.py3-none-any.whl (79 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 79.7/79.7 kB 4.3 MB/s eta 0:00:00
Collecting azure-mgmt-appconfiguration==2.1.0b2
  Downloading azure_mgmt_appconfiguration-2.1.0b2-py3-none-any.whl (61 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.9/61.9 kB 4.6 MB/s eta 0:00:00
Collecting sshtunnel~=0.1.4
  Downloading sshtunnel-0.1.5-py2.py3-none-any.whl (23 kB)
Collecting azure-mgmt-applicationinsights~=1.0.0
  Downloading azure_mgmt_applicationinsights-1.0.0-py2.py3-none-any.whl (302 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 303.0/303.0 kB 5.4 MB/s eta 0:00:00
Collecting azure-storage-common~=1.4
  Downloading azure_storage_common-1.4.2-py2.py3-none-any.whl (47 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 47.4/47.4 kB 3.3 MB/s eta 0:00:00
Collecting azure-mgmt-recoveryservicesbackup~=5.0.0
  Downloading azure_mgmt_recoveryservicesbackup-5.0.0-py3-none-any.whl (484 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 484.2/484.2 kB 6.2 MB/s eta 0:00:00
Collecting azure-mgmt-reservations==2.0.0
  Downloading azure_mgmt_reservations-2.0.0-py3-none-any.whl (93 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 93.5/93.5 kB 5.0 MB/s eta 0:00:00
Collecting azure-multiapi-storage~=0.9.0
  Downloading azure_multiapi_storage-0.9.0-py2.py3-none-any.whl (7.1 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 7.1/7.1 MB 6.1 MB/s eta 0:00:00
Collecting azure-mgmt-deploymentmanager~=0.2.0
  Downloading azure_mgmt_deploymentmanager-0.2.0-py2.py3-none-any.whl (41 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 41.4/41.4 kB 2.2 MB/s eta 0:00:00
Collecting azure-mgmt-batch~=16.1.0
  Downloading azure_mgmt_batch-16.1.0-py3-none-any.whl (122 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 122.6/122.6 kB 4.7 MB/s eta 0:00:00
Collecting azure-mgmt-cdn==12.0.0
  Downloading azure_mgmt_cdn-12.0.0-py3-none-any.whl (239 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 239.4/239.4 kB 5.4 MB/s eta 0:00:00
Collecting azure-mgmt-consumption~=2.0
  Downloading azure_mgmt_consumption-2.0.0-py2.py3-none-any.whl (46 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 46.3/46.3 kB 2.3 MB/s eta 0:00:00
Collecting azure-mgmt-sqlvirtualmachine==1.0.0b2
  Downloading azure_mgmt_sqlvirtualmachine-1.0.0b2-py3-none-any.whl (57 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 57.9/57.9 kB 3.2 MB/s eta 0:00:00
Collecting azure-mgmt-imagebuilder~=1.0.0
  Downloading azure_mgmt_imagebuilder-1.0.0-py2.py3-none-any.whl (45 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 45.9/45.9 kB 2.2 MB/s eta 0:00:00
Collecting azure-mgmt-storage~=20.0.0
  Downloading azure_mgmt_storage-20.0.0-py3-none-any.whl (2.0 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.0/2.0 MB 5.9 MB/s eta 0:00:00
Collecting azure-mgmt-cognitiveservices~=13.1.0
  Downloading azure_mgmt_cognitiveservices-13.1.0-py3-none-any.whl (95 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 95.0/95.0 kB 5.7 MB/s eta 0:00:00
Collecting jsondiff~=2.0.0
  Downloading jsondiff-2.0.0-py3-none-any.whl (6.6 kB)
Collecting azure-cosmos>=3.0.2,~=3.0
  Downloading azure_cosmos-3.2.0-py2.py3-none-any.whl (106 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 106.6/106.6 kB 4.0 MB/s eta 0:00:00
Collecting azure-mgmt-botservice~=0.3.0
  Downloading azure_mgmt_botservice-0.3.0-py2.py3-none-any.whl (37 kB)
Collecting azure-mgmt-loganalytics==13.0.0b4
  Downloading azure_mgmt_loganalytics-13.0.0b4-py3-none-any.whl (162 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 162.6/162.6 kB 5.9 MB/s eta 0:00:00
Collecting azure-data-tables==12.4.0
  Downloading azure_data_tables-12.4.0-py3-none-any.whl (113 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 113.9/113.9 kB 4.4 MB/s eta 0:00:00
Collecting azure-synapse-spark~=0.2.0
  Downloading azure_synapse_spark-0.2.0-py2.py3-none-any.whl (29 kB)
Collecting azure-mgmt-privatedns~=1.0.0
  Downloading azure_mgmt_privatedns-1.0.0-py2.py3-none-any.whl (43 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 44.0/44.0 kB 2.8 MB/s eta 0:00:00
Collecting azure-mgmt-msi~=6.0.1
  Downloading azure_mgmt_msi-6.0.1-py3-none-any.whl (73 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 73.1/73.1 kB 3.9 MB/s eta 0:00:00
Collecting azure-mgmt-netapp~=7.0.0
  Downloading azure_mgmt_netapp-7.0.0-py3-none-any.whl (141 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 142.0/142.0 kB 5.7 MB/s eta 0:00:00
Collecting azure-mgmt-web~=6.1.0
  Downloading azure_mgmt_web-6.1.0-py3-none-any.whl (3.9 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.9/3.9 MB 6.1 MB/s eta 0:00:00
Collecting cryptography
  Downloading cryptography-37.0.2.tar.gz (585 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 585.4/585.4 kB 5.8 MB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting msal-extensions~=1.0.0
  Downloading msal_extensions-1.0.0-py2.py3-none-any.whl (19 kB)
Collecting PyJWT>=2.1.0
  Downloading PyJWT-2.4.0-py3-none-any.whl (18 kB)
Collecting azure-mgmt-core<2,>=1.2.0
  Downloading azure_mgmt_core-1.3.1-py3-none-any.whl (26 kB)
Collecting msrestazure~=0.6.4
  Downloading msrestazure-0.6.4-py2.py3-none-any.whl (40 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 40.5/40.5 kB 1.9 MB/s eta 0:00:00
Collecting requests[socks]
  Downloading requests-2.28.0-py3-none-any.whl (62 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 62.8/62.8 kB 4.7 MB/s eta 0:00:00
Collecting paramiko<3.0.0,>=2.0.8
  Downloading paramiko-2.11.0-py2.py3-none-any.whl (212 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 212.9/212.9 kB 5.5 MB/s eta 0:00:00
Collecting argcomplete~=1.8
  Downloading argcomplete-1.12.3-py2.py3-none-any.whl (38 kB)
Collecting jmespath
  Downloading jmespath-1.0.1-py3-none-any.whl (20 kB)
Collecting knack~=0.9.0
  Downloading knack-0.9.0-py3-none-any.whl (59 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 59.8/59.8 kB 2.2 MB/s eta 0:00:00
Collecting msal==1.18.0b1
  Downloading msal-1.18.0b1-py2.py3-none-any.whl (82 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 82.4/82.4 kB 4.1 MB/s eta 0:00:00
Collecting pyopenssl>=17.1.0
  Downloading pyOpenSSL-22.0.0-py2.py3-none-any.whl (55 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 55.8/55.8 kB 3.8 MB/s eta 0:00:00
Collecting pkginfo>=1.5.0.1
  Downloading pkginfo-1.8.3-py2.py3-none-any.whl (26 kB)
Collecting azure-cli-telemetry==1.0.6.*
  Downloading azure_cli_telemetry-1.0.6-py3-none-any.whl (10 kB)
Collecting humanfriendly~=10.0
  Downloading humanfriendly-10.0-py2.py3-none-any.whl (86 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 86.8/86.8 kB 2.6 MB/s eta 0:00:00
Collecting azure-core<2.0.0,>=1.15.0
  Downloading azure_core-1.24.1-py3-none-any.whl (178 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 178.6/178.6 kB 5.4 MB/s eta 0:00:00
Collecting msrest>=0.6.21
  Downloading msrest-0.7.1-py3-none-any.whl (85 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 85.4/85.4 kB 2.2 MB/s eta 0:00:00
Collecting azure-common~=1.1
  Downloading azure_common-1.1.28-py2.py3-none-any.whl (14 kB)
Collecting applicationinsights<0.12,>=0.11.1
  Downloading applicationinsights-0.11.10-py2.py3-none-any.whl (55 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 55.1/55.1 kB 3.3 MB/s eta 0:00:00
Collecting portalocker~=1.2
  Downloading portalocker-1.7.1-py2.py3-none-any.whl (10 kB)
Collecting cffi
  Using cached cffi-1.15.0-cp39-cp39-cygwin_3_3_5_x86_64.whl
Collecting adal>=0.4.2
  Downloading adal-1.2.7-py2.py3-none-any.whl (55 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 55.5/55.5 kB 4.5 MB/s eta 0:00:00
Collecting azure-nspkg>=2.0.0
  Downloading azure_nspkg-3.0.2-py3-none-any.whl (1.5 kB)
Collecting azure-mgmt-nspkg>=2.0.0
  Downloading azure_mgmt_nspkg-3.0.2-py3-none-any.whl (1.6 kB)
Collecting azure-mgmt-datalake-nspkg>=2.0.0
  Downloading azure_mgmt_datalake_nspkg-3.0.1-py3-none-any.whl (1.7 kB)
Collecting python-dateutil
  Downloading python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 247.7/247.7 kB 6.5 MB/s eta 0:00:00
Collecting pathlib2
  Downloading pathlib2-2.3.7.post1-py2.py3-none-any.whl (18 kB)
Collecting invoke<2.0,>=1.3
  Downloading invoke-1.7.1-py3-none-any.whl (215 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 215.4/215.4 kB 5.4 MB/s eta 0:00:00
Collecting pyparsing!=3.0.5,>=2.0.2
  Downloading pyparsing-3.0.9-py3-none-any.whl (98 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 98.3/98.3 kB 4.4 MB/s eta 0:00:00
Collecting deprecated
  Downloading Deprecated-1.2.13-py2.py3-none-any.whl (9.6 kB)
Collecting certifi
  Downloading certifi-2022.6.15-py3-none-any.whl (160 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 160.2/160.2 kB 3.5 MB/s eta 0:00:00
Collecting idna>=2.0.0
  Downloading idna-3.3-py3-none-any.whl (61 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.2/61.2 kB 3.4 MB/s eta 0:00:00
Collecting typing-extensions>=4.0.1
  Using cached typing_extensions-4.2.0-py3-none-any.whl (24 kB)
Collecting pycparser
  Using cached pycparser-2.21-py2.py3-none-any.whl (118 kB)
Collecting pyyaml
  Downloading PyYAML-6.0.tar.gz (124 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 125.0/125.0 kB 4.7 MB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting tabulate
  Downloading tabulate-0.8.9-py3-none-any.whl (25 kB)
Collecting pygments
  Downloading Pygments-2.12.0-py3-none-any.whl (1.1 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.1/1.1 MB 5.9 MB/s eta 0:00:00
Collecting isodate>=0.6.0
  Downloading isodate-0.6.1-py2.py3-none-any.whl (41 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 41.7/41.7 kB 1.3 MB/s eta 0:00:00
Collecting requests-oauthlib>=0.5.0
  Downloading requests_oauthlib-1.3.1-py2.py3-none-any.whl (23 kB)
Collecting bcrypt>=3.1.3
  Downloading bcrypt-3.2.2.tar.gz (42 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 42.5/42.5 kB 2.6 MB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting charset-normalizer~=2.0.0
  Downloading charset_normalizer-2.0.12-py3-none-any.whl (39 kB)
Collecting wrapt<2,>=1.10
  Downloading wrapt-1.14.1.tar.gz (50 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 50.9/50.9 kB 3.5 MB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
Collecting PySocks!=1.5.7,>=1.5.6
  Downloading PySocks-1.7.1-py3-none-any.whl (16 kB)
Collecting oauthlib>=3.0.0
  Downloading oauthlib-3.2.0-py3-none-any.whl (151 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 151.5/151.5 kB 5.4 MB/s eta 0:00:00
Building wheels for collected packages: antlr4-python3-runtime, PyNaCl, cryptography, bcrypt, wrapt, pyyaml
  Building wheel for antlr4-python3-runtime (setup.py) ... done
  Created wheel for antlr4-python3-runtime: filename=antlr4_python3_runtime-4.9.3-py3-none-any.whl size=144575 sha256=159493769db217313c321d7ea652215248038aa051045a2c699baa20f02fc788
  Stored in directory: /root/.cache/pip/wheels/23/cf/80/f3efa822e6ab23277902ee9165fe772eeb1dfb8014f359020a
  Building wheel for PyNaCl (pyproject.toml) ... done
  Created wheel for PyNaCl: filename=PyNaCl-1.5.0-cp39-cp39-cygwin_3_3_5_x86_64.whl size=240931 sha256=e14749ae97bfa4e2cd2c9a3d97326fc088696d13d19fb8b9520397cd2ca0a605
  Stored in directory: /root/.cache/pip/wheels/b2/1a/3d/bc1564bd01d06e7071dd466d477d42523dc1405c04c668dfd0
  Building wheel for cryptography (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for cryptography (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [192 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.cygwin-3.3.5-x86_64-cpython-39
      creating build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography
      copying src/cryptography/exceptions.py -> build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography
      copying src/cryptography/fernet.py -> build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography
      copying src/cryptography/utils.py -> build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography
      copying src/cryptography/__about__.py -> build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography
      copying src/cryptography/__init__.py -> build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography
      creating build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography/hazmat
      copying src/cryptography/hazmat/_oid.py -> build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography/hazmat
      copying src/cryptography/hazmat/__init__.py -> build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography/hazmat
      creating build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography/x509
      copying src/cryptography/x509/base.py -> build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography/x509
      copying src/cryptography/x509/certificate_transparency.py -> build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography/x509
      copying src/cryptography/x509/extensions.py -> build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography/x509
      copying src/cryptography/x509/general_name.py -> build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography/x509
      copying src/cryptography/x509/name.py -> build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography/x509
      copying src/cryptography/x509/ocsp.py -> build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography/x509
      copying src/cryptography/x509/oid.py -> build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography/x509
      copying src/cryptography/x509/__init__.py -> build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography/x509
      creating build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography/hazmat/backends
      copying src/cryptography/hazmat/backends/__init__.py -> build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography/hazmat/backends
      creating build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography/hazmat/bindings
      copying src/cryptography/hazmat/bindings/__init__.py -> build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography/hazmat/bindings
      creating build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography/hazmat/primitives
      copying src/cryptography/hazmat/primitives/cmac.py -> build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography/hazmat/primitives
      copying src/cryptography/hazmat/primitives/constant_time.py -> build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography/hazmat/primitives
      copying src/cryptography/hazmat/primitives/hashes.py -> build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography/hazmat/primitives
      copying src/cryptography/hazmat/primitives/hmac.py -> build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography/hazmat/primitives
      copying src/cryptography/hazmat/primitives/keywrap.py -> build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography/hazmat/primitives
      copying src/cryptography/hazmat/primitives/padding.py -> build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography/hazmat/primitives
      copying src/cryptography/hazmat/primitives/poly1305.py -> build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography/hazmat/primitives
      copying src/cryptography/hazmat/primitives/_asymmetric.py -> build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography/hazmat/primitives
      copying src/cryptography/hazmat/primitives/_cipheralgorithm.py -> build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography/hazmat/primitives
      copying src/cryptography/hazmat/primitives/_serialization.py -> build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography/hazmat/primitives
      copying src/cryptography/hazmat/primitives/__init__.py -> build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography/hazmat/primitives
      creating build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/aead.py -> build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/backend.py -> build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/ciphers.py -> build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/cmac.py -> build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/decode_asn1.py -> build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/dh.py -> build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/dsa.py -> build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/ec.py -> build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/ed25519.py -> build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/ed448.py -> build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/encode_asn1.py -> build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/hashes.py -> build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/hmac.py -> build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/poly1305.py -> build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/rsa.py -> build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/utils.py -> build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/x25519.py -> build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/x448.py -> build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/x509.py -> build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/__init__.py -> build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography/hazmat/backends/openssl
      creating build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography/hazmat/bindings/openssl
      copying src/cryptography/hazmat/bindings/openssl/binding.py -> build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography/hazmat/bindings/openssl
      copying src/cryptography/hazmat/bindings/openssl/_conditional.py -> build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography/hazmat/bindings/openssl
      copying src/cryptography/hazmat/bindings/openssl/__init__.py -> build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography/hazmat/bindings/openssl
      creating build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography/hazmat/primitives/asymmetric
      copying src/cryptography/hazmat/primitives/asymmetric/dh.py -> build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography/hazmat/primitives/asymmetric
      copying src/cryptography/hazmat/primitives/asymmetric/dsa.py -> build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography/hazmat/primitives/asymmetric
      copying src/cryptography/hazmat/primitives/asymmetric/ec.py -> build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography/hazmat/primitives/asymmetric
      copying src/cryptography/hazmat/primitives/asymmetric/ed25519.py -> build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography/hazmat/primitives/asymmetric
      copying src/cryptography/hazmat/primitives/asymmetric/ed448.py -> build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography/hazmat/primitives/asymmetric
      copying src/cryptography/hazmat/primitives/asymmetric/padding.py -> build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography/hazmat/primitives/asymmetric
      copying src/cryptography/hazmat/primitives/asymmetric/rsa.py -> build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography/hazmat/primitives/asymmetric
      copying src/cryptography/hazmat/primitives/asymmetric/types.py -> build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography/hazmat/primitives/asymmetric
      copying src/cryptography/hazmat/primitives/asymmetric/utils.py -> build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography/hazmat/primitives/asymmetric
      copying src/cryptography/hazmat/primitives/asymmetric/x25519.py -> build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography/hazmat/primitives/asymmetric
      copying src/cryptography/hazmat/primitives/asymmetric/x448.py -> build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography/hazmat/primitives/asymmetric
      copying src/cryptography/hazmat/primitives/asymmetric/__init__.py -> build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography/hazmat/primitives/asymmetric
      creating build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography/hazmat/primitives/ciphers
      copying src/cryptography/hazmat/primitives/ciphers/aead.py -> build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography/hazmat/primitives/ciphers
      copying src/cryptography/hazmat/primitives/ciphers/algorithms.py -> build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography/hazmat/primitives/ciphers
      copying src/cryptography/hazmat/primitives/ciphers/base.py -> build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography/hazmat/primitives/ciphers
      copying src/cryptography/hazmat/primitives/ciphers/modes.py -> build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography/hazmat/primitives/ciphers
      copying src/cryptography/hazmat/primitives/ciphers/__init__.py -> build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography/hazmat/primitives/ciphers
      creating build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography/hazmat/primitives/kdf
      copying src/cryptography/hazmat/primitives/kdf/concatkdf.py -> build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography/hazmat/primitives/kdf
      copying src/cryptography/hazmat/primitives/kdf/hkdf.py -> build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography/hazmat/primitives/kdf
      copying src/cryptography/hazmat/primitives/kdf/kbkdf.py -> build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography/hazmat/primitives/kdf
      copying src/cryptography/hazmat/primitives/kdf/pbkdf2.py -> build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography/hazmat/primitives/kdf
      copying src/cryptography/hazmat/primitives/kdf/scrypt.py -> build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography/hazmat/primitives/kdf
      copying src/cryptography/hazmat/primitives/kdf/x963kdf.py -> build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography/hazmat/primitives/kdf
      copying src/cryptography/hazmat/primitives/kdf/__init__.py -> build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography/hazmat/primitives/kdf
      creating build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography/hazmat/primitives/serialization
      copying src/cryptography/hazmat/primitives/serialization/base.py -> build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography/hazmat/primitives/serialization
      copying src/cryptography/hazmat/primitives/serialization/pkcs12.py -> build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography/hazmat/primitives/serialization
      copying src/cryptography/hazmat/primitives/serialization/pkcs7.py -> build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography/hazmat/primitives/serialization
      copying src/cryptography/hazmat/primitives/serialization/ssh.py -> build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography/hazmat/primitives/serialization
      copying src/cryptography/hazmat/primitives/serialization/__init__.py -> build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography/hazmat/primitives/serialization
      creating build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography/hazmat/primitives/twofactor
      copying src/cryptography/hazmat/primitives/twofactor/hotp.py -> build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography/hazmat/primitives/twofactor
      copying src/cryptography/hazmat/primitives/twofactor/totp.py -> build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography/hazmat/primitives/twofactor
      copying src/cryptography/hazmat/primitives/twofactor/__init__.py -> build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography/hazmat/primitives/twofactor
      running egg_info
      writing src/cryptography.egg-info/PKG-INFO
      writing dependency_links to src/cryptography.egg-info/dependency_links.txt
      writing requirements to src/cryptography.egg-info/requires.txt
      writing top-level names to src/cryptography.egg-info/top_level.txt
      reading manifest file 'src/cryptography.egg-info/SOURCES.txt'
      reading manifest template 'MANIFEST.in'
      no previously-included directories found matching 'docs/_build'
      warning: no previously-included files found matching 'vectors'
      warning: no previously-included files matching '*' found under directory 'vectors'
      warning: no previously-included files matching '*' found under directory '.github'
      warning: no previously-included files found matching 'release.py'
      warning: no previously-included files found matching '.coveragerc'
      warning: no previously-included files found matching 'codecov.yml'
      warning: no previously-included files found matching '.readthedocs.yml'
      warning: no previously-included files found matching 'dev-requirements.txt'
      warning: no previously-included files found matching 'tox.ini'
      warning: no previously-included files found matching 'mypy.ini'
      warning: no previously-included files matching '*' found under directory '.circleci'
      adding license file 'LICENSE'
      adding license file 'LICENSE.APACHE'
      adding license file 'LICENSE.BSD'
      adding license file 'LICENSE.PSF'
      writing manifest file 'src/cryptography.egg-info/SOURCES.txt'
      /tmp/pip-build-env-waly8q46/overlay/lib/python3.9/site-packages/setuptools/command/build_py.py:153: SetuptoolsDeprecationWarning:     Installing 'cryptography.hazmat.bindings._rust' as data is deprecated, please list it in `packages`.
          !!


          ############################
          # Package would be ignored #
          ############################
          Python recognizes 'cryptography.hazmat.bindings._rust' as an importable package,
          but it is not listed in the `packages` configuration of setuptools.

          'cryptography.hazmat.bindings._rust' has been automatically added to the distribution only
          because it may contain data files, but this behavior is likely to change
          in future versions of setuptools (and therefore is considered deprecated).

          Please make sure that 'cryptography.hazmat.bindings._rust' is included as a package by using
          the `packages` configuration field or the proper discovery methods
          (for example by using `find_namespace_packages(...)`/`find_namespace:`
          instead of `find_packages(...)`/`find:`).

          You can read more about "package discovery" and "data files" on setuptools
          documentation page.


      !!

        check.warn(importable)
      copying src/cryptography/py.typed -> build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography
      creating build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography/hazmat/bindings/_rust
      copying src/cryptography/hazmat/bindings/_rust/__init__.pyi -> build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography/hazmat/bindings/_rust
      copying src/cryptography/hazmat/bindings/_rust/asn1.pyi -> build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography/hazmat/bindings/_rust
      copying src/cryptography/hazmat/bindings/_rust/ocsp.pyi -> build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography/hazmat/bindings/_rust
      copying src/cryptography/hazmat/bindings/_rust/x509.pyi -> build/lib.cygwin-3.3.5-x86_64-cpython-39/cryptography/hazmat/bindings/_rust
      running build_ext
      running build_rust

          =============================DEBUG ASSISTANCE=============================
          If you are seeing a compilation error please try the following steps to
          successfully install cryptography:
          1) Upgrade to the latest pip and try again. This will fix errors for most
             users. See: https://pip.pypa.io/en/stable/installing/#upgrading-pip
          2) Read https://cryptography.io/en/latest/installation/ for specific
             instructions for your platform.
          3) Check our frequently asked questions for more information:
             https://cryptography.io/en/latest/faq/
          4) Ensure you have a recent Rust toolchain installed:
             https://cryptography.io/en/latest/installation/#rust

          Python: 3.9.10
          platform: CYGWIN_NT-10.0-19044-3.3.5-341.x86_64-x86_64-64bit-WindowsPE
          pip: n/a
          setuptools: 62.6.0
          setuptools_rust: 1.3.0
          =============================DEBUG ASSISTANCE=============================

      error: can't find Rust compiler

      If you are using an outdated pip version, it is possible a prebuilt wheel is available for this package but pip is not able to install from it. Installing from the wheel would avoid the need for a Rust compiler.

      To update pip, run:

          pip install --upgrade pip

      and then retry package installation.

      If you did intend to build this package from source, try installing a Rust compiler from your system package manager and ensure it is on the PATH during installation. Alternatively, rustup (available at https://rustup.rs) is the recommended way to download and update the Rust compiler toolchain.

      This package requires Rust >=1.41.0.
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for cryptography
  Building wheel for bcrypt (pyproject.toml) ... done
  Created wheel for bcrypt: filename=bcrypt-3.2.2-cp39-cp39-cygwin_3_3_5_x86_64.whl size=82517 sha256=58df84880d73f496ae1a61a8404c7de6bdfa5d0755bed16e2ae4cf793e6fa5bf
  Stored in directory: /root/.cache/pip/wheels/58/40/62/6939403a89b8bc74d00462840e79354fbd24765e59f676dd67
  Building wheel for wrapt (setup.py) ... done
  Created wheel for wrapt: filename=wrapt-1.14.1-cp39-cp39-cygwin_3_3_5_x86_64.whl size=90790 sha256=f14cbff2a6bc84960496c989aaafab242dcf87619323e381f0d2b86b6ce69909
  Stored in directory: /root/.cache/pip/wheels/66/6c/56/c83ca204965dc5a9edf68a92cc41b82ff2cff6a0101fb66cf9
  Building wheel for pyyaml (pyproject.toml) ... done
  Created wheel for pyyaml: filename=PyYAML-6.0-cp39-cp39-cygwin_3_3_5_x86_64.whl size=45333 sha256=ba2c485509e155fcb287c1d6ff2210753666f40df8011e736f7831acf803b14a
  Stored in directory: /root/.cache/pip/wheels/b4/0f/9a/d6af48581dda678920fccfb734f5d9f827c6ed5b4074c7eda8
Successfully built antlr4-python3-runtime PyNaCl bcrypt wrapt pyyaml
Failed to build cryptography
ERROR: Could not build wheels for cryptography, which is required to install pyproject.toml-based projects

@itsgudenuf
Copy link

@3dom3k I ran into the same issue as you.

I even cleared out my cywin install and started over from scratch because I had lots of old stuff in there from past projects.

The problem seems to be with Rust, or more specifically cryptography-37.0.2 which depends on Rust >=1.41.

I tried rustup for Windows Subsystem for Linux @ https://rustup.rs/ but it doesn't help. It doesn't seem like it's possible to get Rust in Cygwin.

@avoidik
Copy link
Author

avoidik commented Jun 24, 2022

I haven't tested this workaround, I am not using cygwin too much these days, but this is what you all can try

export CRYPTOGRAPHY_DONT_BUILD_RUST=1
export SODIUM_INSTALL=system
pip install cryptography==3.4.6 azure-cli

Version 3.4 is the latest release which doesn't require rust to be installed, it is rather a soft dependency there, but starting from version 3.5 it became a hard dependency, and rust must be installed anyway. However, I am not sure how good the latest version of azure-cli is backward-compatible with the older cryptography package, hence the azure-cli downgrade may be needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment