-
-
Notifications
You must be signed in to change notification settings - Fork 155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support micromamba as a backend #680
Comments
Here is a hacky strategy to do this now. The idea is to link your ln <micromamba> build/bin/conda
export PATH="./build/bin;${PATH}" Here is an example which uses # noxfile.py
import os
import subprocess
import nox
try:
MICROMAMBA = subprocess.check_output(["type", "-p", "micromamba"]).strip().decode()
except:
MICROMAMBA = None
if MICROMAMBA:
BIN_DIR = os.path.join("build", "bin")
CONDA = os.path.join(BIN_DIR, "conda")
if not os.path.exists(CONDA):
os.makedirs(BIN_DIR, exist_ok=True)
os.link(MICROMAMBA, CONDA)
os.environ["PATH"] = os.pathsep.join([BIN_DIR, os.environ["PATH"]])
# If on Mac OS X Silicon and you need to use Rosetta
os.environ["CONDA_SUBDIR"] = "osx-64"
args = dict(python=["3.10", "3.11"])
@nox.session(venv_backend="conda", venv_params=["-c", "defaults"], **args)
def test(session):
# The following fails with micromamba -- gets quoted to '"fftw>=0.3.10"'
#session.conda_install("fftw>=0.3.10", channel="conda-forge")
session.conda_install("fftw", channel="conda-forge")
session.install("pyfftw>=0.13.1", "pytest")
session.run("pytest", "tests") I noticed one bug: I could not specify the version of
This gets quoted as Desired FeaturesIt would be nice if there were some hooks one could use to change the session behavior so that users can implement custom solutions before features like this are fully implemented. For example:
|
How would this feature be useful?
I would like to be able to use
micromamba
along withmamba
/conda
/venv
. It's a lot smaller/faster thanmamba
(that's why we use it in our Gitlab CI flows), and to my knowledge lacks no functionality that is required fornox
backend purposes.Describe the solution you'd like
No response
Describe alternatives you've considered
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: