|
From: Scott H. <sha...@us...> - 2026-09-03 21:43:03
|
On Sep 2, 2026, at 18:34, fi...@sn... wrote: > > On 2026-09-01 14:01, Scott Hannahs via Fink-users wrote: >> I seem to be stuck in a rut. I have a python library that I want to >> use that uses numpy. >> However the TOML file requires some very specific versions of >> software. Should I try to patch the toml file to allow different >> versions of setup tools? >> Any other thoughts on trying to get that running? >>> Running from numpy source directory. >>> Traceback (most recent call last): >>> File >>> "/opt/sw/src/fink.build/numpy-py310-1.22.1-2/numpy-1.22.1/setup.py", >>> line 84, in <module> >>> raise RuntimeError( >>> RuntimeError: Setuptools version is '82.0.0', version < '60.0.0' is >>> required. See pyproject.toml > > Unfortunately, that's a problem of the numpy world. It feels like they always expect it to be run in a sandboxed virtual) environment just for it. We have v1.22.1 and v1.24.4 is the last version to support py38. But 1.24.4 still has `setuptools==59.2.0` and also has cython < 3, while we have 3.2 > > Possibilities: > 1) edit setup.py to remove the maxiumum version requirement for setuptools and hope it works > 2) try to update to 1.24.4 and work around any cython incompatibilities > 3) more drastic: recreate setuptools-tng-v59.6.0 for py38-py310, BUT stash it in a hidden directory and have python find is using PYTHONPATH > > Hanspeter Thanks for the pointers. I will try updating to 1.24.4 and see if that helps. -Scott |