A community-maintained Python framework for creating mathematical animations.
Fix links in Pycairo install script
Syrus Dark042e96af28ab
diff --git a/scripts/pycairoinstall.py b/scripts/pycairoinstall.pyindex 5cd7c8aea..3324ddb6e 100644--- a/scripts/pycairoinstall.py+++ b/scripts/pycairoinstall.py@@ -4,48 +4,48 @@ import sysimport urllib.requestif 'Windows' in platform.system():- # In case the python version is 3.6 and the system is 32-bit, try pycairo‑1.19.1‑cp37‑cp37m‑win32.whl version of cairo+ # In case the python version is 3.6 and the system is 32-bit, try pycairo‑1.19.2‑cp37‑cp37m‑win32.whl version of cairoif sys.version[:3]=='3.6' and platform.machine()=='x86':- urllib.request.urlretrieve("https://download.lfd.uci.edu/pythonlibs/w3jqiv8s/pycairo-1.19.1-cp36-cp36m-win32.whl", "pycairo-1.19.1-cp36-cp36m-win32.whl")- os.system("pip install pycairo-1.19.1-cp36-cp36m-win32.whl")- os.remove("pycairo-1.19.1-cp37-cp37m-win32.whl")+ urllib.request.urlretrieve("https://github.com/naveen521kk/pycairo/releases/download/v1.19.2/pycairo-1.19.2-cp36-cp36m-win32.whl", "pycairo-1.19.2-cp36-cp36m-win32.whl")+ os.system("pip3.6 install pycairo-1.19.2-cp36-cp36m-win32.whl")+ os.remove("pycairo-1.19.2-cp37-cp37m-win32.whl")- # In case the python version is 3.6 and the system is 64-bit, try pycairo‑1.19.1‑cp37‑cp37m‑win32.whl version of cairo+ # In case the python version is 3.6 and the system is 64-bit, try pycairo‑1.19.2‑cp37‑cp37m‑win32.whl version of cairoelif sys.version[:3]=='3.6' and platform.machine()=='AMD64':- urllib.request.urlretrieve("https://download.lfd.uci.edu/pythonlibs/w3jqiv8s/pycairo-1.19.1-cp36-cp36m-win_amd64.whl", "pycairo-1.19.1-cp36-cp36m-win_amd64.whl")+ urllib.request.urlretrieve("https://github.com/naveen521kk/pycairo/releases/download/v1.19.2/pycairo-1.19.2-cp36-cp36m-win_amd64.whl", "pycairo-1.19.2-cp36-cp36m-win_amd64.whl")print("Sucessfully downloaded Cairo for your system")print("Installing Cairo")- os.system("pip install pycairo-1.19.1-cp36-cp36m-win_amd64.whl")- os.remove("pycairo-1.19.1-cp36-cp36m-win_amd64.whl")+ os.system("pip3.6 install pycairo-1.19.2-cp36-cp36m-win_amd64.whl")+ os.remove("pycairo-1.19.2-cp36-cp36m-win_amd64.whl")- # In case the python version is 3.7 and the system is 32-bit, try pycairo‑1.19.1‑cp37‑cp37m‑win32.whl version of cairo+ # In case the python version is 3.7 and the system is 32-bit, try pycairo‑1.19.2‑cp37‑cp37m‑win32.whl version of cairoelif sys.version[:3]=='3.7' and platform.machine()=='x86':- urllib.request.urlretrieve("https://download.lfd.uci.edu/pythonlibs/w3jqiv8s/pycairo-1.19.1-cp37-cp37m-win32.whl", "pycairo-1.19.1-cp37-cp37m-win32.whl")+ urllib.request.urlretrieve("https://github.com/naveen521kk/pycairo/releases/download/v1.19.2/pycairo-1.19.2-cp37-cp37m-win32.whl", "pycairo-1.19.2-cp37-cp37m-win32.whl")print("Sucessfully downloaded Cairo for your system")print("Installing Cairo")- os.system("pip install pycairo-1.19.1-cp37-cp37m-win32.whl")- os.remove("pycairo-1.19.1-cp37-cp37m-win32.whl")+ os.system("pip3.7 install pycairo-1.19.2-cp37-cp37m-win32.whl")+ os.remove("pycairo-1.19.2-cp37-cp37m-win32.whl")- # In case the python version is 3.7 and the system is AMD64, try pycairo-1.19.1-cp37-cp37m-win_amd64.whl version of cairo+ # In case the python version is 3.7 and the system is AMD64, try pycairo-1.19.2-cp37-cp37m-win_amd64.whl version of cairoelif sys.version[:3]=='3.7' and platform.machine()=='AMD64':- urllib.request.urlretrieve("https://download.lfd.uci.edu/pythonlibs/w3jqiv8s/pycairo-1.19.1-cp37-cp37m-win_amd64.whl", "pycairo-1.19.1-cp37-cp37m-win_amd64.whl")+ urllib.request.urlretrieve("https://github.com/naveen521kk/pycairo/releases/download/v1.19.2/pycairo-1.19.2-cp37-cp37m-win_amd64.whl", "pycairo-1.19.2-cp37-cp37m-win_amd64.whl")print("Sucessfully downloaded Cairo for your system")print("Installing Cairo")- os.system("pip install pycairo-1.19.1-cp37-cp37m-win_amd64.whl")- os.remove("pycairo-1.19.1-cp37-cp37m-win_amd64.whl")+ os.system("pip3.7 install pycairo-1.19.2-cp37-cp37m-win_amd64.whl")+ os.remove("pycairo-1.19.2-cp37-cp37m-win_amd64.whl")- # In case the python version is 3.8 and the system is 32-bit, try pycairo-1.19.1-cp38-cp38-win32.whl version of cairo+ # In case the python version is 3.8 and the system is 32-bit, try pycairo-1.19.2-cp38-cp38-win32.whl version of cairoelif sys.version[:3]=='3.8' and platform.machine()=='x86':- urllib.request.urlretrieve("https://download.lfd.uci.edu/pythonlibs/w3jqiv8s/pycairo-1.19.1-cp38-cp38-win32.whl", "pycairo-1.19.1-cp38-cp38-win32.whl")+ urllib.request.urlretrieve("https://github.com/naveen521kk/pycairo/releases/download/v1.19.2/pycairo-1.19.2-cp38-cp38-win32.whl", "pycairo-1.19.2-cp38-cp38-win32.whl")print("Sucessfully downloaded Cairo for your system")print("Installing Cairo")- os.system("pip install pycairo-1.19.1-cp38-cp38-win32.whl")- os.remove("pycairo-1.19.1-cp38-cp38-win32.whl")+ os.system("pip3.8 install pycairo-1.19.2-cp38-cp38-win32.whl")+ os.remove("pycairo-1.19.2-cp38-cp38-win32.whl")- # In case the python version is 3.8 and the system is AMD64, try pycairo-1.19.1-cp38-cp38-win_amd64.whl version of cairo+ # In case the python version is 3.8 and the system is AMD64, try pycairo-1.19.2-cp38-cp38-win_amd64.whl version of cairoelif sys.version[:3]=='3.8' and platform.machine()=='AMD64':- urllib.request.urlretrieve("https://download.lfd.uci.edu/pythonlibs/w3jqiv8s/pycairo-1.19.1-cp38-cp38-win_amd64.whl", "pycairo-1.19.1-cp38-cp38-win_amd64.whl")+ urllib.request.urlretrieve("https://github.com/naveen521kk/pycairo/releases/download/v1.19.2/pycairo-1.19.2-cp38-cp38-win_amd64.whl", "pycairo-1.19.2-cp38-cp38-win_amd64.whl")print("Sucessfully downloaded Cairo for your system")print("Installing Cairo")- os.system("pip install pycairo-1.19.1-cp38-cp38-win_amd64.whl")- os.remove("pycairo-1.19.1-cp38-cp38-win_amd64.whl")+ os.system("pip3.8 install pycairo-1.19.2-cp38-cp38-win_amd64.whl")+ os.remove("pycairo-1.19.2-cp38-cp38-win_amd64.whl")