Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
196 commits
Select commit Hold shift + click to select a range
94f6216
Conjugate local splitting to make it optimal with respect to the maxi…
Eloitor Jun 5, 2025
b67b989
fix
Eloitor Jun 5, 2025
803c317
Update btquotient.py
fchapoton Jun 6, 2025
31ced24
Add HiGHS solver backend
cxzhong Jan 2, 2026
fcb85b4
Fix import statements for pyparsing functions in simplicial_data_from…
cxzhong Dec 30, 2025
3b3de34
Enhance HiGHS model status handling by adding new status constants an…
cxzhong Jan 3, 2026
81432d6
Sort outputs in various methods for consistent ordering in Bijectioni…
cxzhong Jan 3, 2026
e63b581
revert the round method and set a stricter mip_feasibility_tol to fix…
cxzhong Jan 3, 2026
4bc180b
Disable MIP symmetry detection to prevent deadlock in HiGHS with mult…
cxzhong Jan 3, 2026
6722ca0
Add output control options for HiGHS backend to manage verbosity and …
cxzhong Jan 3, 2026
bb70d9e
first implement of Gamma0
Jan 29, 2026
1704051
Added: computation of the index, doctests
Jan 30, 2026
ec22f78
Fixed extra blank spaces
Jan 30, 2026
2bfe46b
Merge branch 'develop' into highs_new_variable_api
cxzhong Feb 4, 2026
d050aab
Update HiGHS to 1.13.0 and add system package detection
cxzhong Feb 5, 2026
bc6527d
Remove void.txt - HiGHS not packaged in Void Linux
cxzhong Feb 5, 2026
d88a9d1
upgrade conda-lock files
cxzhong Feb 5, 2026
40207cb
Increase MIP feasibility tolerance to 1e-10 in HiGHS backend to reduc…
cxzhong Feb 5, 2026
6590e12
Adjust MIP feasibility tolerance to 1e-8 to balance precision and fea…
cxzhong Feb 5, 2026
7d6ba45
Update SagePromptTransformer regex to include additional prompt format
cxzhong Feb 5, 2026
0b93bb6
Add support for old-style multi-line prompts in SagePromptTransformer
cxzhong Feb 5, 2026
0eb7c01
Fixes and new doctests
Feb 5, 2026
dbb1212
Add highs_backend to documentation and improve variable descriptions
cxzhong Feb 6, 2026
6a834ec
Update mathematical notation in SPKG.rst for clarity and consistency
cxzhong Feb 6, 2026
d89cde8
Update CI configuration and improve documentation in highs_backend
cxzhong Feb 6, 2026
acec4e8
Merge branch 'develop' into Gamma0
Feb 6, 2026
8544c39
remove trailing writespaces
Feb 11, 2026
9ebf72c
fix doctest and implement richcmp
Feb 11, 2026
d40fe81
pushout and classcall
Feb 11, 2026
b99772b
add blank line
Feb 11, 2026
aaa9c6e
Merge branch 'develop' into Gamma0
Feb 13, 2026
59074af
minor
Feb 14, 2026
4b34177
shorten code even more
Feb 14, 2026
24f796c
refactor documentation
Feb 14, 2026
58b2d22
small fixes in the documentation
Feb 14, 2026
202fd61
Merge branch 'develop' into highs_new_variable_api
cxzhong Feb 18, 2026
960e9d3
Update checksums and version for HiGHS package to 1.13.1
cxzhong Feb 18, 2026
e74c5e4
Merge branch 'develop' into highs_new_variable_api
cxzhong Feb 27, 2026
c00108f
Debian's highs package is problematic it has incorrect pkg-config file
cxzhong Mar 7, 2026
e576438
Corrected Correlation Immunity of Boolean Functions
RuchitJagodara Jan 28, 2024
aed6a26
Added doctest
RuchitJagodara Jan 28, 2024
307a3ee
Improved documentation of a function
RuchitJagodara Jan 29, 2024
377e71d
Just a minor change in correlation_immunity function
RuchitJagodara Feb 26, 2024
4ccbbc0
undo breaking change in correlation_immunity
jalich Apr 21, 2026
9704b30
Merge branch 'develop' into Gamma0
Apr 22, 2026
61f249e
Merge branch 'develop' into Gamma0
Apr 26, 2026
2a5c86d
Merge remote-tracking branch 'upstream/develop' into highs_new_variab…
cxzhong Apr 29, 2026
2bbb70b
Update conda lock files via tools/update-conda.py
cxzhong Apr 29, 2026
cd973e7
build/pkgs/highs: Update to 1.14.0
cxzhong Apr 29, 2026
a12d41e
Remove unnecessary changes
cxzhong Apr 29, 2026
390b7cf
Fix some issues
cxzhong Apr 29, 2026
dc37651
Improve HiGHS dependency handling in meson.build by clarifying includ…
cxzhong Apr 30, 2026
5fc5ad3
Add LUW graph constructors
Vlad-Tar Apr 29, 2026
691d7e2
Merge branch 'develop' into luw-graphs
Vlad-Tar May 5, 2026
06b7ed6
src/sage/stats: remove remaining "needs sage.foo" tags
orlitzky Apr 23, 2026
4657578
make change_var an alias of change_variable_name
mantepse May 6, 2026
e273133
Merge branch 'develop' into highs_new_variable_api
cxzhong May 6, 2026
ef93287
fix the build for debian broke and mark highs as require
cxzhong May 6, 2026
39ccdd9
Merge branch 'develop' into Gamma0
xcaruso May 6, 2026
7b06589
more doctests
May 6, 2026
7d2aa9a
small fixes in doctests
May 6, 2026
1481504
Use subproject for the fallback of highs
cxzhong May 7, 2026
9ac32e2
Update HiGHS dependency to be optional with fallback support
cxzhong May 7, 2026
bd546ff
Only use pkg-config method for HiGHS dependency in meson.build
cxzhong May 7, 2026
3d4e5ef
David and Antoine's comments
May 7, 2026
37f8a5f
complete references
May 7, 2026
2cac401
rename class
May 8, 2026
2e5d91f
remove blank lines
May 8, 2026
7a408e7
return integers
May 8, 2026
404c224
Set ruff format quote-style to preserve
vincentmacri May 8, 2026
7de2fdd
Refactor HiGHS dependency handling in meson.build for improved clarit…
cxzhong May 9, 2026
3b2915b
Refactor HiGHS dependency handling to improve header detection and in…
cxzhong May 9, 2026
09d2024
Fix unused local lint errors
cxzhong May 9, 2026
b5dbf91
Use bootstrap -s
cxzhong May 9, 2026
efdbf9a
Merge branch 'develop' into unify_change_variable_name
mantepse May 9, 2026
a36b53e
direct construction of immutable trees
dcoudert May 9, 2026
a22a283
minor fixes for pep8 in various files
fchapoton May 9, 2026
d827238
remove and deprecate the auld class CommutativeRing
fchapoton May 9, 2026
758ed7d
fix number
fchapoton May 9, 2026
cfb19f5
fix complex_arb and real_arb
fchapoton May 9, 2026
c26f56b
fix message
fchapoton May 9, 2026
822f15b
Add restriction in random_cone parameters in examples
cxzhong Apr 22, 2026
a3d8e0e
refactor the example
cxzhong Apr 23, 2026
f82b7e8
Add max restriction of cone
cxzhong May 7, 2026
1bd6003
add restriction of max_rays
cxzhong May 7, 2026
948838a
fix the format
cxzhong May 7, 2026
af7e94b
change two parameters
cxzhong May 8, 2026
05636bb
change the parameter
cxzhong May 9, 2026
203a709
adjust interface and documentation
yyyyx4 Oct 6, 2025
b3fd884
implement generation of maximal orders together with special supersin…
yyyyx4 Oct 6, 2025
5adba1a
doctests
yyyyx4 Apr 9, 2026
0d8994d
q need no longer be prime
yyyyx4 Apr 12, 2026
871510d
clarify documentation
yyyyx4 May 3, 2026
a541ad2
immutable in distance regular graphs part 5
dcoudert May 9, 2026
42b0193
meson.options: add the defer_runtime_checks option
orlitzky Jan 28, 2026
03c04d2
src/sage/meson.build,src/sage/config.py.in: record defer_feature_checks
orlitzky Jan 28, 2026
fa9e8ce
src/sage/features/build_feature.py: new class for build-time features
orlitzky Jan 28, 2026
f08bf25
src/doc/en/reference/spkg/index.rst: add sage.features.build_feature
orlitzky Jan 28, 2026
d758958
src/sage/config.py.in: add placeholder vars for build features
orlitzky Jan 28, 2026
4eebff2
src/**/meson.build: record build-time feature information in conf_data
orlitzky Jan 28, 2026
ae2769d
src/sage/features/brial.py: convert to a BuildFeature
orlitzky Jan 28, 2026
43ec5be
src/sage/features/bliss.py: convert to a BuildFeature
orlitzky Jan 28, 2026
1d319df
src/sage/features/coxeter3.py: convert to a BuildFeature
orlitzky Jan 28, 2026
f9a925e
src/sage/features/mcqd.py: convert to a BuildFeature
orlitzky Jan 28, 2026
21cb115
src/sage/features/meataxe.py: convert to a BuildFeature
orlitzky Jan 28, 2026
433d7a7
src/sage/features/sirocco.py: convert to a BuildFeature
orlitzky Jan 28, 2026
cc1bb29
src/sage/features/tdlib.py: convert to a BuildFeature
orlitzky Jan 28, 2026
015105c
src/sage/features/libhomfly.py: convert to a BuildFeature
orlitzky May 6, 2026
4b79bf6
src/sage/features/rankwidth.py: convert to a BuildFeature
orlitzky May 6, 2026
8252884
src/sage/doctest/external.py: no runtime detection for build features
orlitzky Jan 28, 2026
a240736
build/pkgs/sagelib: defer feature checks to runtime
orlitzky Jan 28, 2026
5e3b760
one more fix
fchapoton May 10, 2026
6e6dcdd
some more fixes
fchapoton May 10, 2026
aefe8e9
minor tweaks in btquotient.py
fchapoton May 10, 2026
d8d2a10
Update src/sage/combinat/growth.py
fchapoton May 10, 2026
6befd39
fix the case of Field
fchapoton May 10, 2026
8bf38f4
another tentative
fchapoton May 10, 2026
4571de6
typo in pyi
fchapoton May 10, 2026
c403028
another fix
fchapoton May 10, 2026
8c81dcb
fix wrong change in findstat interface
fchapoton May 10, 2026
9fc7c83
Merge remote-tracking branch 'origin/develop' into btquotient_splitti…
Eloitor May 10, 2026
4c29604
Implement reversion for base rings of positive characteristic.
erosm13 May 3, 2026
71f9bca
Add deprecation for `reverse`
erosm13 May 10, 2026
0391615
Add revert to pyi file
erosm13 May 11, 2026
86b696d
Remove the rpy2 monkey patch
cxzhong May 11, 2026
62690d9
Update btquotient.py
fchapoton May 11, 2026
97d46f6
Fix matrix PID echelon doctest warnings
cxzhong May 11, 2026
3e76539
Update random_cone examples to include max_rays parameter for improve…
cxzhong May 11, 2026
c99c11e
Address LUW graph generator review comments
Vlad-Tar May 11, 2026
8a772a9
Merge branch 'develop' into luw-graphs
Vlad-Tar May 11, 2026
55817e8
Merge branch 'develop' into highs_new_variable_api
cxzhong May 11, 2026
a7899be
Avoid graph copies in LUW graph builders
Vlad-Tar May 11, 2026
d48da12
Remove deprecated function
erosm13 May 11, 2026
70e0f2c
Update src/sage/rings/laurent_series_ring_element.pyx
erosm13 May 11, 2026
b9140b4
Update src/sage/rings/power_series_poly.pyx
erosm13 May 11, 2026
b9bfa06
Update src/sage/rings/power_series_pari.pyx
erosm13 May 11, 2026
4a0aec1
Fix doctest when `cypari2 leaked` is fixed
tornaria May 11, 2026
b018605
Apply suggestion from @mantepse
erosm13 May 13, 2026
38400cf
Fix linting issues
erosm13 May 13, 2026
88fcb89
Cleanup matrix error checking
vincentmacri May 13, 2026
93da625
delete the whitespace
cxzhong May 14, 2026
2187704
remove code deprecated in #37170
yyyyx4 May 14, 2026
3c6b1ae
deprecate linbox det algorithm and minor var types fix
cxzhong May 14, 2026
66dd48b
Fix doctest issues
erosm13 May 14, 2026
6eec50d
Fix alias
erosm13 May 14, 2026
4541963
Update src/sage/rings/power_series_pari.pyx
erosm13 May 14, 2026
dd46847
Update src/sage/rings/power_series_pari.pyx
erosm13 May 14, 2026
6118e9a
implement proper hash for gap integers
videlec May 14, 2026
f8ece75
implement proper hash for gap rationals
videlec May 14, 2026
cf65f3a
Add python3 to Dockerfile dependencies
cxzhong May 7, 2026
2aec9c2
Correct PATH export syntax in Dockerfile
cxzhong May 8, 2026
8c7aaf1
Add python3-dev to Dockerfile dependencies
cxzhong May 15, 2026
88e450e
fix mistake in documentation
mantepse May 15, 2026
6d19295
Small Fix
erosm13 May 16, 2026
27e5470
fixing a bunch of "optional -internet" doctests
fchapoton May 16, 2026
1590485
fix detail
fchapoton May 16, 2026
2b2b829
Apply suggestion from @fchapoton
fchapoton May 16, 2026
8d09235
adding egf_to_ogf and converse and hadamard_product to lazy series
fchapoton May 16, 2026
2cf14da
tweak name
fchapoton May 16, 2026
da21fba
Update src/sage/data_structures/stream.py
fchapoton May 16, 2026
31b945a
add spaghetti code for Stream_exact
fchapoton May 16, 2026
7205731
Merge branch 'hadamard_for_lazy' of github.com:fchapoton/sage into eg…
fchapoton May 16, 2026
4e68bd9
update to 2.12.0, convert to pip spkg
dimpase May 16, 2026
bccf4e3
May 17, 2026
86c7559
May 17, 2026
d9d3e91
May 17, 2026
2f6f49b
May 17, 2026
0754668
May 17, 2026
fd9e1b6
May 17, 2026
d89bb1c
May 17, 2026
26943de
May 17, 2026
310929a
May 17, 2026
239f462
May 17, 2026
d0c78e5
May 17, 2026
c25262c
May 17, 2026
a0b03ea
May 17, 2026
d04cd0f
May 17, 2026
7c722b1
May 17, 2026
5adc9c7
May 17, 2026
c7b3f54
May 17, 2026
2982518
May 17, 2026
513e591
May 17, 2026
e144f29
May 17, 2026
6632164
May 17, 2026
5b17962
May 17, 2026
cbcde1b
May 17, 2026
49467cb
May 17, 2026
55f52ae
May 17, 2026
14604ac
May 17, 2026
35df1ea
May 17, 2026
0ba228d
May 17, 2026
67df026
May 17, 2026
79b4c8e
May 17, 2026
722ddb8
May 17, 2026
1398283
Updated SageMath version to 10.10.beta1
May 18, 2026
2f57dcb
Merge branch 'develop' into matrix_mul_error_checking
vincentmacri May 19, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- archlinux
#- ubuntu:22.04 - gap is outdated there (only 4.11)
- ubuntu:24.04
- ubuntu:25.04
- ubuntu:26.04
container:
image: ${{ matrix.container }}

Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,12 @@ jobs:
sudo DEBIAN_FRONTEND=noninteractive apt-get install $(build/bin/sage-get-system-packages debian _bootstrap _prereq)
- name: Configure with --enable-download-from-upstream-url
run: |
make configure
# Run "bootstrap -s" so that the configure tarball
# (configure-$(git rev-parse HEAD).tar.gz) is generated and saved
# locally to upstream/. Otherwise "make dist" below tries to
# download it from the Sage mirrors / GitHub release assets, which
# fails for unreleased commits (e.g. on workflow_dispatch / PR runs).
./bootstrap -s
./configure
- name: make dist (--enable-download-from-upstream-url)
id: make_dist
Expand Down
4 changes: 2 additions & 2 deletions CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ title: SageMath
abstract: SageMath is a free open-source mathematics software system.
authors:
- name: "The SageMath Developers"
version: 10.10.beta0
version: 10.10.beta1
doi: 10.5281/zenodo.8042260
date-released: 2026-05-09
date-released: 2026-05-18
repository-code: "https://github.com/sagemath/sage"
url: "https://www.sagemath.org/"
2 changes: 1 addition & 1 deletion VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
10.10.beta0
10.10.beta1
4 changes: 2 additions & 2 deletions build/pkgs/configure/checksums.ini
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
tarball=configure-VERSION.tar.gz
sha1=99e31b3dfe356d5aaae449a774230b2fd532b305
sha256=393e873913e58278ac593bcf66e383048260138a637684f618f86a00a23efbbb
sha1=eda61dd645333ea58511a3e9ca807c0742ad541f
sha256=9103a554db8222d8dbbf9ac8ba192cd640efd8603af628a20a3a0c0e58873339
2 changes: 1 addition & 1 deletion build/pkgs/configure/package-version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4d326550247377bf4b9226f5d21273dbb9e1026e
722ddb85e9475978d0b1ef490d6780091279c753
14 changes: 3 additions & 11 deletions build/pkgs/dot2tex/SPKG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Graphviz a more LaTeX friendly look and feel. This is accomplished by
converting xdot output from Graphviz to a series of PSTricks or PGF/TikZ
commands.

