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

fv3net environment on apple chips #2258

Draft
wants to merge 13 commits into
base: master
Choose a base branch
from
Draft

Conversation

brianhenn
Copy link
Contributor

@brianhenn brianhenn commented Jun 28, 2023

Adds conda fv3net environment installation for Apple chips (M1, etc), since gfortran (a dependency of fv3net) is available for this architecture now. Also clarifies the conda-lock process by removing some extraneous commands and files.

Note: doesn't currently install due to #2266 .

Requirement changes:

  • Pins conda-lock to a version before its API changed to avoid confusion
  • Ran make lock_deps/lock_pip following these instructions

Resolves #2256.

Coverage reports (updated automatically):

@brianhenn brianhenn marked this pull request as ready for review June 28, 2023 20:24
@@ -1,9 +1,6 @@
channels:
- conda-forge
- defaults
platforms:
Copy link
Contributor Author

@brianhenn brianhenn Jun 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The version of conda-lock we use (0.4.1) was not actually reading this

@@ -238,10 +238,9 @@ update_submodules:
############################################################

lock_deps: lock_pip
conda-lock -f environment.yml
conda-lock render
Copy link
Contributor Author

@brianhenn brianhenn Jun 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The render command and the output it produced (the multi-platform conda-lock.yml file) was not actually used in making our environments.

@@ -46,7 +46,7 @@ xpartition>=0.2.1
xarray >= 0.19.0

# developer tools
conda-lock
conda-lock<1.0.0
Copy link
Contributor Author

@brianhenn brianhenn Jun 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Requires that we use a version of conda-lock that uses the conda-lock -f environment.yml -p <platform> command to make platform-specific lock files.

Alternatively, we could switch to using a version >=1.0, in which we'd need to use a different conda-lock command (conda render or conda-lock --kind explicit) to implement that approach we've used. See docs.

@brianhenn brianhenn marked this pull request as draft June 30, 2023 18:19
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

Successfully merging this pull request may close these issues.

Issue creating conda environment on Mac M1
1 participant