Skip to content

Align dependency library versions in building and running stage #23

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

Merged
merged 6 commits into from
Aug 5, 2024

Conversation

Jonathanlyj
Copy link
Collaborator

@Jonathanlyj Jonathanlyj commented Aug 3, 2024

There was a problem with "pip install ." caused by mismatched mpi4py versions in build stage and run stage. Building stage used mpi4py 4.0.0 and generated "mpi4py.MPI.Session" codes which causes an incompatibility error when running the project with mpi4py 3.1.x.

Forcing building and running stage to use a specific version number (by specifying mpi4py<4.0.0 ) works but is not ideal because it limits user's options (either mpi4py 3.x.x or mpi4py 4.0.0). Instead, we can add -no-build-isolation to pip install to force building stage to use whatever already installed if satisfies the version requirements. Build dependencies must be already installed if this option is used. In this case, "wheel" and "packaging" need to be manually installed by user.

@Jonathanlyj Jonathanlyj changed the title specify mpi4py version as 3.1.6 in pyproject.toml Align dependency library versions in building and running stage Aug 3, 2024
@wkliao
Copy link
Member

wkliao commented Aug 4, 2024

Please also apply the same changes to those GitHub workflow yaml files.

@wkliao wkliao merged commit f0c530c into Parallel-NetCDF:main Aug 5, 2024
3 checks passed
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.

2 participants