See https://github.com/kjellmf/dot2tex/
See https://github.com/sagemath/dot2tex/

License
-------
Expand All @@ -21,6 +21,7 @@ Upstream Contact
----------------

- Kjell Magne Fauske, km@fauskes.net
- SageMath developers

Dependencies
------------
Expand All @@ -37,18 +38,9 @@ Self-tests dependencies:
- texlive-pictures
- texlive-pstricks

Patches
-------

- remove_test_semicolon.patch:

Remove the failing semicolon test for the open dot2tex
issue #5 - https://github.com/kjellmf/dot2tex/issues/5


Special Update/Build Instructions
---------------------------------

Make sure corresponding optional doctests still pass:

sage -t --long --optional=dot2tex,graphviz,sage src/
sage -t --long --optional=dot2tex,graphviz,sage --all
3 changes: 0 additions & 3 deletions build/pkgs/dot2tex/checksums.ini

This file was deleted.

1 change: 0 additions & 1 deletion build/pkgs/dot2tex/package-version.txt

This file was deleted.

33 changes: 0 additions & 33 deletions build/pkgs/dot2tex/patches/remove_test_semicolon.patch

This file was deleted.

1 change: 1 addition & 0 deletions build/pkgs/dot2tex/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dot2tex >=2.12.0
11 changes: 0 additions & 11 deletions build/pkgs/dot2tex/spkg-install.in

