-
-
Notifications
You must be signed in to change notification settings - Fork 503
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
Remove Cygwin distro support #36778
Remove Cygwin distro support #36778
Conversation
build/bin/sage-guess-package-system
Outdated
@@ -30,12 +30,5 @@ elif xbps-install --version > /dev/null 2>&1; then | |||
elif pkg -v > /dev/null 2>&1; then | |||
echo freebsd | |||
else | |||
case `uname -s` in | |||
CYGWIN*) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would like to keep build/bin/sage-guess-package-system
, build/bin/sage-print-system-package-command
, and the cygwin.txt files for a while longer.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All other removals and changes LGTM.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what's the point of keeping cygwin.txt ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know but there are 100 other things needed to remove cygwin so I don't really care if we save that for last. Feel free to revert that commit or rebase it away.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what's the point of keeping cygwin.txt ?
Because we have a nice little information system there, which I want to offer to other projects via #31662.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know but there are 100 other things needed to remove cygwin so I don't really care if we save that for last. Feel free to revert that commit or rebase it away.
OK, I'll split this part out to a separate PR that I'll mark "pending".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's now #36782.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would like to keep
build/bin/sage-guess-package-system
,build/bin/sage-print-system-package-command
, and the cygwin.txt files for a while longer.
For how much longer?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what's the point of keeping cygwin.txt ?
Because we have a nice little information system there, which I want to offer to other projects via #31662.
Cygwin was dragging down Sage - are you keen on offering this burden to other projects? :-)
These are pretty obvious: run "git grep -i cygwin build/bin" and then delete the special cases for Cygwin.
c75c9bc
to
002c984
Compare
002c984
to
6a9647e
Compare
OK, this seems to be done; there are several Cygwin-related parts of patches left, but that's not urgent. |
@dimpase Your force-push undid my changes discussed above, please fix |
I'm not sure what I broke here, if anything. |
There's a handy "Compare" button next to your force push |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me like this.
In case the cygwin.txt
turn out to be handy in the future, they can be easily restored from the git history.
b8a8182
to
7b45aaf
Compare
Fixed it for you. |
src/sage/libs/singular/singular.pyx
Outdated
@@ -1777,13 +1777,12 @@ cdef init_libsingular() noexcept: | |||
os.environ["SINGULAR_BIN_DIR"] = dirname(singular_executable) | |||
|
|||
import platform |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
import platform |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in 822a9f9
src/sage/interfaces/mathematica.py
Outdated
@@ -341,8 +341,6 @@ | |||
|
|||
- William Stein (2005): first version | |||
|
|||
- Doug Cutrell (2006-03-01): Instructions for use under Cygwin/Windows. | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we don't want to remove credit for past authors.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Restored in 76aad01.
src/sage/env.py
Outdated
@@ -478,8 +469,8 @@ def uname_specific(name, value, alternative): | |||
aliases["ARB_LIBRARY"] = ARB_LIBRARY | |||
|
|||
# TODO: Remove Cygwin hack by installing a suitable cblas.pc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not remove completely?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know what's this all about. Is there a special hack in place which is only actually needed on Cygwin?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not any more. Removed in 1713eed.
Probably should be tested on (non-conda) macOS |
I just re-read all of the changes. They all look relatively safe and everyone's comments have been addressed, so I'm going to set it to positive review. The sooner this gets merged the sooner I can start deleting the rest. |
Documentation preview for this PR (built with commit d9d8e14; changes) is ready! 🎉 |
merge conflict |
I'll resolve the conflict |
SageMath version 10.3.beta1, Release Date: 2023-12-10
<!-- ^^^^^ Please provide a concise, informative and self-explanatory title. Don't put issue numbers in there, do this in the PR body below. For example, instead of "Fixes sagemath#1234" use "Introduce new method to calculate 1+1" --> <!-- Describe your changes here in detail --> Most normal SPKGs are installed by staging in `DESTDIR`. When copying to the final install location in `SAGE_LOCAL`, an installation record is created, which is used later in package uninstallation. However, when SPKG installation was switched to using staging in `DESTDIR` (Meta-ticket sagemath#24024), the parts of `spkg-install` scripts that used to be responsible for removing an old version of the installed package were either kept in place or moved to `spkg-legacy-uninstall` scripts. This was done to enable incremental builds from older installations. By passage of time, this is no longer needed. Some of the removals are a partial cherry-pick from sagemath#25140 by @embray. We also switch `frobby` to `DESTDIR` staging and *add* an `spkg-legacy- uninstall` script. Resolves sagemath#25140. Resolves sagemath#30480. <!-- Why is this change required? What problem does it solve? --> <!-- If this PR resolves an open issue, please link to it here. For example "Fixes sagemath#12345". --> <!-- If your change requires a documentation PR, please link it appropriately. --> ### 📝 Checklist <!-- Put an `x` in all the boxes that apply. --> <!-- If your change requires a documentation PR, please link it appropriately --> <!-- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> <!-- Feel free to remove irrelevant items. --> - [x] The title is concise, informative, and self-explanatory. - [x] The description explains in detail what this PR is about. - [x] I have linked a relevant issue or discussion. - [ ] I have created tests covering the changes. - [ ] I have updated the documentation accordingly. ### ⌛ Dependencies <!-- List all open PRs that this PR logically depends on - sagemath#12345: short description why this is a dependency - sagemath#34567: ... --> - Depends on sagemath#36778 (merged here to resolve merge conflict) <!-- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> URL: sagemath#36839 Reported by: Matthias Köppe Reviewer(s): Dima Pasechnik
Removing Cygwin support from:
Depends on #36779