Skip to content

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
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


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.


# 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

2 participants