This file was deleted.

1 change: 0 additions & 1 deletion build/pkgs/dot2tex/version_requirements.txt

This file was deleted.

45 changes: 45 additions & 0 deletions build/pkgs/highs/SPKG.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
highs: Linear optimization solver
=================================

Description
-----------

HiGHS is a high performance serial and parallel solver for large scale sparse
linear optimization problems of the form:

.. MATH::

\min \, c^T x \quad \text{subject to} \quad L \leq Ax \leq U, \; l \leq x \leq u

where :math:`c`, :math:`x`, :math:`l`, :math:`u` are vectors,
:math:`L`, :math:`U` are constraint bound vectors, and :math:`A` is a matrix.

HiGHS has implementations of the dual revised simplex method, primal and dual
revised simplex solvers, an interior point solver, and a MIP solver.

This package builds the HiGHS C/C++ library with C API headers for use in
Sage's numerical backends.

License
-------

- MIT License

Upstream Contact
----------------

- https://github.com/ERGO-Code/HiGHS
- https://www.highs.dev
- Email: hello@highs.dev

Dependencies
------------

- CMake (build dependency)

Special Update/Build Instructions
----------------------------------

The library is built using CMake and provides the C API interface
(highs_c_api.h) for integration with Sage's backend system.

4 changes: 4 additions & 0 deletions build/pkgs/highs/checksums.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
tarball=highs-VERSION.tar.gz
sha1=fbde91befa72d303149fa7be32dcd44b73e406eb
sha256=05931e8dd8c8cac514da8297003c31a206a0004d542b7da500810b85c87c20b9
upstream_url=https://github.com/ERGO-Code/HiGHS/archive/refs/tags/vVERSION.tar.gz
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
| $(PYTHON_TOOLCHAIN) pyparsing $(PYTHON)
cmake

