-
-
Notifications
You must be signed in to change notification settings - Fork 568
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
Automatically detect and test optional dependencies #13540
Comments
comment:1
Checking just for the existence of |
Author: Robert Bradshaw |
comment:2
For the internet test: could you use
|
comment:3
Also please add a check for |
comment:4
Instead of relying on |
comment:5
Command lines for
I have no idea how to do any of this with other compilers such as |
comment:6
I think it would be good to implement either caching or lazy evaluation (only check when actually encountering |
comment:7
For programs like |
comment:8
I would be surprised if many people that have gcc have a broken gcc, but it couldn't hurt to check (and g++, etc.) Same with internet--it's rare for people to be connected but not be able to resolve DNS. (If this is lazy, latency less of an issue.) Good points. I'll refactor this to make things lazy and otherwise improve the patch. |
comment:11
Attachment: 13540-optional-tests.2.patch.gz Apply only 13540-optional-tests.2.patch |
comment:12
Apply 13540-optional-tests.2.patch to sage-local repo. |
comment:13
The patch is great but a great number of the |
Attachment: 13540-disable-broken.patch.gz |
This comment has been minimized.
This comment has been minimized.
comment:15
IMHO we shouldn't hardcode the names of the executables ( (Also wonder whether " |
comment:16
Replying to @nexttime:
As an alternative, we might put their settings "during build" (whatever that means) into dummy/wrapper scripts in |
comment:17
For all intents and purposes, at the moment, gcc really means gcc. And building a Cython extension with a different compiler than Python was compiled with (and the relevant libraries, for C++ in particular) gets really messy. In any case, the point of this ticket is to introduce a framework that lets us test optional doctests automatically, as they the current setup means they're never tested and so quickly broken. We could do something more sophisticated with CC, etc. but gcc, at the very least, provides a common enough dependency to actually exercise this code for most (probably all) developers (and it's not near as brittle as others). |
comment:18
Replying to @robertwb:
We might then even use Python's / distutils' settings for testing tool availability (although there's no variable for the Fortran compiler AFAIK). Not sure what to do with bdists (in case they don't contain a pre-built GCC as well).
Yes. Nevertheless, I don't think I'm the only one that almost always sets Support for other compilers (e.g. |
comment:19
How is this supposed to interact with the |
comment:21
This would obviously need to be rebased to #12415. |
comment:26
Magma doctest failures now get fixed at #16322. |
comment:28
Hello everybody, A branch that does that has been created at #18558 (needs review) Nathann |
comment:29
This is now "duplicate/wontfix" as the replacement #20182 is now merged. |
comment:30
Is this ticket solved by the other tickets mentioned in the last comments? |
comment:31
Replying to @slel:
Yes.
I don't think so. Most of the comments in this discussion are 4 years old, and so perhaps invalid now. |
comment:33
4-year old => invalid ROFL. |
Reviewer: Kwankyu Lee, Samuel Lelièvre |
Changed author from Robert Bradshaw to none |
This comment has been minimized.
This comment has been minimized.
comment:35
Determined to be invalid/duplicate/wontfix (closing as "wontfix" as a catch-all resolution). |
I'd deferred actually fixing the broken doctests to #13884, #13885, and #2120 so we can start using this (and not have everything optional broken).
Superseded / fixed by #18558, #20182.
CC: @jhpalmieri @gvol @slel
Component: doctest framework
Reviewer: Kwankyu Lee, Samuel Lelièvre
Issue created by migration from https://trac.sagemath.org/ticket/13540
The text was updated successfully, but these errors were encountered: