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

pythonPackages.purepng: fix for py3.7, enable tests #60813

Merged
merged 2 commits into from May 6, 2019

Conversation

risicle
Copy link
Contributor

@risicle risicle commented May 2, 2019

Motivation for this change

Didn't build on py3.7.

The pypi package we were using includes pre-cythonized versions of some components, however these were cythonized with a py3.7-unaware cython which is what caused the main breakage. Fetching the equivalent version from github allows us to offer either the pure-python version or one we cythonize ourselves dependent on whether the cython package is provided.

The added bonus of using a github checkout is that the tests are included, so I've enabled these.

These tests revealed that for full py3.7 compatibility an additional patch is needed from an upstream PR - added.

I've done a nox-review on this and there's one depending package (worldengine) that still doesn't build. Think I can probably fix that another time.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nix-review --run "nix-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Assured whether relevant documentation is up to date
  • Fits CONTRIBUTING.md.

the pypi package includes pre-cythonized versions of some components,
however these were cythonized with a py3.7-unaware cython which is what
caused the main breakage. fetching the equivalent version from github
allows us to offer either the pure-python version or one we cythonize
ourselves if the cython package is provided.

the added bonus of using a github checkout is that the tests are included,
so enable these.

these tests revealed that for full py3.7 compatibility an additional patch
is needed from an upstream PR.
looks like I've had more contact with this package than anyone...
@c0bw3b
Copy link
Contributor

c0bw3b commented May 6, 2019

@GrahamcOfBorg build python27Packages.purepng python37Packages.purepng

@c0bw3b c0bw3b merged commit 0284b2d into NixOS:master May 6, 2019
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.

None yet

3 participants