----------
All lines of this file are ignored except the first.
1 change: 1 addition & 0 deletions build/pkgs/highs/distros/arch.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
highs
1 change: 1 addition & 0 deletions build/pkgs/highs/distros/conda.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
highs
2 changes: 2 additions & 0 deletions build/pkgs/highs/distros/debian.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
libhighs-dev
highs
2 changes: 2 additions & 0 deletions build/pkgs/highs/distros/fedora.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
coin-or-HiGHS
coin-or-HiGHS-devel
1 change: 1 addition & 0 deletions build/pkgs/highs/distros/freebsd.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
math/highs
1 change: 1 addition & 0 deletions build/pkgs/highs/distros/gentoo.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sci-mathematics/highs
1 change: 1 addition & 0 deletions build/pkgs/highs/distros/homebrew.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
highs
1 change: 1 addition & 0 deletions build/pkgs/highs/distros/macports.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
HiGHS
1 change: 1 addition & 0 deletions build/pkgs/highs/distros/nix.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
highs
2 changes: 2 additions & 0 deletions build/pkgs/highs/distros/opensuse.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
HiGHS
HiGHS-devel
1 change: 1 addition & 0 deletions build/pkgs/highs/distros/repology.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
highs
Empty file added build/pkgs/highs/math
Empty file.
1 change: 1 addition & 0 deletions build/pkgs/highs/package-version.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.14.0
37 changes: 37 additions & 0 deletions build/pkgs/highs/spkg-configure.m4
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
SAGE_SPKG_CONFIGURE([highs], [
m4_pushdef([SAGE_HIGHS_MINVER],["1.12.0"])
dnl First check if HiGHS is available via pkg-config
PKG_CHECK_MODULES([HIGHS], [highs >= $SAGE_HIGHS_MINVER], [
dnl pkg-config found HiGHS, now verify the headers are actually usable
dnl Some distro packages (e.g., Debian) have broken pkg-config files
dnl with incorrect include paths from the build directory
save_CPPFLAGS="$CPPFLAGS"
CPPFLAGS="$CPPFLAGS $HIGHS_CFLAGS"
AC_MSG_CHECKING([whether HiGHS headers are usable])
AC_COMPILE_IFELSE([
AC_LANG_PROGRAM([[
#include <interfaces/highs_c_api.h>
typedef char sage_highsint_must_match_int[
(sizeof(HighsInt) == sizeof(int)) ? 1 : -1
];
]], [[
Highs_create();
]])
], [
AC_MSG_RESULT([yes])
], [
AC_MSG_RESULT([no])
AC_MSG_NOTICE([HiGHS pkg-config found but headers not usable.])
AC_MSG_NOTICE([This may indicate a broken system package with incorrect include paths.])
AC_MSG_NOTICE([It may also indicate that HiGHS was built with 64-bit HighsInt,])
AC_MSG_NOTICE([which is not compatible with Sage's current HiGHS Cython wrapper.])
AC_MSG_NOTICE([Will build HiGHS from source.])
sage_spkg_install_highs=yes
])
CPPFLAGS="$save_CPPFLAGS"
], [
dnl pkg-config did not find HiGHS
sage_spkg_install_highs=yes
])
m4_popdef([SAGE_HIGHS_MINVER])
])
14 changes: 14 additions & 0 deletions build/pkgs/highs/spkg-install.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
cd src
mkdir -p build
cd build
sdh_cmake -DBUILD_SHARED_LIBS=ON \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_TESTING=OFF \
-DBUILD_CXX=ON \
-DZLIB=ON \
-DCMAKE_VERBOSE_MAKEFILE=ON \
-DCMAKE_INSTALL_LIBDIR=lib \
..
sdh_make
sdh_make_install

1 change: 1 addition & 0 deletions build/pkgs/highs/type
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
standard
2 changes: 1 addition & 1 deletion build/pkgs/sage_docbuild/version_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# This file is updated on every release by the update-version script
sage-docbuild ~= 10.9
sage-docbuild ~= 10.10b0
2 changes: 1 addition & 1 deletion build/pkgs/sage_setup/version_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# This file is updated on every release by the update-version script
sage-setup ~= 10.9
sage-setup ~= 10.10b0
2 changes: 1 addition & 1 deletion build/pkgs/sagelib/dependencies
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FORCE $(SCRIPTS) $(BLAS) brial cliquer cypari cysignals cython ecl eclib ecm flint libgd gap givaro glpk gmpy2 gsl iml jupyter_core lcalc lrcalc_python libbraiding libhomfly libpng linbox m4ri m4rie maxima memory_allocator mpc mpfi mpfr $(MP_LIBRARY) ntl numpy pari pip pkgconfig planarity ppl pplpy primesieve primecount primecountpy $(PYTHON) requests rw singular symmetrica typing_extensions $(PCFILES) | $(PYTHON_TOOLCHAIN) $(PYTHON) pythran
FORCE $(SCRIPTS) $(BLAS) brial cliquer cypari cysignals cython ecl eclib ecm flint libgd gap givaro glpk gmpy2 gsl highs iml jupyter_core lcalc lrcalc_python libbraiding libhomfly libpng linbox m4ri m4rie maxima memory_allocator mpc mpfi mpfr $(MP_LIBRARY) ntl numpy pari pip pkgconfig planarity ppl pplpy primesieve primecount primecountpy $(PYTHON) requests rw singular symmetrica typing_extensions $(PCFILES) | $(PYTHON_TOOLCHAIN) $(PYTHON) pythran

----------
All lines of this file are ignored except the first.
Expand Down
6 changes: 4 additions & 2 deletions build/pkgs/sagelib/spkg-install.in
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ if [ "$SAGE_EDITABLE" = yes ]; then
--config-settings=build-dir="build/sage-distro" \
--config-settings=setup-args="--native-file=$SAGE_PKGS/../platform/meson/sage-configure-native-file.ini" \
--config-settings=setup-args="-DSAGE_LOCAL=$SAGE_LOCAL" \
--config-settings=setup-args="-Dbuild-docs=$SAGE_BUILD_DOCS"
--config-settings=setup-args="-Dbuild-docs=$SAGE_BUILD_DOCS" \
--config-settings=setup-args="-Ddefer_feature_checks=true"

if [ "$SAGE_WHEELS" = yes ]; then
# Additionally build a wheel (for use in other venvs)
Expand All @@ -73,7 +74,8 @@ else
# Compiling sage/interfaces/sagespawn.pyx because it depends on /private/var/folders/38/wnh4gf1552g_crsjnv2vmmww0000gp/T/pip-build-env-609n5985/overlay/lib/python3.10/site-packages/Cython/Includes/posix/unistd.pxd
sdh_pip_install --no-build-isolation . --config-setting=build-dir="build/sage-distro" \
--config-setting=setup-args="-DSAGE_LOCAL=$SAGE_LOCAL" \
--config-setting=setup-args="-Dbuild-docs=$SAGE_BUILD_DOCS"
--config-setting=setup-args="-Dbuild-docs=$SAGE_BUILD_DOCS" \
--config-settings=setup-args="-Ddefer_feature_checks=true"
fi

# Remove (potentially invalid) star import caches.
Expand Down
2 changes: 1 addition & 1 deletion build/pkgs/sagemath_categories/version_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# This file is updated on every release by the update-version script
sagemath-categories ~= 10.9
sagemath-categories ~= 10.10b0
2 changes: 1 addition & 1 deletion build/pkgs/sagemath_environment/version_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# This file is updated on every release by the update-version script
sagemath-environment ~= 10.9
sagemath-environment ~= 10.10b0
2 changes: 1 addition & 1 deletion build/pkgs/sagemath_objects/version_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# This file is updated on every release by the update-version script
sagemath-objects ~= 10.9
sagemath-objects ~= 10.10b0
2 changes: 1 addition & 1 deletion build/pkgs/sagemath_repl/version_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# This file is updated on every release by the update-version script
sagemath-repl ~= 10.9
sagemath-repl ~= 10.10b0
2 changes: 1 addition & 1 deletion conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def _find(
root=self.config.rootpath,
consider_namespace_packages=True,
)
except ImportError as exception:
except ImportError:
if self.config.getvalue("doctest_ignore_import_errors"):
pytest.skip("unable to import module %r" % self.path)
else:
Expand Down
4 changes: 2 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ RUN ln -s /usr/bin/sage /usr/bin/sagemath
# We need gcc/g++ to allow compilation of cython at run-time from the notebook.
# We also install sudo for the sage user, see below.
RUN apt-get -qq update \
&& apt-get -qq install -y --no-install-recommends gfortran gcc g++ sudo openssl pkg-config patch libz-dev libbz2-dev bzip2 ca-certificates perl libboost-dev \
&& apt-get -qq install -y --no-install-recommends gfortran gcc g++ sudo openssl pkg-config patch libz-dev libbz2-dev bzip2 ca-certificates perl libboost-dev python3 python3-dev \
&& apt-get -qq clean \
&& rm -r /var/lib/apt/lists/*
# Sage refuses to build as root, so we add a "sage" user that can sudo without a password.
Expand Down Expand Up @@ -232,7 +232,7 @@ ARG SAGE_ROOT=/home/sage/sage
COPY --chown=sage:sage --from=make-release $SAGE_ROOT/ $SAGE_ROOT/
# set path in bashrc to start gap, gp, maxima, ... this does not
# affect Sage (see https://github.com/sagemath/sage/pull/38049)
RUN echo "export PATH=$SAGE_ROOT/local/bin:$PATH" >> ~/.bashrc
RUN echo 'export PATH='"$SAGE_ROOT"'/local/bin:$PATH' >> ~/.bashrc

COPY ./docker/entrypoint.sh /usr/local/bin/sage-entrypoint
WORKDIR $HOME
Expand Down
Loading
Loading