Skip to content

Commit 4d95bc5

Browse files
author
Franziska Geiger
committed
[GR-16842] Add dependencies for tensorflow
PullRequest: graalpython/576
2 parents ccc0cdd + c3b7449 commit 4d95bc5

File tree

1 file changed

+49
-1
lines changed

1 file changed

+49
-1
lines changed

graalpython/lib-graalpython/modules/ginstall.py

Lines changed: 49 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)

0 commit comments

Comments
 (0)