Skip to content

Commit 5000d73

Browse files
committed
Set jgo's lenient mode when resolving components
Aside from generally being friendlier and more likely to succeed, the specific motivation for this change is sc.fiji:fiji:2.17.0 on macos-arm64, which has a flaw in its POM hierarchy leading to: ValueError: No version available for dependency org.jogamp.gluegen:gluegen-rt:jar:natives-macosx-aarch64 (The proper classifier is natives-macosx-universal.) Setting lenient mode avoids the flaw and lets Fiji work with scyjava. Of course, the proper fix will be in pom-scijava-base + pom-scijava.
1 parent 4f1aa5b commit 5000d73

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ classifiers = [
3333
requires-python = ">=3.9"
3434
dependencies = [
3535
"jpype1 >= 1.3.0",
36-
"jgo>=2.0.0",
36+
"jgo>=2.1.0",
3737
]
3838

3939
[dependency-groups]

src/scyjava/_jvm.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ def start_jvm(options: Sequence[str] = None) -> None:
204204
#update=False,
205205
cache_dir=scyjava.config.get_cache_dir(),
206206
repositories=repositories,
207+
resolver=jgo.maven.PythonResolver(lenient=True),
207208
# The following obsolete arguments are from jgo v1:
208209
#m2_repo=scyjava.config.get_m2_repo(),
209210
#manage_dependencies=scyjava.config.get_manage_deps(),

0 commit comments

Comments
 (0)