Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New modularized distributions sagemath-{flint,gap,giac,homfly,ntl,pari} #35663

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
72 commits
Select commit Hold shift + click to select a range
619c8c8
Mark files # sage_setup: distribution = sagemath-flint-arb
mkoeppe Nov 17, 2022
71b5921
Mark files # sage_setup: distribution = sagemath-homfly
mkoeppe Nov 17, 2022
fe08ab2
Mark files # sage_setup: distribution = sagemath-giac
mkoeppe Nov 17, 2022
640aa74
Mark files # sage_setup: distribution = sagemath-gap
mkoeppe Nov 17, 2022
d1ef655
Do not mark *.h files with # sage-setup: distribution
mkoeppe Nov 17, 2022
8c46aab
pkgs/sagemath-gap, build/pkgs/sagemath_gap: New
mkoeppe Nov 17, 2022
6db9b01
pkgs/sagemath-homfly, build/pkgs/sagemath_homfly: New
mkoeppe Nov 17, 2022
390ebb8
build/pkgs/sagemath_{gap,homfly}/spkg-install: Symlink to sagemath_ob…
mkoeppe Nov 18, 2022
9f26fb8
pkgs/sagemath-gap/MANIFEST.in: Add VERSION.txt
mkoeppe Nov 18, 2022
13f030c
src/sage/libs/gap: Add # sage_setup: distribution to more files
mkoeppe Dec 3, 2022
a73b489
Add src/sage/**/all__sagemath_gap.py
mkoeppe Dec 3, 2022
30112b2
pkgs/sagemath-gap: WIP setup.py
mkoeppe Dec 3, 2022
cae814a
src/sage/groups/perm_gps/partn_ref/data_structures.pyx: Remove cimpor…
mkoeppe Dec 3, 2022
5fda124
Add src/sage/**/all__sagemath_gap.py
mkoeppe Dec 3, 2022
a2feea0
Add src/sage/**/all__sagemath_gap.py
mkoeppe Dec 3, 2022
665d01c
pkgs/sagemath-gap/tox.ini: New
mkoeppe Dec 3, 2022
963fa77
pkgs/sagemath-gap/MANIFEST.in: Add deps for sage/coding/codecan
mkoeppe Dec 3, 2022
96b863c
pkgs/sagemath-gap: Update description
mkoeppe Dec 3, 2022
b73a929
build/pkgs/sagemath_gap/dependencies: Update
mkoeppe Dec 3, 2022
fc91135
pkgs/sagemath-homfly: Fix up
mkoeppe Dec 4, 2022
0869a7f
pkgs/sagemath-environment: Add sage.misc.package_dir properly
mkoeppe Dec 4, 2022
31b08a1
.gitignore: Ignore generated files
mkoeppe Dec 4, 2022
961fb3f
pkgs/sagemath-flint-arb: New
mkoeppe Dec 4, 2022
45cce7b
pkgs/sagemath-giac: New
mkoeppe Dec 4, 2022
47a2519
Fixup
mkoeppe Dec 4, 2022
513fc3f
Add tox.ini
mkoeppe Dec 4, 2022
0f198ca
Makefile: Add to PYPI_WHEEL_PACKAGES
mkoeppe Dec 4, 2022
133e5b8
Remove copy-pasted conda.txt files
mkoeppe Dec 4, 2022
4c8f5b5
src/sage/sets/disjoint_set.pyx: Remove obsolete -*- coding -*- line
mkoeppe Dec 4, 2022
2be77af
pkgs/sagemath-flint-arb: Update description
mkoeppe Dec 4, 2022
a827f29
pkgs/sagemath-giac: Update description
mkoeppe Dec 4, 2022
112e29e
src/sage/groups/perm_gps/partn_ref/data_structures.pyx: In doctest su…
mkoeppe Dec 6, 2022
790c12b
Merge tag '9.8.beta5' into t/30666/add__sage_setup__distribution__dir…
mkoeppe Dec 14, 2022
8b1cf25
pkgs/sagemath-standard/setup.py: Include files marked as # sage_setup…
mkoeppe Dec 14, 2022
88e18d0
Merge #34855
mkoeppe Dec 19, 2022
f712d67
Merge #34855
mkoeppe Dec 19, 2022
5fc1add
build/pkgs/sagemath*/spkg-src: Use build
mkoeppe Dec 19, 2022
1531fda
build/pkgs/sagemath_flint_arb/dependencies: Fix up
mkoeppe Dec 19, 2022
b9297fe
Merge #34839
mkoeppe Dec 20, 2022
48c93b9
Merge remote-tracking branch 'upstream/develop' into t/30666/add__sag…
mkoeppe May 22, 2023
2340a91
Rename sagemath-flint-arb to sagemath-flint
mkoeppe May 22, 2023
01681c1
Fix up setup.py imports
mkoeppe May 22, 2023
44bd958
Update versions to 10.0
mkoeppe May 22, 2023
3e50fae
Fix up MANIFEST.in
mkoeppe May 22, 2023
bc39798
src/sage/rings/padics/qadic_flint_*.p*: Add '# sage_setup: distribution'
mkoeppe May 22, 2023
7d3234d
pkgs/sagemath-flint: Fix up MANIFEST.in, package_data
mkoeppe May 22, 2023
f6b241a
src/sage/groups/matrix_gps/*_gap*.p*: Add '# sage_setup: distribution'
mkoeppe May 22, 2023
0c21fff
build/pkgs/sagemath_pari, pkgs/sagemath-pari: New
mkoeppe May 23, 2023
6f519a4
Merge remote-tracking branch 'upstream/develop' into t/30666/add__sag…
mkoeppe May 23, 2023
9b0927c
pkgs/sagemath-pari: Add sage.rings.factorint_pari
mkoeppe May 23, 2023
dbee5f0
build/pkgs/sagemath_ntl, pkgs/sagemath-ntl: New (WIP)
mkoeppe May 23, 2023
d3c1610
pkgs/sagemath-ntl: Add sage.lib.mpfr
mkoeppe May 28, 2023
ecbed8e
Merge remote-tracking branch 'upstream/develop' into t/30666/add__sag…
mkoeppe May 28, 2023
f2c614f
Merge remote-tracking branch 'upstream/develop' into t/30666/add__sag…
mkoeppe Jun 9, 2023
d03cb2e
.gitignore: Fix up
mkoeppe Jun 12, 2023
623880d
Merge remote-tracking branch 'upstream/develop' into t/30666/add__sag…
mkoeppe Jun 12, 2023
bf20fd5
pkgs/sagemath-ntl: Fix up
mkoeppe Jun 12, 2023
83dbfe0
pkgs/sagemath-ntl: Exclude totallyreal
mkoeppe Jun 13, 2023
73b9b4d
build/pkgs/sagemath_ntl/dependencies: Add ntl
mkoeppe Jun 13, 2023
6d0447a
pkgs/sagemath-standard/setup.py: Add sagemath-pari
mkoeppe Jun 13, 2023
b8fed5e
pkgs/sagemath-flint: Add sage-conf as build dependency
mkoeppe Jun 13, 2023
e0d1220
build/pkgs/sagemath_ntl/install-requires.txt: Fixup
mkoeppe Jun 15, 2023
11491c2
pkgs/sagemath-gap: Fixups
mkoeppe Jun 16, 2023
a97f975
src/sage/graphs/spanning_tree.pyx: Remove faulty 'sage_setup: distrib…
mkoeppe Jun 15, 2023
011decd
pkgs/sagemath-gap: Add sage.interfaces.gap*
mkoeppe Jun 16, 2023
5ef0c13
Merge remote-tracking branch 'upstream/develop' into t/30666/add__sag…
mkoeppe Jul 9, 2023
7dfaf07
bootstrap: Write m4/sage_spkg_versions_toml.m4 and use it in pkgs/*/p…
mkoeppe Jun 20, 2023
703dfc5
Use m4/setup_cfg_metadata.m4 in setup.cfg files to reduce boilerplate
mkoeppe Jun 19, 2023
abcee7e
pkgs/sagemath-{flint,gap,giac,homfly,pari}: Update from #35095
mkoeppe Jul 9, 2023
da3510a
src/sage/features/sagemath.py: Remove spkg from features sage.libs.{f…
mkoeppe Jul 9, 2023
7a19835
Merge tag '10.1.beta8' into t/30666/add__sage_setup__distribution__di…
mkoeppe Jul 30, 2023
0dd0300
Merge tag '10.1.rc0' into t/30666/add__sage_setup__distribution__dire…
mkoeppe Aug 13, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
18 changes: 18 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,12 @@ build/bin/sage-build-env-config
/pkgs/sagemath-categories/setup.cfg
/pkgs/sagemath-environment/setup.cfg
/pkgs/sagemath-repl/setup.cfg
/pkgs/sagemath-flint/setup.cfg
/pkgs/sagemath-gap/setup.cfg
/pkgs/sagemath-giac/setup.cfg
/pkgs/sagemath-homfly/setup.cfg
/pkgs/sagemath-ntl/setup.cfg
/pkgs/sagemath-pari/setup.cfg
/pkgs/sagemath-objects/pyproject.toml
/pkgs/sagemath-bliss/pyproject.toml
/pkgs/sagemath-coxeter3/pyproject.toml
Expand All @@ -195,6 +201,12 @@ build/bin/sage-build-env-config
/pkgs/sagemath-categories/pyproject.toml
/pkgs/sagemath-environment/pyproject.toml
/pkgs/sagemath-repl/pyproject.toml
/pkgs/sagemath-flint/pyproject.toml
/pkgs/sagemath-gap/pyproject.toml
/pkgs/sagemath-giac/pyproject.toml
/pkgs/sagemath-homfly/pyproject.toml
/pkgs/sagemath-ntl/pyproject.toml
/pkgs/sagemath-pari/pyproject.toml
/pkgs/sagemath-objects/requirements.txt
/pkgs/sagemath-bliss/requirements.txt
/pkgs/sagemath-coxeter3/requirements.txt
Expand All @@ -205,6 +217,12 @@ build/bin/sage-build-env-config
/pkgs/sagemath-categories/requirements.txt
/pkgs/sagemath-environment/requirements.txt
/pkgs/sagemath-repl/requirements.txt
/pkgs/sagemath-flint/requirements.txt
/pkgs/sagemath-gap/requirements.txt
/pkgs/sagemath-giac/requirements.txt
/pkgs/sagemath-homfly/requirements.txt
/pkgs/sagemath-ntl/requirements.txt
/pkgs/sagemath-pari/requirements.txt
/pkgs/sagemath-categories/MANIFEST.in

# same for old locations - before Issue #31577
Expand Down
6 changes: 6 additions & 0 deletions build/make/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,12 @@ PYPI_WHEEL_PACKAGES = \
sagemath_objects \
sagemath_repl \
sagemath_categories \
sagemath_giac \
sagemath_flint \
sagemath_pari \
sagemath_gap \
sagemath_homfly \
sagemath_ntl \
sagemath_bliss \
sagemath_mcqd \
sagemath_tdlib \
Expand Down
1 change: 1 addition & 0 deletions build/pkgs/sagemath_flint/SPKG.rst
1 change: 1 addition & 0 deletions build/pkgs/sagemath_flint/bootstrap
1 change: 1 addition & 0 deletions build/pkgs/sagemath_flint/dependencies
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
$(PYTHON) sagemath_categories flint arb | $(PYTHON_TOOLCHAIN) sage_setup cython pkgconfig sage_conf
2 changes: 2 additions & 0 deletions build/pkgs/sagemath_flint/install-requires.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# This file is updated on every release by the sage-update-version script
sagemath-flint ~= 10.0
1 change: 1 addition & 0 deletions build/pkgs/sagemath_flint/package-version.txt
1 change: 1 addition & 0 deletions build/pkgs/sagemath_flint/spkg-install
24 changes: 24 additions & 0 deletions build/pkgs/sagemath_flint/spkg-src
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/usr/bin/env bash
#
# Script to prepare an sdist tarball for sagemath-flint
# This script is not used during build.
#
# HOW TO MAKE THE TARBALL:
# ./sage --sh build/pkgs/sagemath_flint/spkg-src

if [ -z "$SAGE_ROOT" ] ; then
echo >&2 "Error - SAGE_ROOT undefined ... exiting"
echo >&2 "Maybe run 'sage -sh'?"
exit 1
fi

# Exit on failure
set -e

cd build/pkgs/sagemath_flint

cd src
# Get rid of old *.egg-info/SOURCES.txt
rm -Rf *.egg-info

python3 -m build --sdist --no-isolation --skip-dependency-check --outdir "$SAGE_DISTFILES"
1 change: 1 addition & 0 deletions build/pkgs/sagemath_flint/src
1 change: 1 addition & 0 deletions build/pkgs/sagemath_flint/type
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
optional
1 change: 1 addition & 0 deletions build/pkgs/sagemath_gap/SPKG.rst
1 change: 1 addition & 0 deletions build/pkgs/sagemath_gap/bootstrap
1 change: 1 addition & 0 deletions build/pkgs/sagemath_gap/dependencies
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
$(PYTHON) sagemath_environment sagemath_categories gap | $(PYTHON_TOOLCHAIN) sage_setup cython pkgconfig
2 changes: 2 additions & 0 deletions build/pkgs/sagemath_gap/install-requires.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# This file is updated on every release by the sage-update-version script
sagemath-gap ~= 10.0
1 change: 1 addition & 0 deletions build/pkgs/sagemath_gap/package-version.txt
30 changes: 30 additions & 0 deletions build/pkgs/sagemath_gap/spkg-install
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/usr/bin/env bash
# From sage-spkg.
# For type=script packages, the build rule in build/make/Makefile sources
# sage-env but not sage-dist-helpers.
lib="$SAGE_ROOT/build/bin/sage-dist-helpers"
source "$lib"
if [ $? -ne 0 ]; then
echo >&2 "Error: failed to source $lib"
echo >&2 "Is $SAGE_ROOT the correct SAGE_ROOT?"
exit 1
fi
cd src

export PIP_NO_INDEX=true
export PIP_FIND_LINKS="file://$SAGE_SPKG_WHEELS"

rm -Rf build
# First build the sdist, then build the wheel from the sdist.
# https://pypa-build.readthedocs.io/en/latest/#python--m-build
# (Important because sagemath-objects uses MANIFEST.in for filtering.)
# Do not install the wheel.
DIST_DIR="$(mktemp -d)"
python3 -m build --outdir "$DIST_DIR"/dist . || sdh_die "Failure building sdist and wheel"
ls -l "$DIST_DIR"/dist/*.tar.gz
wheel=$(cd "$DIST_DIR" && sdh_store_wheel . && echo $wheel)
ls -l "$wheel"

if [ "$SAGE_CHECK" != no ]; then
tox -r -v -e sagepython-sagewheels-nopypi-norequirements --installpkg $wheel
fi
24 changes: 24 additions & 0 deletions build/pkgs/sagemath_gap/spkg-src
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/usr/bin/env bash
#
# Script to prepare an sdist tarball for sagemath-gap
# This script is not used during build.
#
# HOW TO MAKE THE TARBALL:
# ./sage --sh build/pkgs/sagemath_gap/spkg-src

if [ -z "$SAGE_ROOT" ] ; then
echo >&2 "Error - SAGE_ROOT undefined ... exiting"
echo >&2 "Maybe run 'sage -sh'?"
exit 1
fi

# Exit on failure
set -e

cd build/pkgs/sagemath_gap

cd src
# Get rid of old *.egg-info/SOURCES.txt
rm -Rf *.egg-info

python3 -m build --sdist --no-isolation --skip-dependency-check --outdir "$SAGE_DISTFILES"
1 change: 1 addition & 0 deletions build/pkgs/sagemath_gap/src
1 change: 1 addition & 0 deletions build/pkgs/sagemath_gap/type
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
optional
1 change: 1 addition & 0 deletions build/pkgs/sagemath_giac/SPKG.rst
1 change: 1 addition & 0 deletions build/pkgs/sagemath_giac/bootstrap
1 change: 1 addition & 0 deletions build/pkgs/sagemath_giac/dependencies
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
$(PYTHON) sagemath_categories giac | $(PYTHON_TOOLCHAIN) sage_setup cython pkgconfig
2 changes: 2 additions & 0 deletions build/pkgs/sagemath_giac/install-requires.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# This file is updated on every release by the sage-update-version script
sagemath-giac ~= 10.0
1 change: 1 addition & 0 deletions build/pkgs/sagemath_giac/package-version.txt
1 change: 1 addition & 0 deletions build/pkgs/sagemath_giac/spkg-install
24 changes: 24 additions & 0 deletions build/pkgs/sagemath_giac/spkg-src
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/usr/bin/env bash
#
# Script to prepare an sdist tarball for sagemath-giac
# This script is not used during build.
#
# HOW TO MAKE THE TARBALL:
# ./sage --sh build/pkgs/sagemath_giac/spkg-src

if [ -z "$SAGE_ROOT" ] ; then
echo >&2 "Error - SAGE_ROOT undefined ... exiting"
echo >&2 "Maybe run 'sage -sh'?"
exit 1
fi

# Exit on failure
set -e

cd build/pkgs/sagemath_giac

cd src
# Get rid of old *.egg-info/SOURCES.txt
rm -Rf *.egg-info

python3 -m build --sdist --no-isolation --skip-dependency-check --outdir "$SAGE_DISTFILES"
1 change: 1 addition & 0 deletions build/pkgs/sagemath_giac/src
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
1 change: 1 addition & 0 deletions build/pkgs/sagemath_homfly/SPKG.rst
1 change: 1 addition & 0 deletions build/pkgs/sagemath_homfly/bootstrap
1 change: 1 addition & 0 deletions build/pkgs/sagemath_homfly/dependencies
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
$(PYTHON) sagemath_categories libhomfly | $(PYTHON_TOOLCHAIN) sage_setup cython pkgconfig
2 changes: 2 additions & 0 deletions build/pkgs/sagemath_homfly/install-requires.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# This file is updated on every release by the sage-update-version script
sagemath-homfly ~= 10.0
1 change: 1 addition & 0 deletions build/pkgs/sagemath_homfly/package-version.txt
1 change: 1 addition & 0 deletions build/pkgs/sagemath_homfly/spkg-install
24 changes: 24 additions & 0 deletions build/pkgs/sagemath_homfly/spkg-src
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/usr/bin/env bash
#
# Script to prepare an sdist tarball for sagemath-homfly
# This script is not used during build.
#
# HOW TO MAKE THE TARBALL:
# ./sage --sh build/pkgs/sagemath_homfly/spkg-src

if [ -z "$SAGE_ROOT" ] ; then
echo >&2 "Error - SAGE_ROOT undefined ... exiting"
echo >&2 "Maybe run 'sage -sh'?"
exit 1
fi

# Exit on failure
set -e

cd build/pkgs/sagemath_homfly

cd src
# Get rid of old *.egg-info/SOURCES.txt
rm -Rf *.egg-info

python3 -m build --sdist --no-isolation --skip-dependency-check --outdir "$SAGE_DISTFILES"
1 change: 1 addition & 0 deletions build/pkgs/sagemath_homfly/src
1 change: 1 addition & 0 deletions build/pkgs/sagemath_homfly/type
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
optional
1 change: 1 addition & 0 deletions build/pkgs/sagemath_ntl/SPKG.rst
1 change: 1 addition & 0 deletions build/pkgs/sagemath_ntl/bootstrap
1 change: 1 addition & 0 deletions build/pkgs/sagemath_ntl/dependencies
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
$(PYTHON) cypari memory_allocator sagemath_categories ntl | $(PYTHON_TOOLCHAIN) sage_setup sagemath_environment cython pkgconfig
2 changes: 2 additions & 0 deletions build/pkgs/sagemath_ntl/install-requires.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# This file is updated on every release by the sage-update-version script
sagemath-ntl ~= 10.0
1 change: 1 addition & 0 deletions build/pkgs/sagemath_ntl/package-version.txt
30 changes: 30 additions & 0 deletions build/pkgs/sagemath_ntl/spkg-install
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/usr/bin/env bash
# From sage-spkg.
# For type=script packages, the build rule in build/make/Makefile sources
# sage-env but not sage-dist-helpers.
lib="$SAGE_ROOT/build/bin/sage-dist-helpers"
source "$lib"
if [ $? -ne 0 ]; then
echo >&2 "Error: failed to source $lib"
echo >&2 "Is $SAGE_ROOT the correct SAGE_ROOT?"
exit 1
fi
cd src

export PIP_NO_INDEX=true
export PIP_FIND_LINKS="file://$SAGE_SPKG_WHEELS"

rm -Rf build
# First build the sdist, then build the wheel from the sdist.
# https://pypa-build.readthedocs.io/en/latest/#python--m-build
# (Important because sagemath-objects uses MANIFEST.in for filtering.)
# Do not install the wheel.
DIST_DIR="$(mktemp -d)"
python3 -m build --outdir "$DIST_DIR"/dist . || sdh_die "Failure building sdist and wheel"
ls -l "$DIST_DIR"/dist/*.tar.gz
wheel=$(cd "$DIST_DIR" && sdh_store_wheel . && echo $wheel)
ls -l "$wheel"

if [ "$SAGE_CHECK" != no ]; then
tox -r -v -e sagepython-sagewheels-nopypi-norequirements --installpkg $wheel
fi
24 changes: 24 additions & 0 deletions build/pkgs/sagemath_ntl/spkg-src
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/usr/bin/env bash
#
# Script to prepare an sdist tarball for sagemath-gap
# This script is not used during build.
#
# HOW TO MAKE THE TARBALL:
# ./sage --sh build/pkgs/sagemath_pari/spkg-src

if [ -z "$SAGE_ROOT" ] ; then
echo >&2 "Error - SAGE_ROOT undefined ... exiting"
echo >&2 "Maybe run 'sage -sh'?"
exit 1
fi

# Exit on failure
set -e

cd build/pkgs/sagemath_ntl

cd src
# Get rid of old *.egg-info/SOURCES.txt
rm -Rf *.egg-info

python3 -m build --sdist --no-isolation --skip-dependency-check --outdir "$SAGE_DISTFILES"
1 change: 1 addition & 0 deletions build/pkgs/sagemath_ntl/src
1 change: 1 addition & 0 deletions build/pkgs/sagemath_ntl/type
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
optional
1 change: 1 addition & 0 deletions build/pkgs/sagemath_pari/SPKG.rst
1 change: 1 addition & 0 deletions build/pkgs/sagemath_pari/bootstrap
1 change: 1 addition & 0 deletions build/pkgs/sagemath_pari/dependencies
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
$(PYTHON) cypari memory_allocator sagemath_categories | $(PYTHON_TOOLCHAIN) sage_setup sagemath_environment cython pkgconfig
2 changes: 2 additions & 0 deletions build/pkgs/sagemath_pari/install-requires.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# This file is updated on every release by the sage-update-version script
sagemath-gap ~= 10.0
1 change: 1 addition & 0 deletions build/pkgs/sagemath_pari/package-version.txt
30 changes: 30 additions & 0 deletions build/pkgs/sagemath_pari/spkg-install
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/usr/bin/env bash
# From sage-spkg.
# For type=script packages, the build rule in build/make/Makefile sources
# sage-env but not sage-dist-helpers.
lib="$SAGE_ROOT/build/bin/sage-dist-helpers"
source "$lib"
if [ $? -ne 0 ]; then
echo >&2 "Error: failed to source $lib"
echo >&2 "Is $SAGE_ROOT the correct SAGE_ROOT?"
exit 1
fi
cd src

export PIP_NO_INDEX=true
export PIP_FIND_LINKS="file://$SAGE_SPKG_WHEELS"

rm -Rf build
# First build the sdist, then build the wheel from the sdist.
# https://pypa-build.readthedocs.io/en/latest/#python--m-build
# (Important because sagemath-objects uses MANIFEST.in for filtering.)
# Do not install the wheel.
DIST_DIR="$(mktemp -d)"
python3 -m build --outdir "$DIST_DIR"/dist . || sdh_die "Failure building sdist and wheel"
ls -l "$DIST_DIR"/dist/*.tar.gz
wheel=$(cd "$DIST_DIR" && sdh_store_wheel . && echo $wheel)
ls -l "$wheel"

if [ "$SAGE_CHECK" != no ]; then
tox -r -v -e sagepython-sagewheels-nopypi-norequirements --installpkg $wheel
fi
Loading
Loading