8000 piptree upward improvment · Nizhal/winpython@93d4a0d · GitHub
[go: up one dir, main page]

Skip to content

Commit 93d4a0d

Browse files
committed
piptree upward improvment
wppm -r not working for langchain <- numpy
1 parent dbc75a8 commit 93d4a0d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

winpython/piptree.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,12 @@ def _upraw(self, pp, extra="", version_req="", depth=20, path=[], verbose=False)
200200
for r in self.distro[p]["wanted_per"]:
201201
up_req = (r["req_marker"].split('extra == ')+[""])[1].translate(remove_list) if "req_marker" in r else ""
202202
if r["req_key"] in self.distro and r[&qu 7391 ot;req_key"]+"["+up_req+"]" not in path: # avoids circular links on dask[array]
203+
# 2024-06-30 example of langchain <- numpy. pip.distro['numpy']['wanted_per'] has:
204+
# {'req_key': 'langchain', 'req_version': '(>=1,<2)', 'req_extra': '', 'req_marker': ' python_version < "3.12"'},
205+
# {'req_key': 'langchain', 'req_version': '(>=1.26.0,<2.0.0)', 'req_extra': '', 'req_marker': ' python_version >= "3.12"'}
203206
# must be no extra dependancy, optionnal extra in the package, or provided extra per upper packages
204207
if ("req_marker" not in r and extra =="") or (extra !="" and extra==up_req and r["req_key"]!=p) or (extra !="" and "req_marker" in r and extra+',' in r["req_extra"]+',' #bingo1346 contourpy[test-no-images]
208+
or extra+',' in r["req_extra"]+',' and Marker(r["req_marker"]).evaluate(environment=envi)
205209
):
206210
ret += self._upraw(
207211
r["req_key"],

0 commit comments

Comments
 (0)
0