Skip to content

Commit 66a8a83

Browse files
committed
add a basic install for lightfm (without scipy)
1 parent caef31d commit 66a8a83

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

graalpython/lib-graalpython/modules/ginstall.py

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1147,6 +1147,48 @@ def dateutil(**kwargs):
11471147
setuptools_scm(**kwargs)
11481148
install_from_pypi("python-dateutil==2.7.5", **kwargs)
11491149

1150+
@pip_package()
1151+
def certifi(**kwargs):
1152+
install_from_pypi("certifi==2019.9.11", **kwargs)
1153+
1154+
@pip_package()
1155+
def idna(**kwargs):
1156+
install_from_pypi("idna==2.8", **kwargs)
1157+
1158+
@pip_package()
1159+
def chardet(**kwargs):
1160+
install_from_pypi("chardet==3.0.4", **kwargs)
1161+
1162+
@pip_package()
1163+
def urllib3(**kwargs):
1164+
install_from_pypi("urllib3==1.25.6", **kwargs)
1165+
1166+
@pip_package()
1167+
def requests(**kwargs):
1168+
idna(**kwargs)
1169+
certifi(**kwargs)
1170+
chardet(**kwargs)
1171+
urllib3(**kwargs)
1172+
install_from_pypi("requests==2.22", **kwargs)
1173+
1174+
@pip_package()
1175+
def lightfm(**kwargs):
1176+
# pandas(**kwargs)
1177+
requests(**kwargs)
1178+
patch = r"""
1179+
--- a/setup.py
1180+
+++ b/setup.py
1181+
@@ -147,7 +147,8 @@ typedef struct {PyObject **p; const char *s; const Py_ssize_t n; const char* enc
1182+
1183+
1184+
use_openmp = not sys.platform.startswith('darwin') and not sys.platform.startswith('win')
1185+
+use_openmp = False
1186+
1187+
setup(
1188+
name='lightfm',
1189+
"""
1190+
install_from_pypi("lightfm==1.15", patch=patch, **kwargs)
1191+
11501192
@pip_package()
11511193
def pytz(**kwargs):
11521194
install_from_pypi("pytz==2018.7", **kwargs)

0 commit comments

Comments
 (0)