Skip to content

Commit d9868b5

Browse files
author
Release Manager
committed
gh-36598: Relativize header imports <!-- ^^^^^ 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 --> I don't know why, but I've seen similar changes in other PRs and its easier to use with meson. Should be all of them. <!-- 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". --> <!-- 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. --> - [ ] The title is concise, informative, and self-explanatory. - [ ] 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 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: #36598 Reported by: Tobias Diez Reviewer(s):
2 parents 1a2624f + 6008dc3 commit d9868b5

7 files changed

+8
-8
lines changed

src/sage/ext/cplusplus.pxd

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# http://www.gnu.org/licenses/
99
#*****************************************************************************
1010

11-
cdef extern from "sage/ext/ccobject.h":
11+
cdef extern from "ccobject.h":
1212
# Print representation of any C++ object
1313
str ccrepr[T](const T& x)
1414

src/sage/libs/ntl/convert.pyx

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Conversion between NTL's ``ZZ`` and various other types
2323
from sage.libs.gmp.mpz cimport mpz_init, mpz_clear
2424
from sage.libs.gmp.pylong cimport mpz_set_pylong
2525

26-
cdef extern from "sage/libs/ntl/ntlwrap_impl.h":
26+
cdef extern from "ntlwrap_impl.h":
2727
void ZZ_to_mpz(mpz_t output, ZZ_c* x)
2828
void mpz_to_ZZ(ZZ_c *output, mpz_srcptr x)
2929

src/sage/modular/arithgroup/farey_symbol.pyx

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ from sage.misc.cachefunc import cached_method
4343
from sage.structure.richcmp cimport richcmp_not_equal
4444

4545

46-
cdef extern from "sage/modular/arithgroup/sl2z.hpp":
46+
cdef extern from "sl2z.hpp":
4747
cppclass cpp_SL2Z "SL2Z":
4848
mpz_class a, b, c, d
4949
cpp_SL2Z(int, int, int, int)
@@ -53,7 +53,7 @@ cdef extern from "sage/modular/arithgroup/sl2z.hpp":
5353
mpz_class c()
5454
mpz_class d()
5555

56-
cdef extern from "sage/modular/arithgroup/farey.hpp":
56+
cdef extern from "farey.hpp":
5757
cppclass is_element_Gamma0:
5858
is_element_Gamma0(int)
5959
cppclass is_element_Gamma1:

src/sage/rings/padics/padic_capped_absolute_element.pyx

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ include "CA_template.pxi"
2525
from sage.libs.pari.convert_gmp cimport new_gen_from_padic
2626
from sage.rings.finite_rings.integer_mod import Mod
2727

28-
cdef extern from "sage/rings/padics/transcendantal.c":
28+
cdef extern from "transcendantal.c":
2929
cdef void padiclog(mpz_t ans, const mpz_t a, unsigned long p, unsigned long prec, const mpz_t modulo)
3030
cdef void padicexp(mpz_t ans, const mpz_t a, unsigned long p, unsigned long prec, const mpz_t modulo)
3131
cdef void padicexp_Newton(mpz_t ans, const mpz_t a, unsigned long p, unsigned long prec, unsigned long precinit, const mpz_t modulo)

src/sage/rings/padics/padic_capped_relative_element.pyx

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ from sage.libs.pari.convert_gmp cimport new_gen_from_padic
2929
from sage.rings.finite_rings.integer_mod import Mod
3030
from sage.rings.padics.pow_computer cimport PowComputer_class
3131

32-
cdef extern from "sage/rings/padics/transcendantal.c":
32+
cdef extern from "transcendantal.c":
3333
cdef void padiclog(mpz_t ans, const mpz_t a, unsigned long p, unsigned long prec, const mpz_t modulo)
3434
cdef void padicexp(mpz_t ans, const mpz_t a, unsigned long p, unsigned long prec, const mpz_t modulo)
3535
cdef void padicexp_Newton(mpz_t ans, const mpz_t a, unsigned long p, unsigned long prec, unsigned long precinit, const mpz_t modulo)

src/sage/rings/padics/padic_fixed_mod_element.pyx

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ include "FM_template.pxi"
2727
from sage.libs.pari.convert_gmp cimport new_gen_from_padic
2828
from sage.rings.finite_rings.integer_mod import Mod
2929

30-
cdef extern from "sage/rings/padics/transcendantal.c":
30+
cdef extern from "transcendantal.c":
3131
cdef void padiclog(mpz_t ans, const mpz_t a, unsigned long p, unsigned long prec, const mpz_t modulo)
3232
cdef void padicexp(mpz_t ans, const mpz_t a, unsigned long p, unsigned long prec, const mpz_t modulo)
3333
cdef void padicexp_Newton(mpz_t ans, const mpz_t a, unsigned long p, unsigned long prec, unsigned long precinit, const mpz_t modulo)

src/sage/rings/padics/padic_floating_point_element.pyx

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ from sage.libs.pari.all import pari
2525
from sage.libs.pari.convert_gmp cimport new_gen_from_padic
2626
from sage.rings.finite_rings.integer_mod import Mod
2727

28-
cdef extern from "sage/rings/padics/transcendantal.c":
28+
cdef extern from "transcendantal.c":
2929
cdef void padicexp(mpz_t ans, const mpz_t a, unsigned long p, unsigned long prec, const mpz_t modulo)
3030
cdef void padicexp_Newton(mpz_t ans, const mpz_t a, unsigned long p, unsigned long prec, unsigned long precinit, const mpz_t modulo)
3131

0 commit comments

Comments
 (0)