tool_util.deps: please support setting the platform for conda via dependency manager config key #18090
Labels
area/backend
area/tool-dependencies
help wanted
also "hacktoberfest", beginner friendly set of issues
In cwltool we have a test to use conda (including the bioconda channel) to install seqtk via
galaxy.tool_util.deps.build_dependecy_manager
.Recently the default
macos-latest
GitHub Actions hosted runner switched to an M1 Apple Silicon (osx-arm64) system, which causes our test to fail as bioconda is not yet making osx-arm64 builds.However, Apple Silicon users have Rosetta, and can install/run
osx-64
binaries if aosx-64
platform conda is installed and configured with--platform osx-64
The platform mismatch could also happen to a user; this is not just a CI issue.
It would be nice if there was a
conda_platform
option we could set toosx-arm64
in theapp_config_dict
when callinggalaxy.tool_util.deps.build_dependecy_manager
Would the correct procedure be as follows?
platform
optional keyword parameter toCondaContext.__init__
and save it as an instance variable.CondaContext.exec_create()
, to consultself.platform
; addingf"--platform={self.platform}"
to the argsif self.platform is not None
.galaxy.tool_util.deps.resolvers.conda.CondaDependencyResolver.__init__()
where theCondaContext
instantiation happens and setplatform=get_option("platform"),
doc/source/admin/dependency_resolvers.rst
Note: in 3, we would look up
platform
as the key instead ofconda_platform
, asget_resolver_option
automatically prefixes the name of the resolver (conda
in our case) plus an underscore.The text was updated successfully, but these errors were encountered: