Skip to content

Commit 57090ea

Browse files
author
Release Manager
committed
sagemathgh-40801: Remove magic `# sage_setup` comments and their handling <!-- ^ Please provide a concise and informative title. --> <!-- ^ Don't put issue numbers in the title, do this in the PR description below. --> <!-- ^ For example, instead of "Fixes sagemath#12345" use "Introduce new method to calculate 1 + 2". --> <!-- v Describe your changes below in detail. --> <!-- v Why is this change required? What problem does it solve? --> <!-- v If this PR resolves an open issue, please link to it here. For example, "Fixes sagemath#12345". --> Since sagelib (and sage-the-distro) are no longer using sage_setup, these can go. I was wondering of also the distutil comments in cython files are safe to be deleted, or are they implicitly used in downstream user packages? ### 📝 Checklist <!-- Put an `x` in all the boxes that apply. --> - [ ] The title is concise and informative. - [ ] The description explains in detail what this PR is about. - [ ] I have linked a relevant issue or discussion. - [ ] I have created tests covering the changes. - [ ] I have updated the documentation and checked the documentation preview. ### ⌛ Dependencies <!-- List all open PRs that this PR logically depends on. For example, --> <!-- - sagemath#12345: short description why this is a dependency --> <!-- - sagemath#34567: ... --> URL: sagemath#40801 Reported by: Tobias Diez Reviewer(s): Dima Pasechnik
2 parents cb77153 + 34995ae commit 57090ea

File tree

535 files changed

+49
-979
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

535 files changed

+49
-979
lines changed

src/bin/sage

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -482,9 +482,6 @@ usage_advanced() {
482482
echo " --fixdoctests file.py"
483483
echo " -- Run doctests and replace output of failing doctests"
484484
echo " with actual output."
485-
echo " --fixdistributions <files|dirs>"
486-
echo " -- Check or update '# sage_setup: distribution'"
487-
echo " directives in source files"
488485
fi
489486
echo " --sh [...] -- run a shell with Sage environment variables"
490487
echo " as they are set in the runtime of Sage"

src/sage/algebras/steenrod/all.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# sage_setup: distribution = sagemath-combinat
21
"""
32
The Steenrod algebra
43
"""

src/sage/arith/long.pxd

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# sage_setup: distribution = sagemath-objects
21
# sage.doctest: needs sage.misc.cython
32
r"""
43
Fast conversion of Python objects to C long

src/sage/arith/numerical_approx.pxd

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# sage_setup: distribution = sagemath-objects
21
# sage.doctest: needs sage.rings.real_mpfr
32

43
cpdef inline long digits_to_bits(d) except -1:

src/sage/arith/numerical_approx.pyx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# sage_setup: distribution = sagemath-objects
21
# sage.doctest: needs sage.rings.real_mpfr
32
r"""
43
Generic numerical approximation function

src/sage/arith/power.pxd

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# sage_setup: distribution = sagemath-objects
21
from cpython.number cimport PyNumber_TrueDivide
32
from sage.structure.element cimport Element
43

src/sage/arith/power.pyx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# sage_setup: distribution = sagemath-objects
21
"""
32
Generic implementation of powering
43

src/sage/categories/action.pxd

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# sage_setup: distribution = sagemath-objects
21
from sage.structure.element cimport Element
32
from sage.categories.morphism cimport Morphism
43
from sage.categories.map cimport Map

src/sage/categories/action.pyx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# sage_setup: distribution = sagemath-objects
21
r"""
32
Group, ring, etc. actions on objects
43

src/sage/categories/additive_groups.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# sage_setup: distribution = sagemath-categories
21
r"""
32
Additive groups
43
"""

0 commit comments

Comments
 (0)