Skip to content
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

use x86 when building environments on M1 macbook? #146

Open
ifiddes opened this issue Nov 2, 2022 · 1 comment
Open

use x86 when building environments on M1 macbook? #146

ifiddes opened this issue Nov 2, 2022 · 1 comment

Comments

@ifiddes
Copy link

ifiddes commented Nov 2, 2022

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?

@AntoineD
Copy link
Collaborator

AntoineD commented Nov 3, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants