@@ -63,7 +63,55 @@ def Cython(*args):
63
63
install_from_pypi ("Cython==0.29.2" , ('--no-cython-compile' ,) + args )
64
64
65
65
def setuptools (* args ):
66
- install_from_pypi ("setuptools==40.6.3" , args )
66
+ install_from_pypi ("setuptools==41.0.1" , args )
67
+
68
+ def pkgconfig (* args ):
69
+ install_from_pypi ("pkgconfig==1.5.1" , args )
70
+
71
+ def wheel (* args ):
72
+ install_from_pypi ("wheel==0.33.4" , args )
73
+
74
+ def protobuf (* args ):
75
+ install_from_pypi ("protobuf==3.8.0" , args )
76
+
77
+ def Keras_preprocessing (* args ):
78
+ install_from_pypi ("Keras-Preprocessing==1.0.5" , args )
79
+
80
+ def gast (* args ):
81
+ install_from_pypi ("gast==0.2.2" , args )
82
+
83
+ def astor (* args ):
84
+ install_from_pypi ("astor==0.8.0" , args )
85
+
86
+ def absl_py (* args ):
87
+ install_from_pypi ("absl-py==0.7.1" , args )
88
+
89
+ def mock (* args ):
90
+ install_from_pypi ("mock==3.0.5" , args )
91
+
92
+ def Markdown (* args ):
93
+ install_from_pypi ("Markdown==3.1.1" , args )
94
+
95
+ def Werkzeug (* args ):
96
+ install_from_pypi ("Werkzeug==0.15.4" , args )
97
+
98
+ # Does not yet work
99
+ # def h5py(*args):
100
+ # try:
101
+ # import pkgconfig
102
+ # except ImportError:
103
+ # print("Installing required dependency: pkgconfig")
104
+ # pkgconfig(*args)
105
+ # install_from_pypi("h5py==2.9.0", args)
106
+
107
+ # Does not yet work
108
+ # def keras_applications(*args):
109
+ # try:
110
+ # import h5py
111
+ # except ImportError:
112
+ # print("Installing required dependency: h5py")
113
+ # h5py(*args)
114
+ # install_from_pypi("Keras-Applications==1.0.6", args)
67
115
68
116
def setuptools_scm (* args ):
69
117
install_from_url ("https://files.pythonhosted.org/packages/70/bc/f34b06274c1260c5e4842f789fb933a09b89f23549f282b36a15bdf63614/setuptools_scm-1.15.0rc1.tar.gz" , extra_opts = args )
@@ -474,13 +522,16 @@ def install_from_pypi(package, extra_opts=[]):
474
522
pass
475
523
else :
476
524
for url_info in urls :
525
+ print ("The url in list:" ,url_info )
477
526
if url_info ["python_version" ] == "source" :
478
527
url = url_info ["url" ]
479
528
break
480
529
481
530
if url :
531
+ print ('The url:' , url )
482
532
tempdir = tempfile .mkdtemp ()
483
533
filename = url .rpartition ("/" )[2 ]
534
+ print ('Filename' ,filename )
484
535
system ("curl -L -o %s/%s %s" % (tempdir , filename , url ), msg = "Download error" )
485
536
dirname = None
486
537
if filename .endswith (".zip" ):
0 commit comments