Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@mcgibbon
Copy link
Collaborator

@mcgibbon mcgibbon commented Dec 20, 2021

Purpose

This PR restores the "installdir" environment variable to machineEnvironment.sh in buildenv, and makes more consistent use of it inside our tests which make use of buildenv.

Depends on buildenv PR ai2cm/buildenv#33, ai2cm/buildenv#34.

Infrastructure changes:

  • virtualenv scripts use the ${installdir} environment variable instead of a hard-coded path to /project/s1053/install on daint
  • requirements_daint.txt is removed, mpi4py is instead installed in daint_venv
  • unused references to TEST_DATA_DIR inside /project/s1053 are removed

Checklist

Before submitting this PR, please make sure:

  • You have followed the coding standards guidelines established at Code Review Checklist.
  • Docstrings and type hints are added to new and updated routines, as appropriate
  • All relevant documentation has been updated or added (e.g. README, CONTRIBUTING docs)
  • Unit tests are added or updated for non-stencil code changes

Additionally, if this PR contains code authored by new contributors:

  • The names of all the new contributors have been added to CONTRIBUTORS.md

Copy link
Contributor

@rheacangeo rheacangeo left a comment

Choose a reason for hiding this comment

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

awesome, thanks for consolidating all those variables

# check a virtualenv path has been provided
test -n "$1" || exitError 1001 ${virtualenv_path} "must pass an argument"
wheel_dir=/project/s1053/install/wheeldir
wheel_dir=${installdir}/wheeldir
Copy link
Contributor

Choose a reason for hiding this comment

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

this might not be set if machineEnvironment is not run?

Copy link
Contributor

Choose a reason for hiding this comment

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

I think you might need a . ${BUILDENV_DIR}/machineEnvironment.sh in this script

@mcgibbon
Copy link
Collaborator Author

@mcgibbon
Copy link
Collaborator Author

Performance plan passed. Merging.

@mcgibbon mcgibbon merged commit 2aada8f into main Dec 21, 2021
@mcgibbon mcgibbon deleted the feature/restore_installdir branch December 21, 2021 18:51
mcgibbon added a commit to ai2cm/buildenv that referenced this pull request Dec 21, 2021
twicki pushed a commit to twicki/pace that referenced this pull request Aug 22, 2025
* Fix to get notebooks working in docker
---------

Co-authored-by: Frank Malatino <[email protected]>
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.

3 participants