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

Various pypy3Packages fixes #225137

Merged
merged 5 commits into from
Apr 12, 2023
Merged

Various pypy3Packages fixes #225137

merged 5 commits into from
Apr 12, 2023

Conversation

mweinelt
Copy link
Member

@mweinelt mweinelt commented Apr 7, 2023

Allows building up to pypy3Packages.cryptography.

Description of changes
Things done
  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 23.05 Release Notes (or backporting 22.11 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Comment on lines 78 to 81
] ++ lib.optionals (isPyPy) [
"test_bash"
"test_can_build_c_extensions"
"test_discover_ok"
Copy link
Member

Choose a reason for hiding this comment

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

Those just don't work on pypy?

Copy link
Member Author

Choose a reason for hiding this comment

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

virtualenv> FAILED tests/unit/activation/test_bash.py::test_bash[with_prompt] - AssertionError: /nix/store/hd9sv84a4b5yk3kvnpgy51qqd4zh8bf5-pypy3.9-7.3.11/...
virtualenv> FAILED tests/unit/activation/test_bash.py::test_bash[no_prompt] - AssertionError: /nix/store/hd9sv84a4b5yk3kvnpgy51qqd4zh8bf5-pypy3.9-7.3.11/...
virtualenv> FAILED tests/unit/create/via_global_ref/test_build_c_ext.py::test_can_build_c_extensions[venv] - PermissionError: [Errno 13] Permission denied: PosixPath('/build/pytest-of-...
virtualenv> FAILED tests/unit/discovery/py_info/test_py_info_exe_based_of.py::test_discover_ok[PyPy-3.9.16-64-bin-] - RuntimeError: failed to detect pypy3.9.16-64|pypy3.9.16|pypy3.9-64|pypy3.9|...
virtualenv> FAILED tests/unit/discovery/py_info/test_py_info_exe_based_of.py::test_discover_ok[PyPy-3.9.16--bin-] - RuntimeError: failed to detect pypy3.9.16-64|pypy3.9.16|pypy3.9-64|pypy3.9|...
virtualenv> FAILED tests/unit/discovery/py_info/test_py_info_exe_based_of.py::test_discover_ok[PyPy-3.9-64-bin-] - RuntimeError: failed to detect pypy3.9.16-64|pypy3.9.16|pypy3.9-64|pypy3.9|...
virtualenv> FAILED tests/unit/discovery/py_info/test_py_info_exe_based_of.py::test_discover_ok[PyPy-3.9--bin-] - RuntimeError: failed to detect pypy3.9.16-64|pypy3.9.16|pypy3.9-64|pypy3.9|...
virtualenv> FAILED tests/unit/discovery/py_info/test_py_info_exe_based_of.py::test_discover_ok[PyPy-3-64-bin-] - RuntimeError: failed to detect pypy3.9.16-64|pypy3.9.16|pypy3.9-64|pypy3.9|...
virtualenv> FAILED tests/unit/discovery/py_info/test_py_info_exe_based_of.py::test_discover_ok[PyPy-3--bin-] - RuntimeError: failed to detect pypy3.9.16-64|pypy3.9.16|pypy3.9-64|pypy3.9|...
virtualenv> FAILED tests/unit/discovery/py_info/test_py_info_exe_based_of.py::test_discover_ok[python-3.9.16-64-bin-] - RuntimeError: failed to detect pypy3.9.16-64|pypy3.9.16|pypy3.9-64|pypy3.9|...
virtualenv> FAILED tests/unit/discovery/py_info/test_py_info_exe_based_of.py::test_discover_ok[python-3.9.16--bin-] - RuntimeError: failed to detect pypy3.9.16-64|pypy3.9.16|pypy3.9-64|pypy3.9|...
virtualenv> FAILED tests/unit/discovery/py_info/test_py_info_exe_based_of.py::test_discover_ok[python-3.9-64-bin-] - RuntimeError: failed to detect pypy3.9.16-64|pypy3.9.16|pypy3.9-64|pypy3.9|...
virtualenv> FAILED tests/unit/discovery/py_info/test_py_info_exe_based_of.py::test_discover_ok[python-3.9--bin-] - RuntimeError: failed to detect pypy3.9.16-64|pypy3.9.16|pypy3.9-64|pypy3.9|...
virtualenv> FAILED tests/unit/discovery/py_info/test_py_info_exe_based_of.py::test_discover_ok[python-3-64-bin-] - RuntimeError: failed to detect pypy3.9.16-64|pypy3.9.16|pypy3.9-64|pypy3.9|...
virtualenv> FAILED tests/unit/discovery/py_info/test_py_info_exe_based_of.py::test_discover_ok[python-3--bin-] - RuntimeError: failed to detect pypy3.9.16-64|pypy3.9.16|pypy3.9-64|pypy3.9|...

Copy link
Member Author

Choose a reason for hiding this comment

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

Added comments.

mweinelt added 5 commits April 9, 2023 13:24
The 2to3 conversion utiliy is not available for pypy, so the package is
essentially using python2 syntax which breaks it.
Nose tests is not getting updated for python3 and shouldn't be used
anymore. In fact it can't be used on pypy, since it does not come with a
2to3 utility.
Cannot be tested, because it is using nose for tests, which is broken
for pypy.
@ofborg ofborg bot requested a review from SuperSandro2000 April 9, 2023 12:55
@mweinelt mweinelt merged commit 514d2bf into NixOS:staging Apr 12, 2023
@mweinelt mweinelt deleted the pypy-fixes branch April 12, 2023 20:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants