-
-
Notifications
You must be signed in to change notification settings - Fork 491
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
Fix build failures of pynac on macos with system python3 #29404
Comments
comment:1
pynac's python discovery should be fixed, this looks completely broken |
comment:3
This should be probably split into two tickets. pplpy upstream is https://gitlab.com/videlec/pplpy - also in CC: |
comment:4
Yes for the split. I am surprised that problem shows now in pynac. I would have expected it to happen much earlier. The AX_PYTHON_DEVEL macro is 5 years old - which probably doesn't help. |
comment:5
Note that I don't think the problem is in the macro, but something in there may trigger. I suspect the problem is in |
comment:6
Which is already done. So I am not sure what happens to override it. Access to config.log would be helpful. |
comment:7
Yes, please go ahead with splitting the ticket. |
comment:8
It looks from the log as here could be some mixing up happening between system python3 and Homebrew's python3 (unless Homebrew's python3 is using system's python3 headers by design). |
comment:9
Replying to @dimpase:
Shouldn't happen. We pass My gut feeling is that something funny happened to that line during processing. But I need config.log to establish it. |
comment:10
I don't have MacOS machine, but anyone with it may install Homebrew and try. |
comment:11
It is more subtle than my implied gut feeling. The macro AX_PYTHON_DEVEL gets the right value for PYTHON and does its stuff based on that. I think |
comment:12
isn't the location of Sage's Python exotic enough to choke it, if it were the case? |
comment:13
It would be :) Code inspection says I have it backwards. |
comment:14
Toxic. This is with an old sage I have around
As you can see, the first test (
And for the cherry on the top of the cake, I believe |
comment:15
Updating |
comment:16
All the stuff found by |
comment:17
Replying to @kiwifb:
It shows now because this is a test with system python3 (#27824) instead of building sage's own python3. On macOS, there is |
comment:18
would it work with Homebrew's python3 ? Python shipped with MacOS is dodgy, IMHO. |
comment:19
Replying to @kiwifb:
Yes, this sounds like the correct approach. |
This comment has been minimized.
This comment has been minimized.
comment:21
Replying to @dimpase:
pplpy is now #29408 |
comment:22
Some links for
|
comment:23
probably we should try |
comment:24
... and except that we do not have |
comment:25
In the same bag, you could be tempted to use |
comment:62
This fixes the build on cygwin. |
comment:63
please squash the commits |
Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:
|
comment:65
squashed, needs review |
comment:66
Correct builds can be seen at https://github.com/mkoeppe/sage/actions/runs/74117913 |
comment:67
It's good on OS X, built with various different Pythons (homebrew, system, Sage). |
comment:68
Let's get this one into the next beta please |
comment:69
looks good. |
comment:70
Thanks! |
Attachment: pynac-0.7.26.sage-2020-04-03.log pynac did not download on Mac OS 10.15.3 |
comment:72
I apologize if this is noise (I may have messed up my installation somehow), but I thought I should report that I had trouble building pynac in 9.1rc0 on Mac OS 10.15.3, even with this ticket:
I merged #29408 and this ticket, and ran The build went smoothly after I manually downloaded pynac and put it in the upstream directory, so I want to say thanks for these patches! I never would have figured out how to fix the build errors on my own. |
comment:73
this might be due to (system) python, more precisely its urllib module, being unable to provide correct certs... does installing python 3.7 from python.org and also making sure it installs certs (there is a 2nd step in installation, iirc) fixes this? |
comment:74
Yes, that solved the problem. After installing python and certifi, pynac downloaded from mkoeppe's directory (and the build succeeded) when I used |
Changed branch from u/mkoeppe/fix_build_failures_of_pynac_on_macos_with_system_python3 to |
Changed commit from |
comment:76
Follow up: #29872 |
https://github.com/mkoeppe/sage/runs/531095486
pynac:
Fix in pynac/pynac#351, https://github.com/mkoeppe/pynac/releases/tag/pynac-0.7.26.sage-2020-03-28
The "temporary upstream" tarball URL is in
checksums.ini
. To test the update on this branch: Usemake SAGE_SPKG="sage-spkg -o" pynac-clean pynac
; this will download the new upstream package automatically.Upstream: Completely fixed; Fix reported upstream
CC: @dimpase @kiwifb @videlec @saraedum @isuruf @embray
Component: packages: standard
Author: Matthias Koeppe
Branch:
7344e2d
Reviewer: Dima Pasechnik
Issue created by migration from https://trac.sagemath.org/ticket/29404
The text was updated successfully, but these errors were encountered: