Skip to content

Commit fa2ea7c

Browse files
author
Franziska Geiger
committed
Added methods to ginstall for tensorflow required packages
1 parent afa6ab1 commit fa2ea7c

File tree

1 file changed

+52
-1
lines changed

1 file changed

+52
-1
lines changed

graalpython/lib-graalpython/modules/ginstall.py

Lines changed: 52 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,55 @@ def Cython(*args):
6363
install_from_pypi("Cython==0.29.2", ('--no-cython-compile',) + args)
6464

6565
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)
67115

68116
def setuptools_scm(*args):
69117
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=[]):
474522
pass
475523
else:
476524
for url_info in urls:
525+
print("The url in list:" ,url_info)
477526
if url_info["python_version"] == "source":
478527
url = url_info["url"]
479528
break
480529

481530
if url:
531+
print('The url:' , url)
482532
tempdir = tempfile.mkdtemp()
483533
filename = url.rpartition("/")[2]
534+
print('Filename',filename)
484535
system("curl -L -o %s/%s %s" % (tempdir, filename, url), msg="Download error")
485536
dirname = None
486537
if filename.endswith(".zip"):

0 commit comments

Comments
 (0)