-
-
Notifications
You must be signed in to change notification settings - Fork 19.8k
python312Packages.mpi4py: 3.1.6 -> 3.1.6-unstable-2024-07-08; rewrite #327444
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
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
32bd063
python311Packages.pyprecice: 3.1.0 -> 3.1.1
doronbehar b306e0e
python312Packages.mpi4py: 3.1.6 -> 3.1.6-unstable-2024-07-08; rewrite
doronbehar 332c4cc
python312Packages.pytest-mpi: init at 0.6
doronbehar dc60dc1
python311Packages.h5py: enable tests
doronbehar da04892
python311Packages.h5py: no with lib; in meta
doronbehar 1b81d87
python311Packages.h5py: add doronbehar to maintainers
doronbehar cb74af2
python312Packages.h5py: small cleanup
doronbehar 4f6b37d
python312Packages.h5py-mpi: fix build
doronbehar 6828970
python311Packages.hoomd-blue: mark as broken
doronbehar be4a8aa
python311Packages.mne-python: disable failing test
doronbehar 2798c7a
python311Packages.objax: mark as broken
doronbehar 37217cb
python311Packages.outlines: mark as broken
doronbehar a75a635
python311Packages.aplpy: mark as broken
doronbehar 57b0c6d
python311Packages.pymatgen: mark as broken
doronbehar 9eae9c2
diffoscope: disable another broken test
doronbehar 4f37fc7
python311Packages.nitime: fix pyproject.toml substitution
doronbehar a52c6d9
python312Packages.pyscf: disable more failing tests
doronbehar File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,61 +1,62 @@ | ||
| { | ||
| lib, | ||
| fetchPypi, | ||
| python, | ||
| fetchFromGitHub, | ||
| buildPythonPackage, | ||
| cython, | ||
| setuptools, | ||
| mpi, | ||
| mpiCheckPhaseHook, | ||
| openssh, | ||
| pytestCheckHook, | ||
| mpiCheckPhaseHook, | ||
| }: | ||
|
|
||
| buildPythonPackage rec { | ||
| pname = "mpi4py"; | ||
| version = "3.1.6"; | ||
| format = "setuptools"; | ||
|
|
||
| src = fetchPypi { | ||
| inherit pname version; | ||
| hash = "sha256-yPpiXg+SsILvlVv7UvGfpmkdKSc9fXETXSlaoUPe5ss="; | ||
| }; | ||
|
|
||
| passthru = { | ||
| inherit mpi; | ||
| # See https://github.com/mpi4py/mpi4py/issues/386 . Part of the changes since | ||
| # the last release include Python 3.12 fixes. | ||
| version = "3.1.6-unstable-2024-07-08"; | ||
| pyproject = true; | ||
|
|
||
| src = fetchFromGitHub { | ||
| repo = "mpi4py"; | ||
| owner = "mpi4py"; | ||
| rev = "e9a59719bbce1b9c351e1e30ecd3be3b459e97cd"; | ||
| hash = "sha256-C/nidWGr8xsLV73u7HRtnXoQgYmoRJkD45DFrdXXTPI="; | ||
| }; | ||
|
|
||
| postPatch = '' | ||
| substituteInPlace test/test_spawn.py --replace \ | ||
| "unittest.skipMPI('openmpi(<3.0.0)')" \ | ||
| "unittest.skipMPI('openmpi')" | ||
| ''; | ||
|
|
||
| configurePhase = ""; | ||
|
|
||
| installPhase = '' | ||
| mkdir -p "$out/${python.sitePackages}" | ||
| export PYTHONPATH="$out/${python.sitePackages}:$PYTHONPATH" | ||
|
|
||
| ${python}/bin/${python.executable} setup.py install \ | ||
| --install-lib=$out/${python.sitePackages} \ | ||
| --prefix="$out" | ||
|
|
||
| # --install-lib: | ||
| # sometimes packages specify where files should be installed outside the usual | ||
| # python lib prefix, we override that back so all infrastructure (setup hooks) | ||
| # work as expected | ||
| ''; | ||
|
|
||
| nativeBuildInputs = [ mpi ]; | ||
| build-system = [ | ||
| cython | ||
| setuptools | ||
| mpi | ||
| ]; | ||
| dependencies = [ | ||
| mpi | ||
| ]; | ||
|
|
||
| __darwinAllowLocalNetworking = true; | ||
|
|
||
| nativeCheckInputs = [ | ||
| pytestCheckHook | ||
| openssh | ||
| mpiCheckPhaseHook | ||
| ]; | ||
| # Most tests pass, (besides `test_spawn.py`), but when reaching ~80% tests | ||
| # progress, an orted process hangs and the tests don't finish. This issue is | ||
| # probably due to the sandbox. | ||
| doCheck = false; | ||
| disabledTestPaths = [ | ||
| # Almost all tests in this file fail (TODO: Report about this upstream..) | ||
| "test/test_spawn.py" | ||
| ]; | ||
|
|
||
| passthru = { | ||
| inherit mpi; | ||
| }; | ||
|
|
||
| meta = with lib; { | ||
| meta = { | ||
| description = "Python bindings for the Message Passing Interface standard"; | ||
| homepage = "https://github.com/mpi4py/mpi4py"; | ||
| license = licenses.bsd2; | ||
| license = lib.licenses.bsd2; | ||
| maintainers = with lib.maintainers; [ doronbehar ]; | ||
| }; | ||
| } |
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,56 @@ | ||
| { lib | ||
| , buildPythonPackage | ||
| , fetchFromGitHub | ||
| , setuptools | ||
| , sybil | ||
| , pytest | ||
| , pytestCheckHook | ||
| , mpi | ||
| , mpi4py | ||
| }: | ||
|
|
||
| buildPythonPackage rec { | ||
| pname = "pytest-mpi"; | ||
| version = "0.6"; | ||
| pyproject = true; | ||
|
|
||
| src = fetchFromGitHub { | ||
| owner = "aragilar"; | ||
| repo = "pytest-mpi"; | ||
| rev = "v${version}"; | ||
| hash = "sha256-m3HTGLoPnYeg0oeIA1nzTzch7FtkuXTYpox4rRgo5MU="; | ||
| }; | ||
|
|
||
| build-system = [ | ||
| setuptools | ||
| ]; | ||
| buildInputs = [ | ||
| # Don't propagate it to let a different pytest version be used if needed | ||
| pytest | ||
|
doronbehar marked this conversation as resolved.
Outdated
|
||
| ]; | ||
| dependencies = [ | ||
| sybil | ||
| ]; | ||
|
|
||
| nativeCheckInputs = [ | ||
| pytestCheckHook | ||
| mpi | ||
| mpi4py | ||
| ]; | ||
| # Tests cause the Python interpreter to crash from some reason, a hard issue | ||
| # to debug. (TODO: discuss this with upstream) | ||
| doCheck = false; | ||
| pytestFlagsArray = [ | ||
| # https://github.com/aragilar/pytest-mpi/issues/4#issuecomment-634614337 | ||
| "-p" "pytester" | ||
| ]; | ||
|
|
||
| pythonImportsCheck = [ "pytest_mpi" ]; | ||
|
|
||
| meta = { | ||
| description = "Pytest plugin for working with MPI"; | ||
| homepage = "https://github.com/aragilar/pytest-mpi"; | ||
| license = lib.licenses.bsd3; | ||
| maintainers = with lib.maintainers; [ doronbehar ]; | ||
| }; | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.