Skip to content

Commit

Permalink
build/pkgs/sagemath_giac: new optional package
Browse files Browse the repository at this point in the history
This optional sage/giac integration package replaces the old hard
dependency on giac that was required to build sage.libs.giac.
  • Loading branch information
orlitzky committed Jan 24, 2025
1 parent dddfdc5 commit 59ecc1c
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 0 deletions.
10 changes: 10 additions & 0 deletions build/pkgs/sagemath_giac/SPKG.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
==============================================================================
Sage: Open Source Mathematics Software: Giac integration
==============================================================================

This pip-installable source distribution ``sagemath-giac`` is a small
optional distribution for use with ``sagemath-standard``.

It provides a Cython interface to the ``libgiac`` library for the
purpose of symbolic integration and certain Groebner basis
calculations.
4 changes: 4 additions & 0 deletions build/pkgs/sagemath_giac/checksums.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
tarball=sagemath-giac-VERSION.tar.gz
sha1=a6fe71575d21791d003e7d94b887413d4e0dea42
sha256=df7ff85a7ed595a805098fe4ff2103be52dcb7c91f5b11001f8979cfa6d68701
upstream_url=https://github.com/orlitzky/sagemath-giac/archive/refs/tags/VERSION.tar.gz
1 change: 1 addition & 0 deletions build/pkgs/sagemath_giac/dependencies
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
cysignals cython giac gmpy2 sagelib | $(PYTHON_TOOLCHAIN) $(PYTHON)
1 change: 1 addition & 0 deletions build/pkgs/sagemath_giac/package-version.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.1.0
3 changes: 3 additions & 0 deletions build/pkgs/sagemath_giac/spkg-configure.m4
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SAGE_SPKG_CONFIGURE([sagemath_giac], [
SAGE_PYTHON_PACKAGE_CHECK([sagemath_giac])
])
8 changes: 8 additions & 0 deletions build/pkgs/sagemath_giac/spkg-install.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Sorry if you wanted to specify your own $CYTHON here, but it won't
# work. We need to run cython using "python /path/to/cython" so that
# the python from the sage venv gets used, which is what makes sure
# that the cython search path includes the venv.
export CYTHON=sage-cython

cd src
sdh_pip_install --no-build-isolation .
1 change: 1 addition & 0 deletions build/pkgs/sagemath_giac/type
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
optional

0 comments on commit 59ecc1c

Please sign in to comment.