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

python37: fix build on macOS #59619

Merged
merged 1 commit into from Apr 15, 2019
Merged

python37: fix build on macOS #59619

merged 1 commit into from Apr 15, 2019

Conversation

strager
Copy link
Contributor

@strager strager commented Apr 15, 2019

Motivation for this change

The upstream patch for distutils does not apply cleanly to Python 3.7.3's sources. (The patch applies cleanly to Python 3.7.2's sources, but nixpkgs commit 0ddae82 upgraded Python to 3.7.3.) Fix the patch to make python37 build on macOS.

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 upstream patch for distutils does not apply cleanly to Python
3.7.3's sources. (The patch applies cleanly to Python 3.7.2's sources,
but nixpkgs commit 0ddae82 upgraded
Python to 3.7.3.) Fix the patch to make python37 build on macOS.
@@ -104,6 +104,8 @@ in with passthru; stdenv.mkDerivation {
(
if isPy35 then
./3.5/python-3.x-distutils-C++.patch
else if isPy37 then
./3.7/python-3.x-distutils-C++.patch
Copy link
Member

Choose a reason for hiding this comment

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

We can't fetch this from somewhere?

Copy link
Member

@veprbl veprbl Apr 15, 2019

Choose a reason for hiding this comment

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

@LnL7 We used to upload those to the python bug tracker. But it's done inconsistently with unclear naming and the changes to the patches that we are providing are not very meaningful, so we might be better off maintaining those in our tree.

Copy link
Member

Choose a reason for hiding this comment

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

Ok. Tested a few packages, this can go straight to master since it's broken at the moment.

@veprbl veprbl added the 9.needs: port to stable A PR needs a backport to the stable release. label Apr 15, 2019
@LnL7 LnL7 merged commit 29884b2 into NixOS:master Apr 15, 2019
@LnL7 LnL7 added the 8.has: port to stable A PR already has a backport to the stable release. label Apr 15, 2019
@veprbl veprbl removed the 9.needs: port to stable A PR needs a backport to the stable release. label Apr 17, 2019
@strager strager deleted the python37 branch April 18, 2019 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants