tox-conda icon indicating copy to clipboard operation
tox-conda copied to clipboard

use x86 when building environments on M1 macbook?

Open ifiddes opened this issue 3 years ago • 1 comments

There is plenty of documentation on how to use aliases to build conda environments on an M1 to be able to use x86-only tools. However, when I run tox-conda on an M1 macbook it uses the default conda build, which means I can't run tests whose environments require x86-only tools.

Is there a way to parameterize the conda environment builds?

ifiddes avatar Nov 02 '22 17:11 ifiddes

Unfortunately I do not have access to such a Mac for testing.

Have you tried to just set CONDA_SUBDIR=osx-64 from the shell that runs tox?

You may also try to set the following in tox.ini, with the proper channel-name:

conda_install_args=
    --channel {channel-name}/osx-64 
    --override-channels

AntoineD avatar Nov 03 '22 16:11 AntoineD