Skip to content

Commit 707bb1f

Browse files
author
Release Manager
committed
sagemathgh-38088: Add `# sage_setup: distribution` directives for the files of existing distributions sagemath-{categories,...,tdlib} <!-- ^ 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". --> These directives at the top of the file inform developers about the assignment of modules to pip-installable distributions. As of this PR, there should be no change to the existing distributions (sagemath-categories...) nor the monolithic build of the Sage library. This is a portion of: - sagemath#37901 In contrast to that PR, it has no dependencies. ### 📝 Checklist <!-- Put an `x` in all the boxes that apply. --> - [x] The title is concise and informative. - [ ] 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 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#38088 Reported by: Matthias Köppe Reviewer(s): Kwankyu Lee
2 parents bd50538 + 3b3b72b commit 707bb1f

File tree

517 files changed

+532
-11
lines changed

Some content is hidden

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

517 files changed

+532
-11
lines changed

pkgs/sagemath-standard/setup.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,11 @@
7272
# TODO: This should be quiet by default
7373
print("Discovering Python/Cython source code....")
7474
t = time.time()
75-
distributions = ['']
75+
distributions = ['sagemath-categories',
76+
'sagemath-environment',
77+
'sagemath-objects',
78+
'sagemath-repl',
79+
'']
7680
log.warn('distributions = {0}'.format(distributions))
7781
from sage_setup.find import find_python_sources
7882
python_packages, python_modules, cython_modules = find_python_sources(

src/sage/all__sagemath_categories.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# sage_setup: distribution = sagemath-categories
12
from sage.all__sagemath_objects import *
23

34
from sage.categories.all import *

src/sage/all__sagemath_environment.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# sage_setup: distribution = sagemath-environment
12
from sage.env import SAGE_ROOT, SAGE_SRC, SAGE_DOC_SRC, SAGE_LOCAL, DOT_SAGE, SAGE_ENV
23

34
from sage.misc.all__sagemath_environment import *

src/sage/all__sagemath_objects.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# sage_setup: distribution = sagemath-objects
12
import os
23
import sys
34
import operator

src/sage/all__sagemath_repl.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# sage_setup: distribution = sagemath-repl
2+
13
# Set up warning filters before importing Sage stuff
24

35
import sys
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
# sage_setup: distribution = sagemath-objects
12
# The presence of this file ensures that sage_setup for sagemath-objects
23
# considers this directory as a namespace package

src/sage/arith/long.pxd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# sage_setup: distribution = sagemath-objects
12
# sage.doctest: needs sage.misc.cython
23
r"""
34
Fast conversion of Python objects to C long

src/sage/arith/numerical_approx.pxd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# sage_setup: distribution = sagemath-objects
12
# sage.doctest: needs sage.rings.real_mpfr
23

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

src/sage/arith/numerical_approx.pyx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# sage_setup: distribution = sagemath-objects
12
# sage.doctest: needs sage.rings.real_mpfr
23
r"""
34
Generic numerical approximation function

src/sage/arith/power.pxd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# sage_setup: distribution = sagemath-objects
12
from cpython.number cimport PyNumber_TrueDivide
23
from sage.structure.element cimport Element
34

0 commit comments

Comments
 (0)