-
-
Save stellarpower/606252e1a406efd037bb126bf5c3b786 to your computer and use it in GitHub Desktop.
Install Python magic-wormhole on Windows.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: | |
:: This script installs wormhole (https://github.com/warner/magic-wormhole) and | |
:: its prerequisites. Run this as an administrator. | |
:: | |
:: Install chocolatey. | |
@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin" | |
:: Install Python 3. Python3.8 has removed time.clock which breaks autobahn on which wormhole relies | |
choco install -y python3 --version=3.7 --allow-downgrade | |
:: Install Microsoft Visual C++ Build Tools 2015. | |
choco install -y vcbuildtools | |
:: Refresh environment variables so that we can call Python (this is not a | |
:: native shell command: it is a script installed as part of chocolatey). | |
call RefreshEnv | |
:: Install wormhole. | |
pip3.7 install magic-wormhole |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment