-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Pycairo install Made Easy Using single Command #71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
65fe274
Update setup.py
naveen521kk d3a975f
Added pycairo install script
naveen521kk a6a464e
Changes URL in ReadMe and update comments.
naveen521kk 261a501
Update pycairoInstall.py
naveen521kk a640c3b
Remove print Statement
naveen521kk 5617e76
Update to select python 3
naveen521kk 9280c23
Update pycairoInstall.py
naveen521kk File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,51 @@ | ||
| import platform | ||
| import os | ||
| import sys | ||
| import urllib.request | ||
|
|
||
| if '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 | ||
| if sys.version[:3]=='3.6' and platform.machine()=='x86': | ||
| urllib.request.urlretrieve("https://download.lfd.uci.edu/pythonlibs/s2jqpv5t/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") | ||
|
|
||
| #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 | ||
| elif sys.version[:3]=='3.6' and platform.machine()=='AMD64': | ||
| urllib.request.urlretrieve("https://download.lfd.uci.edu/pythonlibs/s2jqpv5t/pycairo-1.19.1-cp36-cp36m-win_amd64.whl", "pycairo-1.19.1-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") | ||
|
|
||
| #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 | ||
| elif sys.version[:3]=='3.7' and platform.machine()=='x86': | ||
| urllib.request.urlretrieve("https://download.lfd.uci.edu/pythonlibs/s2jqpv5t/pycairo-1.19.1-cp37-cp37m-win32.whl", "pycairo-1.19.1-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") | ||
|
|
||
| #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 | ||
| elif sys.version[:3]=='3.7' and platform.machine()=='AMD64': | ||
| urllib.request.urlretrieve("https://download.lfd.uci.edu/pythonlibs/s2jqpv5t/pycairo-1.19.1-cp37-cp37m-win_amd64.whl", "pycairo-1.19.1-cp37-cp37m-win_amd64.whl") | ||
naveen521kk marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| 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") | ||
|
|
||
| #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 | ||
| elif sys.version[:3]=='3.8' and platform.machine()=='x86': | ||
| urllib.request.urlretrieve("https://download.lfd.uci.edu/pythonlibs/s2jqpv5t/pycairo-1.19.1-cp38-cp38-win32.whl", "pycairo-1.19.1-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") | ||
|
|
||
| #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 | ||
| elif sys.version[:3]=='3.8' and platform.machine()=='AMD64': | ||
| urllib.request.urlretrieve("https://download.lfd.uci.edu/pythonlibs/s2jqpv5t/pycairo-1.19.1-cp38-cp38-win_amd64.whl", "pycairo-1.19.1-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") | ||
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.