Skip to content

Commit 2df7af7

Browse files
author
Release Manager
committed
gh-36612: Replace relative imports by absolute ones in `sage.libs` except `.ntl` <!-- ^^^^^ 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 #1234" use "Introduce new method to calculate 1+1" --> <!-- Describe your changes here in detail --> <!-- 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 #12345". --> - Cherry-picked from #35095 - This is for #36228 <!-- 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. - [ ] 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 - #12345: short description why this is a dependency - #34567: ... --> <!-- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> URL: #36612 Reported by: Matthias Köppe Reviewer(s): Matthias Köppe, Tobias Diez
2 parents 31f1948 + 486508d commit 2df7af7

Some content is hidden

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

89 files changed

+170
-174
lines changed

src/sage/libs/arb/arith.pyx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ Arithmetic functions using the arb library
1212
# http://www.gnu.org/licenses/
1313
#*****************************************************************************
1414

15-
from ..flint.types cimport ulong
16-
from ..flint.fmpq cimport fmpq_t, fmpq_init, fmpq_clear, fmpq_get_mpq
17-
from .bernoulli cimport bernoulli_fmpq_ui
18-
from .acb_modular cimport acb_modular_hilbert_class_poly
15+
from sage.libs.flint.types cimport ulong
16+
from sage.libs.flint.fmpq cimport fmpq_t, fmpq_init, fmpq_clear, fmpq_get_mpq
17+
from sage.libs.arb.bernoulli cimport bernoulli_fmpq_ui
18+
from sage.libs.arb.acb_modular cimport acb_modular_hilbert_class_poly
1919
from sage.rings.rational cimport Rational
2020
from sage.rings.polynomial.polynomial_integer_dense_flint cimport Polynomial_integer_dense_flint
2121
from sage.rings.polynomial.polynomial_ring_constructor import PolynomialRing

src/sage/libs/arb/bernoulli.pxd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# distutils: libraries = gmp flint ARB_LIBRARY
22
# distutils: depends = bernoulli.h
33

4-
from ..flint.types cimport fmpq_t, ulong
4+
from sage.libs.flint.types cimport fmpq_t, ulong
55

66
# bernoulli.h
77
cdef extern from "arb_wrap.h":

src/sage/libs/coxeter3/coxeter.pxd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#*****************************************************************************
99

1010
from sage.structure.sage_object cimport SageObject
11-
from .decl cimport *
11+
from sage.libs.coxeter3.decl cimport *
1212

1313
cdef class String:
1414
cdef c_String x

src/sage/libs/coxeter3/coxeter.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Low level part of the interface to Fokko Ducloux's Coxeter 3 library
1717
# https://www.gnu.org/licenses/
1818
# ****************************************************************************
1919

20-
from .decl cimport *
20+
from sage.libs.coxeter3.decl cimport *
2121
from cpython.object cimport Py_LT, Py_LE, Py_EQ, Py_NE, Py_GT, Py_GE
2222
from sage.cpython.string cimport str_to_bytes, bytes_to_str
2323

src/sage/libs/eclib/homspace.pxd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from ..eclib cimport homspace
1+
from sage.libs.eclib cimport homspace
22

33
cdef class ModularSymbols:
44
cdef homspace* H

src/sage/libs/eclib/homspace.pyx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ from cysignals.signals cimport sig_on, sig_off
44
from cython.operator cimport dereference as deref
55
from cython.operator cimport preincrement as inc
66

7-
from ..eclib cimport svec, mat, smat
8-
from .mat cimport MatrixFactory
7+
from sage.libs.eclib cimport svec, mat, smat
8+
from sage.libs.eclib.mat cimport MatrixFactory
99

1010
from sage.matrix.matrix_space import MatrixSpace
1111
from sage.rings.integer_ring import ZZ

src/sage/libs/eclib/mat.pxd

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
1-
from ..eclib cimport mat
1+
from sage.libs.eclib cimport mat
22

33
cdef class Matrix:
44
cdef mat* M
55

66
cdef class MatrixFactory:
77
cdef new_matrix(self, mat M) noexcept
8-
9-
10-
11-

src/sage/libs/eclib/mat.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Cremona matrices
33
"""
44

5-
from ..eclib cimport scalar, addscalar
5+
from sage.libs.eclib cimport scalar, addscalar
66

77
from sage.matrix.matrix_space import MatrixSpace
88
from sage.rings.integer_ring import ZZ

src/sage/libs/eclib/newforms.pxd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from ..eclib cimport newforms
1+
from sage.libs.eclib cimport newforms
22

33
cdef class ECModularSymbol:
44
cdef newforms* nfs

src/sage/libs/eclib/newforms.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Modular symbols using eclib newforms
1313

1414
from cysignals.signals cimport sig_on, sig_off
1515

16-
from ..eclib cimport *
16+
from sage.libs.eclib cimport *
1717
from sage.libs.gmp.mpq cimport mpq_numref
1818
from sage.libs.ntl.convert cimport mpz_to_ZZ
1919
from sage.rings.rational_field import QQ

0 commit comments

Comments
 (0)