fix pyqt link and a broken pip install arg
This commit is contained in:
parent
0cb5188ac7
commit
34bed8eb92
@ -5,8 +5,10 @@ import sys
|
||||
import os
|
||||
import platform
|
||||
|
||||
def pip_install(package):
|
||||
subprocess.call([sys.executable, "-m", "pip", "install", package])
|
||||
def pip_install(*args):
|
||||
command = [sys.executable, "-m", "pip", "install"]
|
||||
command.extend(args)
|
||||
subprocess.call(command)
|
||||
|
||||
print "installing requests"
|
||||
pip_install('requests')
|
||||
@ -71,7 +73,7 @@ zip_ref.extract(BASSOPUSDLL)
|
||||
zip_ref.close()
|
||||
|
||||
print "installing apng, six, appdirs, packaging"
|
||||
pip_install("apng six appdirs packaging")
|
||||
pip_install("apng", "six", "appdirs", "packaging")
|
||||
|
||||
try:
|
||||
from PIL import Image
|
||||
@ -92,7 +94,7 @@ pip_install('pyinstaller==3.6')
|
||||
|
||||
if platform.system() == "Windows":
|
||||
print "downloading pyqt4"
|
||||
filedata = requests.get('http://raw.githubusercontent.com/dhb52/python-lib/master/PyQt4-4.11.4-cp27-cp27m-win32.whl')
|
||||
filedata = requests.get('https://pypi.anaconda.org/ales-erjavec/simple/pyqt4/4.11.4/PyQt4-4.11.4-cp27-none-win32.whl')
|
||||
datatowrite = filedata.content
|
||||
|
||||
with open('PyQt4-4.11.4-cp27-cp27m-win32.whl', 'wb') as f:
|
||||
|
Loading…
Reference in New Issue
Block a user