diff --git a/.gitignore b/.gitignore index efdbfa8f616..2ee36ae3f54 100644 --- a/.gitignore +++ b/.gitignore @@ -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 @@ -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 @@ -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 diff --git a/build/make/Makefile.in b/build/make/Makefile.in index b6858173362..dc2efff463d 100644 --- a/build/make/Makefile.in +++ b/build/make/Makefile.in @@ -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 \ diff --git a/build/pkgs/sagemath_flint/SPKG.rst b/build/pkgs/sagemath_flint/SPKG.rst new file mode 120000 index 00000000000..b4545b4bda6 --- /dev/null +++ b/build/pkgs/sagemath_flint/SPKG.rst @@ -0,0 +1 @@ +src/README.rst \ No newline at end of file diff --git a/build/pkgs/sagemath_flint/bootstrap b/build/pkgs/sagemath_flint/bootstrap new file mode 120000 index 00000000000..40542346a4e --- /dev/null +++ b/build/pkgs/sagemath_flint/bootstrap @@ -0,0 +1 @@ +../sagelib/bootstrap \ No newline at end of file diff --git a/build/pkgs/sagemath_flint/dependencies b/build/pkgs/sagemath_flint/dependencies new file mode 100644 index 00000000000..58b27a7f55a --- /dev/null +++ b/build/pkgs/sagemath_flint/dependencies @@ -0,0 +1 @@ +$(PYTHON) sagemath_categories flint arb | $(PYTHON_TOOLCHAIN) sage_setup cython pkgconfig sage_conf diff --git a/build/pkgs/sagemath_flint/install-requires.txt b/build/pkgs/sagemath_flint/install-requires.txt new file mode 100644 index 00000000000..d1e5f7052f5 --- /dev/null +++ b/build/pkgs/sagemath_flint/install-requires.txt @@ -0,0 +1,2 @@ +# This file is updated on every release by the sage-update-version script +sagemath-flint ~= 10.0 diff --git a/build/pkgs/sagemath_flint/package-version.txt b/build/pkgs/sagemath_flint/package-version.txt new file mode 120000 index 00000000000..c4540217bba --- /dev/null +++ b/build/pkgs/sagemath_flint/package-version.txt @@ -0,0 +1 @@ +src/VERSION.txt \ No newline at end of file diff --git a/build/pkgs/sagemath_flint/spkg-install b/build/pkgs/sagemath_flint/spkg-install new file mode 120000 index 00000000000..e60fac9ffa1 --- /dev/null +++ b/build/pkgs/sagemath_flint/spkg-install @@ -0,0 +1 @@ +../sagemath_objects/spkg-install \ No newline at end of file diff --git a/build/pkgs/sagemath_flint/spkg-src b/build/pkgs/sagemath_flint/spkg-src new file mode 100755 index 00000000000..557f275e331 --- /dev/null +++ b/build/pkgs/sagemath_flint/spkg-src @@ -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" diff --git a/build/pkgs/sagemath_flint/src b/build/pkgs/sagemath_flint/src new file mode 120000 index 00000000000..544b611bda1 --- /dev/null +++ b/build/pkgs/sagemath_flint/src @@ -0,0 +1 @@ +../../../pkgs/sagemath-flint \ No newline at end of file diff --git a/build/pkgs/sagemath_flint/type b/build/pkgs/sagemath_flint/type new file mode 100644 index 00000000000..134d9bc32d5 --- /dev/null +++ b/build/pkgs/sagemath_flint/type @@ -0,0 +1 @@ +optional diff --git a/build/pkgs/sagemath_gap/SPKG.rst b/build/pkgs/sagemath_gap/SPKG.rst new file mode 120000 index 00000000000..b4545b4bda6 --- /dev/null +++ b/build/pkgs/sagemath_gap/SPKG.rst @@ -0,0 +1 @@ +src/README.rst \ No newline at end of file diff --git a/build/pkgs/sagemath_gap/bootstrap b/build/pkgs/sagemath_gap/bootstrap new file mode 120000 index 00000000000..40542346a4e --- /dev/null +++ b/build/pkgs/sagemath_gap/bootstrap @@ -0,0 +1 @@ +../sagelib/bootstrap \ No newline at end of file diff --git a/build/pkgs/sagemath_gap/dependencies b/build/pkgs/sagemath_gap/dependencies new file mode 100644 index 00000000000..280291af7cd --- /dev/null +++ b/build/pkgs/sagemath_gap/dependencies @@ -0,0 +1 @@ +$(PYTHON) sagemath_environment sagemath_categories gap | $(PYTHON_TOOLCHAIN) sage_setup cython pkgconfig diff --git a/build/pkgs/sagemath_gap/install-requires.txt b/build/pkgs/sagemath_gap/install-requires.txt new file mode 100644 index 00000000000..228eac70b53 --- /dev/null +++ b/build/pkgs/sagemath_gap/install-requires.txt @@ -0,0 +1,2 @@ +# This file is updated on every release by the sage-update-version script +sagemath-gap ~= 10.0 diff --git a/build/pkgs/sagemath_gap/package-version.txt b/build/pkgs/sagemath_gap/package-version.txt new file mode 120000 index 00000000000..c4540217bba --- /dev/null +++ b/build/pkgs/sagemath_gap/package-version.txt @@ -0,0 +1 @@ +src/VERSION.txt \ No newline at end of file diff --git a/build/pkgs/sagemath_gap/spkg-install b/build/pkgs/sagemath_gap/spkg-install new file mode 100755 index 00000000000..81355093128 --- /dev/null +++ b/build/pkgs/sagemath_gap/spkg-install @@ -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 diff --git a/build/pkgs/sagemath_gap/spkg-src b/build/pkgs/sagemath_gap/spkg-src new file mode 100755 index 00000000000..f6030db6a8c --- /dev/null +++ b/build/pkgs/sagemath_gap/spkg-src @@ -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" diff --git a/build/pkgs/sagemath_gap/src b/build/pkgs/sagemath_gap/src new file mode 120000 index 00000000000..c6c9cb7af91 --- /dev/null +++ b/build/pkgs/sagemath_gap/src @@ -0,0 +1 @@ +../../../pkgs/sagemath-gap \ No newline at end of file diff --git a/build/pkgs/sagemath_gap/type b/build/pkgs/sagemath_gap/type new file mode 100644 index 00000000000..134d9bc32d5 --- /dev/null +++ b/build/pkgs/sagemath_gap/type @@ -0,0 +1 @@ +optional diff --git a/build/pkgs/sagemath_giac/SPKG.rst b/build/pkgs/sagemath_giac/SPKG.rst new file mode 120000 index 00000000000..b4545b4bda6 --- /dev/null +++ b/build/pkgs/sagemath_giac/SPKG.rst @@ -0,0 +1 @@ +src/README.rst \ No newline at end of file diff --git a/build/pkgs/sagemath_giac/bootstrap b/build/pkgs/sagemath_giac/bootstrap new file mode 120000 index 00000000000..40542346a4e --- /dev/null +++ b/build/pkgs/sagemath_giac/bootstrap @@ -0,0 +1 @@ +../sagelib/bootstrap \ No newline at end of file diff --git a/build/pkgs/sagemath_giac/dependencies b/build/pkgs/sagemath_giac/dependencies new file mode 100644 index 00000000000..bb845cfb41c --- /dev/null +++ b/build/pkgs/sagemath_giac/dependencies @@ -0,0 +1 @@ +$(PYTHON) sagemath_categories giac | $(PYTHON_TOOLCHAIN) sage_setup cython pkgconfig diff --git a/build/pkgs/sagemath_giac/install-requires.txt b/build/pkgs/sagemath_giac/install-requires.txt new file mode 100644 index 00000000000..d823b1a7807 --- /dev/null +++ b/build/pkgs/sagemath_giac/install-requires.txt @@ -0,0 +1,2 @@ +# This file is updated on every release by the sage-update-version script +sagemath-giac ~= 10.0 diff --git a/build/pkgs/sagemath_giac/package-version.txt b/build/pkgs/sagemath_giac/package-version.txt new file mode 120000 index 00000000000..c4540217bba --- /dev/null +++ b/build/pkgs/sagemath_giac/package-version.txt @@ -0,0 +1 @@ +src/VERSION.txt \ No newline at end of file diff --git a/build/pkgs/sagemath_giac/spkg-install b/build/pkgs/sagemath_giac/spkg-install new file mode 120000 index 00000000000..e60fac9ffa1 --- /dev/null +++ b/build/pkgs/sagemath_giac/spkg-install @@ -0,0 +1 @@ +../sagemath_objects/spkg-install \ No newline at end of file diff --git a/build/pkgs/sagemath_giac/spkg-src b/build/pkgs/sagemath_giac/spkg-src new file mode 100755 index 00000000000..22a051ef282 --- /dev/null +++ b/build/pkgs/sagemath_giac/spkg-src @@ -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" diff --git a/build/pkgs/sagemath_giac/src b/build/pkgs/sagemath_giac/src new file mode 120000 index 00000000000..6c40ff4f747 --- /dev/null +++ b/build/pkgs/sagemath_giac/src @@ -0,0 +1 @@ +../../../pkgs/sagemath-giac \ No newline at end of file diff --git a/build/pkgs/sagemath_giac/type b/build/pkgs/sagemath_giac/type new file mode 100644 index 00000000000..134d9bc32d5 --- /dev/null +++ b/build/pkgs/sagemath_giac/type @@ -0,0 +1 @@ +optional diff --git a/build/pkgs/sagemath_homfly/SPKG.rst b/build/pkgs/sagemath_homfly/SPKG.rst new file mode 120000 index 00000000000..b4545b4bda6 --- /dev/null +++ b/build/pkgs/sagemath_homfly/SPKG.rst @@ -0,0 +1 @@ +src/README.rst \ No newline at end of file diff --git a/build/pkgs/sagemath_homfly/bootstrap b/build/pkgs/sagemath_homfly/bootstrap new file mode 120000 index 00000000000..40542346a4e --- /dev/null +++ b/build/pkgs/sagemath_homfly/bootstrap @@ -0,0 +1 @@ +../sagelib/bootstrap \ No newline at end of file diff --git a/build/pkgs/sagemath_homfly/dependencies b/build/pkgs/sagemath_homfly/dependencies new file mode 100644 index 00000000000..06784a6984d --- /dev/null +++ b/build/pkgs/sagemath_homfly/dependencies @@ -0,0 +1 @@ +$(PYTHON) sagemath_categories libhomfly | $(PYTHON_TOOLCHAIN) sage_setup cython pkgconfig diff --git a/build/pkgs/sagemath_homfly/install-requires.txt b/build/pkgs/sagemath_homfly/install-requires.txt new file mode 100644 index 00000000000..2845344e07d --- /dev/null +++ b/build/pkgs/sagemath_homfly/install-requires.txt @@ -0,0 +1,2 @@ +# This file is updated on every release by the sage-update-version script +sagemath-homfly ~= 10.0 diff --git a/build/pkgs/sagemath_homfly/package-version.txt b/build/pkgs/sagemath_homfly/package-version.txt new file mode 120000 index 00000000000..c4540217bba --- /dev/null +++ b/build/pkgs/sagemath_homfly/package-version.txt @@ -0,0 +1 @@ +src/VERSION.txt \ No newline at end of file diff --git a/build/pkgs/sagemath_homfly/spkg-install b/build/pkgs/sagemath_homfly/spkg-install new file mode 120000 index 00000000000..f916d59c4da --- /dev/null +++ b/build/pkgs/sagemath_homfly/spkg-install @@ -0,0 +1 @@ +../sagemath_gap/spkg-install \ No newline at end of file diff --git a/build/pkgs/sagemath_homfly/spkg-src b/build/pkgs/sagemath_homfly/spkg-src new file mode 100755 index 00000000000..8ee94522cfd --- /dev/null +++ b/build/pkgs/sagemath_homfly/spkg-src @@ -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" diff --git a/build/pkgs/sagemath_homfly/src b/build/pkgs/sagemath_homfly/src new file mode 120000 index 00000000000..1dbcf1093d1 --- /dev/null +++ b/build/pkgs/sagemath_homfly/src @@ -0,0 +1 @@ +../../../pkgs/sagemath-homfly \ No newline at end of file diff --git a/build/pkgs/sagemath_homfly/type b/build/pkgs/sagemath_homfly/type new file mode 100644 index 00000000000..134d9bc32d5 --- /dev/null +++ b/build/pkgs/sagemath_homfly/type @@ -0,0 +1 @@ +optional diff --git a/build/pkgs/sagemath_ntl/SPKG.rst b/build/pkgs/sagemath_ntl/SPKG.rst new file mode 120000 index 00000000000..b4545b4bda6 --- /dev/null +++ b/build/pkgs/sagemath_ntl/SPKG.rst @@ -0,0 +1 @@ +src/README.rst \ No newline at end of file diff --git a/build/pkgs/sagemath_ntl/bootstrap b/build/pkgs/sagemath_ntl/bootstrap new file mode 120000 index 00000000000..40542346a4e --- /dev/null +++ b/build/pkgs/sagemath_ntl/bootstrap @@ -0,0 +1 @@ +../sagelib/bootstrap \ No newline at end of file diff --git a/build/pkgs/sagemath_ntl/dependencies b/build/pkgs/sagemath_ntl/dependencies new file mode 100644 index 00000000000..4880f118b59 --- /dev/null +++ b/build/pkgs/sagemath_ntl/dependencies @@ -0,0 +1 @@ +$(PYTHON) cypari memory_allocator sagemath_categories ntl | $(PYTHON_TOOLCHAIN) sage_setup sagemath_environment cython pkgconfig diff --git a/build/pkgs/sagemath_ntl/install-requires.txt b/build/pkgs/sagemath_ntl/install-requires.txt new file mode 100644 index 00000000000..fb858bda9ac --- /dev/null +++ b/build/pkgs/sagemath_ntl/install-requires.txt @@ -0,0 +1,2 @@ +# This file is updated on every release by the sage-update-version script +sagemath-ntl ~= 10.0 diff --git a/build/pkgs/sagemath_ntl/package-version.txt b/build/pkgs/sagemath_ntl/package-version.txt new file mode 120000 index 00000000000..c4540217bba --- /dev/null +++ b/build/pkgs/sagemath_ntl/package-version.txt @@ -0,0 +1 @@ +src/VERSION.txt \ No newline at end of file diff --git a/build/pkgs/sagemath_ntl/spkg-install b/build/pkgs/sagemath_ntl/spkg-install new file mode 100755 index 00000000000..81355093128 --- /dev/null +++ b/build/pkgs/sagemath_ntl/spkg-install @@ -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 diff --git a/build/pkgs/sagemath_ntl/spkg-src b/build/pkgs/sagemath_ntl/spkg-src new file mode 100755 index 00000000000..6e653682335 --- /dev/null +++ b/build/pkgs/sagemath_ntl/spkg-src @@ -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" diff --git a/build/pkgs/sagemath_ntl/src b/build/pkgs/sagemath_ntl/src new file mode 120000 index 00000000000..27e6a5e7035 --- /dev/null +++ b/build/pkgs/sagemath_ntl/src @@ -0,0 +1 @@ +../../../pkgs/sagemath-ntl \ No newline at end of file diff --git a/build/pkgs/sagemath_ntl/type b/build/pkgs/sagemath_ntl/type new file mode 100644 index 00000000000..134d9bc32d5 --- /dev/null +++ b/build/pkgs/sagemath_ntl/type @@ -0,0 +1 @@ +optional diff --git a/build/pkgs/sagemath_pari/SPKG.rst b/build/pkgs/sagemath_pari/SPKG.rst new file mode 120000 index 00000000000..b4545b4bda6 --- /dev/null +++ b/build/pkgs/sagemath_pari/SPKG.rst @@ -0,0 +1 @@ +src/README.rst \ No newline at end of file diff --git a/build/pkgs/sagemath_pari/bootstrap b/build/pkgs/sagemath_pari/bootstrap new file mode 120000 index 00000000000..40542346a4e --- /dev/null +++ b/build/pkgs/sagemath_pari/bootstrap @@ -0,0 +1 @@ +../sagelib/bootstrap \ No newline at end of file diff --git a/build/pkgs/sagemath_pari/dependencies b/build/pkgs/sagemath_pari/dependencies new file mode 100644 index 00000000000..b855bbb7088 --- /dev/null +++ b/build/pkgs/sagemath_pari/dependencies @@ -0,0 +1 @@ +$(PYTHON) cypari memory_allocator sagemath_categories | $(PYTHON_TOOLCHAIN) sage_setup sagemath_environment cython pkgconfig diff --git a/build/pkgs/sagemath_pari/install-requires.txt b/build/pkgs/sagemath_pari/install-requires.txt new file mode 100644 index 00000000000..228eac70b53 --- /dev/null +++ b/build/pkgs/sagemath_pari/install-requires.txt @@ -0,0 +1,2 @@ +# This file is updated on every release by the sage-update-version script +sagemath-gap ~= 10.0 diff --git a/build/pkgs/sagemath_pari/package-version.txt b/build/pkgs/sagemath_pari/package-version.txt new file mode 120000 index 00000000000..c4540217bba --- /dev/null +++ b/build/pkgs/sagemath_pari/package-version.txt @@ -0,0 +1 @@ +src/VERSION.txt \ No newline at end of file diff --git a/build/pkgs/sagemath_pari/spkg-install b/build/pkgs/sagemath_pari/spkg-install new file mode 100755 index 00000000000..81355093128 --- /dev/null +++ b/build/pkgs/sagemath_pari/spkg-install @@ -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 diff --git a/build/pkgs/sagemath_pari/spkg-src b/build/pkgs/sagemath_pari/spkg-src new file mode 100755 index 00000000000..7cc272d0867 --- /dev/null +++ b/build/pkgs/sagemath_pari/spkg-src @@ -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_pari + +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" diff --git a/build/pkgs/sagemath_pari/src b/build/pkgs/sagemath_pari/src new file mode 120000 index 00000000000..2b27d325fb3 --- /dev/null +++ b/build/pkgs/sagemath_pari/src @@ -0,0 +1 @@ +../../../pkgs/sagemath-pari \ No newline at end of file diff --git a/build/pkgs/sagemath_pari/type b/build/pkgs/sagemath_pari/type new file mode 100644 index 00000000000..134d9bc32d5 --- /dev/null +++ b/build/pkgs/sagemath_pari/type @@ -0,0 +1 @@ +optional diff --git a/pkgs/sagemath-flint/MANIFEST.in b/pkgs/sagemath-flint/MANIFEST.in new file mode 100644 index 00000000000..3fd11749d81 --- /dev/null +++ b/pkgs/sagemath-flint/MANIFEST.in @@ -0,0 +1,48 @@ +include VERSION.txt + +prune sage + +graft sage/libs/arb +graft sage/libs/flint +recursive-include sage/libs/gsl *.pxd # FIXME +include sage/libs/gsl/__init__.p* # FIXME +include sage/libs/gsl/all.p* # FIXME +include sage/libs/gsl/complex/all.py # FIXME +recursive-include sage/libs/mpfr *.pxd # FIXME +include sage/libs/mpfr/all.py # FIXME +recursive-include sage/libs/mpfi *.pxd # FIXME +include sage/libs/mpfi/all.py # FIXME +recursive-include sage/libs/pari *.pxd # FIXME +include sage/libs/pari/all.py # FIXME +graft sage/libs/linkages # FIXME +recursive-include sage/matrix *.pxd # FIXME +include sage/matrix/matrix_complex_ball_dense.p* +include sage/misc/binary_tree.p* # FIXME +include sage/misc/all.py # FIXME +recursive-include sage/rings *.pxd # FIXME +include sage/rings/*_arb.p* +include sage/rings/finite_rings/*.pxd # FIXME +include sage/rings/finite_rings/integer_mod_limits.h # FIXME +include sage/rings/finite_rings/all.py # FIXME +include sage/rings/integer_fake.h # FIXME +#include sage/rings/number_field/number_field_element_quadratic.p* #### this is entangled with NTL +include sage/rings/padics/*_flint_*.p* +include sage/rings/padics/*.pxd # FIXME +include sage/rings/padics/*.pxi # FIXME +include sage/rings/polynomial/*_flint.p* +include sage/rings/polynomial/*_arb.p* + +global-exclude all__sagemath_*.p* +global-include all__sagemath_flint.py + +global-exclude *.c +global-exclude *.cpp + +global-exclude __pycache__ +global-exclude *.py[co] +global-exclude *.bak +global-exclude *.so +global-exclude *~ +prune .tox +prune build +prune dist diff --git a/pkgs/sagemath-flint/README.rst b/pkgs/sagemath-flint/README.rst new file mode 100644 index 00000000000..d7f8eae5a56 --- /dev/null +++ b/pkgs/sagemath-flint/README.rst @@ -0,0 +1,29 @@ +============================================================================== + Sage: Open Source Mathematics Software: Fast computations with FLINT and arb +============================================================================== + +About SageMath +-------------- + + "Creating a Viable Open Source Alternative to + Magma, Maple, Mathematica, and MATLAB" + + Copyright (C) 2005-2022 The Sage Development Team + + https://www.sagemath.org + +SageMath fully supports all major Linux distributions, recent versions of +macOS, and Windows (using Cygwin or Windows Subsystem for Linux). + +The traditional and recommended way to install SageMath is from source via +Sage-the-distribution (https://www.sagemath.org/download-source.html). +Sage-the-distribution first builds a large number of open source packages from +source (unless it finds suitable versions installed in the system) and then +installs the Sage Library (sagelib, implemented in Python and Cython). + + +About this pip-installable source distribution +---------------------------------------------- + +This pip-installable source distribution ``sagemath-flint`` provides +Cython interfaces to the ``FLINT`` and ``arb`` libraries. diff --git a/pkgs/sagemath-flint/VERSION.txt b/pkgs/sagemath-flint/VERSION.txt new file mode 100644 index 00000000000..2f52450b31d --- /dev/null +++ b/pkgs/sagemath-flint/VERSION.txt @@ -0,0 +1 @@ +10.0 diff --git a/pkgs/sagemath-flint/pyproject.toml.m4 b/pkgs/sagemath-flint/pyproject.toml.m4 new file mode 100644 index 00000000000..88276609a96 --- /dev/null +++ b/pkgs/sagemath-flint/pyproject.toml.m4 @@ -0,0 +1,17 @@ +include(`sage_spkg_versions_toml.m4')dnl' -*- conf-toml -*- +[build-system] +# Minimum requirements for the build system to execute. +# sage_conf is needed for library name of the flint library. +requires = [ + SPKG_INSTALL_REQUIRES_setuptools + SPKG_INSTALL_REQUIRES_wheel + SPKG_INSTALL_REQUIRES_sage_setup + SPKG_INSTALL_REQUIRES_sage_conf + SPKG_INSTALL_REQUIRES_sagemath_environment + SPKG_INSTALL_REQUIRES_sagemath_categories + SPKG_INSTALL_REQUIRES_cython + SPKG_INSTALL_REQUIRES_gmpy2 + SPKG_INSTALL_REQUIRES_cypari + SPKG_INSTALL_REQUIRES_cysignals +] +build-backend = "setuptools.build_meta" diff --git a/pkgs/sagemath-flint/requirements.txt.m4 b/pkgs/sagemath-flint/requirements.txt.m4 new file mode 100644 index 00000000000..8b6ca03b0b9 --- /dev/null +++ b/pkgs/sagemath-flint/requirements.txt.m4 @@ -0,0 +1,2 @@ +Cython==esyscmd(`printf $(sed "s/[.]p.*//;" ../cython/package-version.txt)') +sagemath-standard==esyscmd(`printf $(sed "s/[.]p.*//;" ../sagelib/package-version.txt)') diff --git a/pkgs/sagemath-flint/sage b/pkgs/sagemath-flint/sage new file mode 120000 index 00000000000..e0da5daa6f2 --- /dev/null +++ b/pkgs/sagemath-flint/sage @@ -0,0 +1 @@ +../../src/sage \ No newline at end of file diff --git a/pkgs/sagemath-flint/setup.cfg.m4 b/pkgs/sagemath-flint/setup.cfg.m4 new file mode 100644 index 00000000000..ca717450b75 --- /dev/null +++ b/pkgs/sagemath-flint/setup.cfg.m4 @@ -0,0 +1,46 @@ +include(`sage_spkg_versions.m4')dnl' -*- conf-unix -*- +[metadata] +name = sagemath-flint +version = file: VERSION.txt +description = Sage: Open Source Mathematics Software: Fast computations with FLINT and arb +long_description = file: README.rst +long_description_content_type = text/x-rst +include(`setup_cfg_metadata.m4')dnl' + +[options] +python_requires = >=3.8, <3.12 +install_requires = + SPKG_INSTALL_REQUIRES_sagemath_categories + +packages = + sage.libs.arb + sage.libs.flint + sage.matrix + sage.rings + sage.rings.number_field + sage.rings.padics + sage.rings.polynomial + +[options.package_data] + +sage.libs.arb = + *.pxd + +sage.libs.flint = + *.pxd + +sage.matrix = + matrix_complex_ball_dense.pxd + +sage.rings = + *_arb.pxd + +sage.rings.number_field = + number_field_element_quadratic.pxd + +sage.rings.padics = + *_flint_*.pxd + +sage.rings.polynomial = + *_flint.pxd + *_arb.pxd diff --git a/pkgs/sagemath-flint/setup.py b/pkgs/sagemath-flint/setup.py new file mode 100644 index 00000000000..dfac3a0765b --- /dev/null +++ b/pkgs/sagemath-flint/setup.py @@ -0,0 +1,68 @@ +#!/usr/bin/env python + +import sys +from distutils import log +from setuptools import setup + +# Work around a Cython problem in Python 3.8.x on macOS +# https://github.com/cython/cython/issues/3262 +import os +if os.uname().sysname == 'Darwin': + import multiprocessing + multiprocessing.set_start_method('fork', force=True) + +# If build isolation is not in use and setuptools_scm is installed, +# then its file_finders entry point is invoked, which we don't need. +# Workaround from ​https://github.com/pypa/setuptools_scm/issues/190#issuecomment-351181286 +try: + import setuptools_scm.integration + setuptools_scm.integration.find_files = lambda _: [] +except ImportError: + pass + +# PEP 517 builds do not have . in sys.path +sys.path.insert(0, os.path.dirname(__file__)) + +if len(sys.argv) > 1 and (sys.argv[1] == "sdist" or sys.argv[1] == "egg_info"): + sdist = True +else: + sdist = False + +if sdist: + cmdclass = {} +else: + from sage_setup.excepthook import excepthook + sys.excepthook = excepthook + + from sage_setup.setenv import setenv + setenv() + + import sage.env + sage.env.default_required_modules = sage.env.default_optional_modules = ('gsl',) + + from sage_setup.command.sage_build_cython import sage_build_cython + from sage_setup.command.sage_build_ext import sage_build_ext + sage_build_cython.built_distributions = ['sagemath-flint'] + + cmdclass = dict(build_cython=sage_build_cython, + build_ext=sage_build_ext) + +if sdist: + python_packages = [] + python_modules = [] + cython_modules = [] +else: + from sage_setup.find import find_python_sources + python_packages, python_modules, cython_modules = find_python_sources( + '.', ['sage'], distributions=['sagemath-flint']) + + log.warn('python_packages = {0}'.format(python_packages)) + log.warn('python_modules = {0}'.format(python_modules)) + log.warn('cython_modules = {0}'.format(cython_modules)) + +setup( + cmdclass = cmdclass, + packages = python_packages, + py_modules = python_modules, + ext_modules = cython_modules, +) diff --git a/pkgs/sagemath-flint/tox.ini b/pkgs/sagemath-flint/tox.ini new file mode 100644 index 00000000000..dc26c91e35e --- /dev/null +++ b/pkgs/sagemath-flint/tox.ini @@ -0,0 +1,65 @@ +# To build and test in the tox environment: +# +# ./sage -sh -c '(cd pkgs/sagemath-flint && tox -v -v -v -e sagepython)' +# +# To test interactively: +# +# pkgs/sagemath-flint/.tox/sagepython/bin/python +# +[tox] +envlist = + sagepython-sagewheels-nopypi-norequirements + +[testenv] +deps = + !norequirements: -rrequirements.txt + # tox 3.x does not handle extras when using --installpkg. https://github.com/tox-dev/tox/issues/1576 + sagemath-repl + +extras = test + +passenv = + # Variables set by .homebrew-build-env + CPATH + LIBRARY_PATH + PKG_CONFIG_PATH + # Parallel build + SAGE_NUM_THREADS + SAGE_NUM_THREADS_PARALLEL + # SAGE_VENV only for referring to the basepython or finding the wheels + sagepython, sagewheels: SAGE_VENV + # Location of the wheels + sagewheels: SAGE_SPKG_WHEELS + +setenv = + # Sage scripts such as sage-runtests like to use $HOME/.sage + HOME={envdir} + # We supply pip options by environment variables so that they + # apply both to the installation of the dependencies and of the package + sagewheels: PIP_FIND_LINKS=file://{env:SAGE_SPKG_WHEELS:{env:SAGE_VENV:{toxinidir}/../../../../venv}/var/lib/sage/wheels} + nopypi: PIP_NO_INDEX=true + +whitelist_externals = + bash + +commands = + # Beware of the treacherous non-src layout. "./sage/" shadows the install sage package. + # Currently cannot import -- missing runtime dep sage.rings.integer + # {envpython} -c 'import sys; "" in sys.path and sys.path.remove(""); import sage.libs.flint.fmpz_poly' + + +[testenv:sagepython] +basepython = {env:SAGE_VENV}/bin/python3 + +[testenv:sagepython-sagewheels-nopypi] +basepython = {env:SAGE_VENV}/bin/python3 + +[testenv:sagepython-sagewheels] +basepython = {env:SAGE_VENV}/bin/python3 + +[testenv:sagepython-norequirements] +basepython = {env:SAGE_VENV}/bin/python3 + + +[testenv:sagepython-sagewheels-nopypi-norequirements] +basepython = {env:SAGE_VENV}/bin/python3 diff --git a/pkgs/sagemath-gap/MANIFEST.in b/pkgs/sagemath-gap/MANIFEST.in new file mode 100644 index 00000000000..4366b989c53 --- /dev/null +++ b/pkgs/sagemath-gap/MANIFEST.in @@ -0,0 +1,40 @@ +include VERSION.txt + +prune sage +global-include all__sagemath_gap.py + +graft sage/coding/codecan +include sage/combinat/enumeration_mod_permgroup.p* +include sage/combinat/root_system/reflection_group*.p* +graft sage/data_structures # FIXME +recursive-include sage/graphs *.pxd # FIXME +include sage/graphs/all.py # FIXME +include sage/graphs/base/all.py # FIXME +include sage/graphs/spanning_tree.p* +graft sage/groups/perm_gps +prune sage/groups/perm_gps/partn_ref # sagemath-categories +include sage/groups/libgap_wrapper.p* +include sage/groups/matrix_gps/group_element.pxd # FIXME +include sage/groups/matrix_gps/*_gap.* +include sage/groups/semimonomial_transformations/all.py # FIXME +recursive-include sage/groups/semimonomial_transformations *.pxd # FIXME +include sage/interfaces/gap*.p* +graft sage/libs/gap +recursive-include sage/matrix *.pxd # FIXME +include sage/matrix/matrix_gap.p* +recursive-include sage/modules *.pxd # FIXME +include sage/modules/all.py # FIXME +recursive-include sage/rings *.pxd # FIXME +include sage/rings/polynomial/all.py # FIXME + +global-exclude *.c +global-exclude *.cpp + +global-exclude __pycache__ +global-exclude *.py[co] +global-exclude *.bak +global-exclude *.so +global-exclude *~ +prune .tox +prune build +prune dist diff --git a/pkgs/sagemath-gap/README.rst b/pkgs/sagemath-gap/README.rst new file mode 100644 index 00000000000..16a578653cc --- /dev/null +++ b/pkgs/sagemath-gap/README.rst @@ -0,0 +1,30 @@ +============================================================================= + Sage: Open Source Mathematics Software: Computational Group Theory with GAP +============================================================================= + +About SageMath +-------------- + + "Creating a Viable Open Source Alternative to + Magma, Maple, Mathematica, and MATLAB" + + Copyright (C) 2005-2022 The Sage Development Team + + https://www.sagemath.org + +SageMath fully supports all major Linux distributions, recent versions of +macOS, and Windows (using Cygwin or Windows Subsystem for Linux). + +The traditional and recommended way to install SageMath is from source via +Sage-the-distribution (https://www.sagemath.org/download-source.html). +Sage-the-distribution first builds a large number of open source packages from +source (unless it finds suitable versions installed in the system) and then +installs the Sage Library (sagelib, implemented in Python and Cython). + + +About this pip-installable source distribution +---------------------------------------------- + +This pip-installable source distribution ``sagemath-gap`` is a small +distribution that provides modules that depend on the GAP system, see +https://www.gap-system.org diff --git a/pkgs/sagemath-gap/VERSION.txt b/pkgs/sagemath-gap/VERSION.txt new file mode 100644 index 00000000000..2f52450b31d --- /dev/null +++ b/pkgs/sagemath-gap/VERSION.txt @@ -0,0 +1 @@ +10.0 diff --git a/pkgs/sagemath-gap/pyproject.toml.m4 b/pkgs/sagemath-gap/pyproject.toml.m4 new file mode 100644 index 00000000000..f7381ea1e0a --- /dev/null +++ b/pkgs/sagemath-gap/pyproject.toml.m4 @@ -0,0 +1,16 @@ +include(`sage_spkg_versions_toml.m4')dnl' -*- conf-toml -*- +[build-system] +# Minimum requirements for the build system to execute. +requires = [ + SPKG_INSTALL_REQUIRES_setuptools + SPKG_INSTALL_REQUIRES_wheel + SPKG_INSTALL_REQUIRES_sage_setup + SPKG_INSTALL_REQUIRES_sagemath_environment + SPKG_INSTALL_REQUIRES_sagemath_categories + SPKG_INSTALL_REQUIRES_cython + SPKG_INSTALL_REQUIRES_gmpy2 + SPKG_INSTALL_REQUIRES_cysignals + SPKG_INSTALL_REQUIRES_cypari + SPKG_INSTALL_REQUIRES_memory_allocator +] +build-backend = "setuptools.build_meta" diff --git a/pkgs/sagemath-gap/requirements.txt.m4 b/pkgs/sagemath-gap/requirements.txt.m4 new file mode 100644 index 00000000000..8b6ca03b0b9 --- /dev/null +++ b/pkgs/sagemath-gap/requirements.txt.m4 @@ -0,0 +1,2 @@ +Cython==esyscmd(`printf $(sed "s/[.]p.*//;" ../cython/package-version.txt)') +sagemath-standard==esyscmd(`printf $(sed "s/[.]p.*//;" ../sagelib/package-version.txt)') diff --git a/pkgs/sagemath-gap/sage b/pkgs/sagemath-gap/sage new file mode 120000 index 00000000000..e0da5daa6f2 --- /dev/null +++ b/pkgs/sagemath-gap/sage @@ -0,0 +1 @@ +../../src/sage \ No newline at end of file diff --git a/pkgs/sagemath-gap/setup.cfg.m4 b/pkgs/sagemath-gap/setup.cfg.m4 new file mode 100644 index 00000000000..44d3dd61802 --- /dev/null +++ b/pkgs/sagemath-gap/setup.cfg.m4 @@ -0,0 +1,25 @@ +include(`sage_spkg_versions.m4')dnl' -*- conf-unix -*- +[metadata] +name = sagemath-gap +version = file: VERSION.txt +description = Sage: Open Source Mathematics Software: Computational Group Theory with GAP +long_description = file: README.rst +long_description_content_type = text/x-rst +include(`setup_cfg_metadata.m4')dnl' + +[options] +python_requires = >=3.8, <3.12 +install_requires = + SPKG_INSTALL_REQUIRES_cypari + SPKG_INSTALL_REQUIRES_cysignals + SPKG_INSTALL_REQUIRES_memory_allocator + SPKG_INSTALL_REQUIRES_sagemath_environment + SPKG_INSTALL_REQUIRES_sagemath_categories + +[options.package_data] + +sage.libs.gap = + sage.gaprc + +sage.ext_data = + * diff --git a/pkgs/sagemath-gap/setup.py b/pkgs/sagemath-gap/setup.py new file mode 100644 index 00000000000..aab5159d46d --- /dev/null +++ b/pkgs/sagemath-gap/setup.py @@ -0,0 +1,64 @@ +#!/usr/bin/env python + +import sys +from distutils import log +from setuptools import setup + +# Work around a Cython problem in Python 3.8.x on macOS +# https://github.com/cython/cython/issues/3262 +import os +if os.uname().sysname == 'Darwin': + import multiprocessing + multiprocessing.set_start_method('fork', force=True) + +# If build isolation is not in use and setuptools_scm is installed, +# then its file_finders entry point is invoked, which we don't need. +# Workaround from ​https://github.com/pypa/setuptools_scm/issues/190#issuecomment-351181286 +try: + import setuptools_scm.integration + setuptools_scm.integration.find_files = lambda _: [] +except ImportError: + pass + +# PEP 517 builds do not have . in sys.path +sys.path.insert(0, os.path.dirname(__file__)) + +from sage_setup.excepthook import excepthook +sys.excepthook = excepthook + +from sage_setup.setenv import setenv +setenv() + +import sage.env +sage.env.default_required_modules = sage.env.default_optional_modules = () + +from sage_setup.command.sage_build_cython import sage_build_cython +from sage_setup.command.sage_build_ext import sage_build_ext +import os.path + +sage_build_cython.built_distributions = ['sagemath-gap'] + +cmdclass = dict(build_cython=sage_build_cython, + build_ext=sage_build_ext) + +from sage_setup.find import find_python_sources, find_extra_files +python_packages, python_modules, cython_modules = find_python_sources( + '.', ['sage'], distributions=['sagemath-gap']) +extra_files = find_extra_files( + '.', ['sage'], '/doesnotexist', distributions=['sagemath-gap']) +package_data = {"": [f + for pkg, files in extra_files.items() + for f in files ]} + +log.warn('python_packages = {0}'.format(python_packages)) +log.warn('python_modules = {0}'.format(python_modules)) +log.warn('cython_modules = {0}'.format(cython_modules)) +log.warn('package_data = {0}'.format(package_data)) + +setup( + cmdclass = cmdclass, + packages = python_packages, + py_modules = python_modules, + ext_modules = cython_modules, + package_data = package_data, +) diff --git a/pkgs/sagemath-gap/tox.ini b/pkgs/sagemath-gap/tox.ini new file mode 100644 index 00000000000..aea88292c88 --- /dev/null +++ b/pkgs/sagemath-gap/tox.ini @@ -0,0 +1,65 @@ +# To build and test in the tox environment: +# +# ./sage -sh -c '(cd pkgs/sagemath-gap && tox -v -v -v -e sagepython)' +# +# To test interactively: +# +# pkgs/sagemath-gap/.tox/sagepython/bin/python +# +[tox] +envlist = + sagepython-sagewheels-nopypi-norequirements + +[testenv] +deps = + !norequirements: -rrequirements.txt + # tox 3.x does not handle extras when using --installpkg. https://github.com/tox-dev/tox/issues/1576 + sagemath-repl + +extras = test + +passenv = + # Variables set by .homebrew-build-env + CPATH + LIBRARY_PATH + PKG_CONFIG_PATH + # Parallel build + SAGE_NUM_THREADS + SAGE_NUM_THREADS_PARALLEL + # SAGE_VENV only for referring to the basepython or finding the wheels + sagepython, sagewheels: SAGE_VENV + # Location of the wheels + sagewheels: SAGE_SPKG_WHEELS + +setenv = + # Sage scripts such as sage-runtests like to use $HOME/.sage + HOME={envdir} + # We supply pip options by environment variables so that they + # apply both to the installation of the dependencies and of the package + sagewheels: PIP_FIND_LINKS=file://{env:SAGE_SPKG_WHEELS:{env:SAGE_VENV:{toxinidir}/../../../../venv}/var/lib/sage/wheels} + nopypi: PIP_NO_INDEX=true + +whitelist_externals = + bash + +commands = + # Beware of the treacherous non-src layout. "./sage/" shadows the install sage package. + # Importing sage.libs.gap.libgap does not work yet because of the runtime dep on 'sage.rings.polynomial' + # {envpython} -c 'import sys; "" in sys.path and sys.path.remove(""); import sage.libs.gap.libgap' + + +[testenv:sagepython] +basepython = {env:SAGE_VENV}/bin/python3 + +[testenv:sagepython-sagewheels-nopypi] +basepython = {env:SAGE_VENV}/bin/python3 + +[testenv:sagepython-sagewheels] +basepython = {env:SAGE_VENV}/bin/python3 + +[testenv:sagepython-norequirements] +basepython = {env:SAGE_VENV}/bin/python3 + + +[testenv:sagepython-sagewheels-nopypi-norequirements] +basepython = {env:SAGE_VENV}/bin/python3 diff --git a/pkgs/sagemath-giac/MANIFEST.in b/pkgs/sagemath-giac/MANIFEST.in new file mode 100644 index 00000000000..8a5d5f1023c --- /dev/null +++ b/pkgs/sagemath-giac/MANIFEST.in @@ -0,0 +1,20 @@ +include VERSION.txt + +prune sage +global-include all__sagemath_giac.py + +graft sage/libs/giac +include sage/rings/*.pxd # FIXME +include sage/rings/all.py # FIXME + +global-exclude *.c +global-exclude *.cpp + +global-exclude __pycache__ +global-exclude *.py[co] +global-exclude *.bak +global-exclude *.so +global-exclude *~ +prune .tox +prune build +prune dist diff --git a/pkgs/sagemath-giac/README.rst b/pkgs/sagemath-giac/README.rst new file mode 100644 index 00000000000..515f800236f --- /dev/null +++ b/pkgs/sagemath-giac/README.rst @@ -0,0 +1,29 @@ +======================================================================== + Sage: Open Source Mathematics Software: Symbolic computation with GIAC +======================================================================== + +About SageMath +-------------- + + "Creating a Viable Open Source Alternative to + Magma, Maple, Mathematica, and MATLAB" + + Copyright (C) 2005-2022 The Sage Development Team + + https://www.sagemath.org + +SageMath fully supports all major Linux distributions, recent versions of +macOS, and Windows (using Cygwin or Windows Subsystem for Linux). + +The traditional and recommended way to install SageMath is from source via +Sage-the-distribution (https://www.sagemath.org/download-source.html). +Sage-the-distribution first builds a large number of open source packages from +source (unless it finds suitable versions installed in the system) and then +installs the Sage Library (sagelib, implemented in Python and Cython). + + +About this pip-installable source distribution +---------------------------------------------- + +This pip-installable source distribution ``sagemath-giac`` provides a Cython +interface to GIAC. diff --git a/pkgs/sagemath-giac/VERSION.txt b/pkgs/sagemath-giac/VERSION.txt new file mode 100644 index 00000000000..2f52450b31d --- /dev/null +++ b/pkgs/sagemath-giac/VERSION.txt @@ -0,0 +1 @@ +10.0 diff --git a/pkgs/sagemath-giac/pyproject.toml.m4 b/pkgs/sagemath-giac/pyproject.toml.m4 new file mode 100644 index 00000000000..c4ba6105c8d --- /dev/null +++ b/pkgs/sagemath-giac/pyproject.toml.m4 @@ -0,0 +1,14 @@ +include(`sage_spkg_versions_toml.m4')dnl' -*- conf-toml -*- +[build-system] +# Minimum requirements for the build system to execute. +requires = [ + SPKG_INSTALL_REQUIRES_setuptools + SPKG_INSTALL_REQUIRES_wheel + SPKG_INSTALL_REQUIRES_sage_setup + SPKG_INSTALL_REQUIRES_sagemath_environment + SPKG_INSTALL_REQUIRES_sagemath_categories + SPKG_INSTALL_REQUIRES_cython + SPKG_INSTALL_REQUIRES_gmpy2 + SPKG_INSTALL_REQUIRES_cysignals +] +build-backend = "setuptools.build_meta" diff --git a/pkgs/sagemath-giac/requirements.txt.m4 b/pkgs/sagemath-giac/requirements.txt.m4 new file mode 100644 index 00000000000..8b6ca03b0b9 --- /dev/null +++ b/pkgs/sagemath-giac/requirements.txt.m4 @@ -0,0 +1,2 @@ +Cython==esyscmd(`printf $(sed "s/[.]p.*//;" ../cython/package-version.txt)') +sagemath-standard==esyscmd(`printf $(sed "s/[.]p.*//;" ../sagelib/package-version.txt)') diff --git a/pkgs/sagemath-giac/sage b/pkgs/sagemath-giac/sage new file mode 120000 index 00000000000..e0da5daa6f2 --- /dev/null +++ b/pkgs/sagemath-giac/sage @@ -0,0 +1 @@ +../../src/sage \ No newline at end of file diff --git a/pkgs/sagemath-giac/setup.cfg.m4 b/pkgs/sagemath-giac/setup.cfg.m4 new file mode 100644 index 00000000000..3fc506ffd04 --- /dev/null +++ b/pkgs/sagemath-giac/setup.cfg.m4 @@ -0,0 +1,25 @@ +include(`sage_spkg_versions.m4')dnl' -*- conf-unix -*- +[metadata] +name = sagemath-giac +version = file: VERSION.txt +description = Sage: Open Source Mathematics Software: Graph (iso/auto)morphisms with giac +long_description = file: README.rst +long_description_content_type = text/x-rst +include(`setup_cfg_metadata.m4')dnl' + +[options] +python_requires = >=3.8, <3.12 +install_requires = + SPKG_INSTALL_REQUIRES_sagemath_categories + +packages = + sage.libs.giac + sage.rings + +[options.package_data] + +sage.libs.giac = + *.pxd + +sage.rings = + *.pxd diff --git a/pkgs/sagemath-giac/setup.py b/pkgs/sagemath-giac/setup.py new file mode 100644 index 00000000000..c4e77e12ae2 --- /dev/null +++ b/pkgs/sagemath-giac/setup.py @@ -0,0 +1,68 @@ +#!/usr/bin/env python + +import sys +from distutils import log +from setuptools import setup + +# Work around a Cython problem in Python 3.8.x on macOS +# https://github.com/cython/cython/issues/3262 +import os +if os.uname().sysname == 'Darwin': + import multiprocessing + multiprocessing.set_start_method('fork', force=True) + +# If build isolation is not in use and setuptools_scm is installed, +# then its file_finders entry point is invoked, which we don't need. +# Workaround from ​https://github.com/pypa/setuptools_scm/issues/190#issuecomment-351181286 +try: + import setuptools_scm.integration + setuptools_scm.integration.find_files = lambda _: [] +except ImportError: + pass + +# PEP 517 builds do not have . in sys.path +sys.path.insert(0, os.path.dirname(__file__)) + +if len(sys.argv) > 1 and (sys.argv[1] == "sdist" or sys.argv[1] == "egg_info"): + sdist = True +else: + sdist = False + +if sdist: + cmdclass = {} +else: + from sage_setup.excepthook import excepthook + sys.excepthook = excepthook + + from sage_setup.setenv import setenv + setenv() + + import sage.env + sage.env.default_required_modules = sage.env.default_optional_modules = () + + from sage_setup.command.sage_build_cython import sage_build_cython + from sage_setup.command.sage_build_ext import sage_build_ext + sage_build_cython.built_distributions = ['sagemath-giac'] + + cmdclass = dict(build_cython=sage_build_cython, + build_ext=sage_build_ext) + +if sdist: + python_packages = [] + python_modules = [] + cython_modules = [] +else: + from sage_setup.find import find_python_sources + python_packages, python_modules, cython_modules = find_python_sources( + '.', ['sage'], distributions=['sagemath-giac']) + + log.warn('python_packages = {0}'.format(python_packages)) + log.warn('python_modules = {0}'.format(python_modules)) + log.warn('cython_modules = {0}'.format(cython_modules)) + +setup( + cmdclass = cmdclass, + packages = python_packages, + py_modules = python_modules, + ext_modules = cython_modules, +) diff --git a/pkgs/sagemath-giac/tox.ini b/pkgs/sagemath-giac/tox.ini new file mode 100644 index 00000000000..448288688b7 --- /dev/null +++ b/pkgs/sagemath-giac/tox.ini @@ -0,0 +1,65 @@ +# To build and test in the tox environment: +# +# ./sage -sh -c '(cd pkgs/sagemath-giac && tox -v -v -v -e sagepython)' +# +# To test interactively: +# +# pkgs/sagemath-giac/.tox/sagepython/bin/python +# +[tox] +envlist = + sagepython-sagewheels-nopypi-norequirements + +[testenv] +deps = + !norequirements: -rrequirements.txt + # tox 3.x does not handle extras when using --installpkg. https://github.com/tox-dev/tox/issues/1576 + sagemath-repl + +extras = test + +passenv = + # Variables set by .homebrew-build-env + CPATH + LIBRARY_PATH + PKG_CONFIG_PATH + # Parallel build + SAGE_NUM_THREADS + SAGE_NUM_THREADS_PARALLEL + # SAGE_VENV only for referring to the basepython or finding the wheels + sagepython, sagewheels: SAGE_VENV + # Location of the wheels + sagewheels: SAGE_SPKG_WHEELS + +setenv = + # Sage scripts such as sage-runtests like to use $HOME/.sage + HOME={envdir} + # We supply pip options by environment variables so that they + # apply both to the installation of the dependencies and of the package + sagewheels: PIP_FIND_LINKS=file://{env:SAGE_SPKG_WHEELS:{env:SAGE_VENV:{toxinidir}/../../../../venv}/var/lib/sage/wheels} + nopypi: PIP_NO_INDEX=true + +whitelist_externals = + bash + +commands = + # Beware of the treacherous non-src layout. "./sage/" shadows the install sage package. + # Currently cannot be imported - dep sage.rings.integer missing + # {envpython} -c 'import sys; "" in sys.path and sys.path.remove(""); import sage.libs.giac.giac' + + +[testenv:sagepython] +basepython = {env:SAGE_VENV}/bin/python3 + +[testenv:sagepython-sagewheels-nopypi] +basepython = {env:SAGE_VENV}/bin/python3 + +[testenv:sagepython-sagewheels] +basepython = {env:SAGE_VENV}/bin/python3 + +[testenv:sagepython-norequirements] +basepython = {env:SAGE_VENV}/bin/python3 + + +[testenv:sagepython-sagewheels-nopypi-norequirements] +basepython = {env:SAGE_VENV}/bin/python3 diff --git a/pkgs/sagemath-homfly/MANIFEST.in b/pkgs/sagemath-homfly/MANIFEST.in new file mode 100644 index 00000000000..48cb0804082 --- /dev/null +++ b/pkgs/sagemath-homfly/MANIFEST.in @@ -0,0 +1,17 @@ +include VERSION.txt + +prune sage +global-include all__sagemath_homfly.py +include sage/libs/homfly.p* + +global-exclude *.c +global-exclude *.cpp + +global-exclude __pycache__ +global-exclude *.py[co] +global-exclude *.bak +global-exclude *.so +global-exclude *~ +prune .tox +prune build +prune dist diff --git a/pkgs/sagemath-homfly/README.rst b/pkgs/sagemath-homfly/README.rst new file mode 100644 index 00000000000..51e9dd63594 --- /dev/null +++ b/pkgs/sagemath-homfly/README.rst @@ -0,0 +1,31 @@ +========================================================================================== + Sage: Open Source Mathematics Software: Homfly polynomials of knots/links with libhomfly +========================================================================================== + +About SageMath +-------------- + + "Creating a Viable Open Source Alternative to + Magma, Maple, Mathematica, and MATLAB" + + Copyright (C) 2005-2022 The Sage Development Team + + https://www.sagemath.org + +SageMath fully supports all major Linux distributions, recent versions of +macOS, and Windows (using Cygwin or Windows Subsystem for Linux). + +The traditional and recommended way to install SageMath is from source via +Sage-the-distribution (https://www.sagemath.org/download-source.html). +Sage-the-distribution first builds a large number of open source packages from +source (unless it finds suitable versions installed in the system) and then +installs the Sage Library (sagelib, implemented in Python and Cython). + + +About this pip-installable source distribution +---------------------------------------------- + +This pip-installable source distribution ``sagemath-homfly`` is a small +optional distribution for use with ``sagemath-standard``. + +It provides a Cython interface to the ``libhomfly`` library. diff --git a/pkgs/sagemath-homfly/VERSION.txt b/pkgs/sagemath-homfly/VERSION.txt new file mode 100644 index 00000000000..2f52450b31d --- /dev/null +++ b/pkgs/sagemath-homfly/VERSION.txt @@ -0,0 +1 @@ +10.0 diff --git a/pkgs/sagemath-homfly/pyproject.toml.m4 b/pkgs/sagemath-homfly/pyproject.toml.m4 new file mode 100644 index 00000000000..121eed8ece7 --- /dev/null +++ b/pkgs/sagemath-homfly/pyproject.toml.m4 @@ -0,0 +1,13 @@ +include(`sage_spkg_versions_toml.m4')dnl' -*- conf-toml -*- +[build-system] +# Minimum requirements for the build system to execute. +requires = [ + SPKG_INSTALL_REQUIRES_setuptools + SPKG_INSTALL_REQUIRES_wheel + SPKG_INSTALL_REQUIRES_sage_setup + SPKG_INSTALL_REQUIRES_sagemath_environment + SPKG_INSTALL_REQUIRES_sagemath_objects + SPKG_INSTALL_REQUIRES_cython + SPKG_INSTALL_REQUIRES_cysignals +] +build-backend = "setuptools.build_meta" diff --git a/pkgs/sagemath-homfly/requirements.txt.m4 b/pkgs/sagemath-homfly/requirements.txt.m4 new file mode 100644 index 00000000000..8b6ca03b0b9 --- /dev/null +++ b/pkgs/sagemath-homfly/requirements.txt.m4 @@ -0,0 +1,2 @@ +Cython==esyscmd(`printf $(sed "s/[.]p.*//;" ../cython/package-version.txt)') +sagemath-standard==esyscmd(`printf $(sed "s/[.]p.*//;" ../sagelib/package-version.txt)') diff --git a/pkgs/sagemath-homfly/sage b/pkgs/sagemath-homfly/sage new file mode 120000 index 00000000000..e0da5daa6f2 --- /dev/null +++ b/pkgs/sagemath-homfly/sage @@ -0,0 +1 @@ +../../src/sage \ No newline at end of file diff --git a/pkgs/sagemath-homfly/setup.cfg.m4 b/pkgs/sagemath-homfly/setup.cfg.m4 new file mode 100644 index 00000000000..f2934b06d52 --- /dev/null +++ b/pkgs/sagemath-homfly/setup.cfg.m4 @@ -0,0 +1,13 @@ +include(`sage_spkg_versions.m4')dnl' -*- conf-unix -*- +[metadata] +name = sagemath-homfly +version = file: VERSION.txt +description = Sage: Open Source Mathematics Software: Homfly polynomials of knots/links with libhomfly +long_description = file: README.rst +long_description_content_type = text/x-rst +include(`setup_cfg_metadata.m4')dnl' + +[options] +python_requires = >=3.8, <3.12 +install_requires = + SPKG_INSTALL_REQUIRES_cysignals diff --git a/pkgs/sagemath-homfly/setup.py b/pkgs/sagemath-homfly/setup.py new file mode 100644 index 00000000000..4285ae2e5c2 --- /dev/null +++ b/pkgs/sagemath-homfly/setup.py @@ -0,0 +1,68 @@ +#!/usr/bin/env python + +import sys +from distutils import log +from setuptools import setup + +# Work around a Cython problem in Python 3.8.x on macOS +# https://github.com/cython/cython/issues/3262 +import os +if os.uname().sysname == 'Darwin': + import multiprocessing + multiprocessing.set_start_method('fork', force=True) + +# If build isolation is not in use and setuptools_scm is installed, +# then its file_finders entry point is invoked, which we don't need. +# Workaround from ​https://github.com/pypa/setuptools_scm/issues/190#issuecomment-351181286 +try: + import setuptools_scm.integration + setuptools_scm.integration.find_files = lambda _: [] +except ImportError: + pass + +# PEP 517 builds do not have . in sys.path +sys.path.insert(0, os.path.dirname(__file__)) + +if len(sys.argv) > 1 and (sys.argv[1] == "sdist" or sys.argv[1] == "egg_info"): + sdist = True +else: + sdist = False + +if sdist: + cmdclass = {} +else: + from sage_setup.excepthook import excepthook + sys.excepthook = excepthook + + from sage_setup.setenv import setenv + setenv() + + import sage.env + sage.env.default_required_modules = sage.env.default_optional_modules = () + + from sage_setup.command.sage_build_cython import sage_build_cython + from sage_setup.command.sage_build_ext import sage_build_ext + sage_build_cython.built_distributions = ['sagemath-homfly'] + + cmdclass = dict(build_cython=sage_build_cython, + build_ext=sage_build_ext) + +if sdist: + python_packages = [] + python_modules = [] + cython_modules = [] +else: + from sage_setup.find import find_python_sources + python_packages, python_modules, cython_modules = find_python_sources( + '.', ['sage'], distributions=['sagemath-homfly']) + + log.warn('python_packages = {0}'.format(python_packages)) + log.warn('python_modules = {0}'.format(python_modules)) + log.warn('cython_modules = {0}'.format(cython_modules)) + +setup( + cmdclass = cmdclass, + packages = python_packages, + py_modules = python_modules, + ext_modules = cython_modules, +) diff --git a/pkgs/sagemath-homfly/tox.ini b/pkgs/sagemath-homfly/tox.ini new file mode 100644 index 00000000000..99778958109 --- /dev/null +++ b/pkgs/sagemath-homfly/tox.ini @@ -0,0 +1,64 @@ +# To build and test in the tox environment: +# +# ./sage -sh -c '(cd pkgs/sagemath-homfly && tox -v -v -v -e sagepython)' +# +# To test interactively: +# +# pkgs/sagemath-homfly/.tox/sagepython/bin/python +# +[tox] +envlist = + sagepython-sagewheels-nopypi-norequirements + +[testenv] +deps = + !norequirements: -rrequirements.txt + # tox 3.x does not handle extras when using --installpkg. https://github.com/tox-dev/tox/issues/1576 + sagemath-repl + +extras = test + +passenv = + # Variables set by .homebrew-build-env + CPATH + LIBRARY_PATH + PKG_CONFIG_PATH + # Parallel build + SAGE_NUM_THREADS + SAGE_NUM_THREADS_PARALLEL + # SAGE_VENV only for referring to the basepython or finding the wheels + sagepython, sagewheels: SAGE_VENV + # Location of the wheels + sagewheels: SAGE_SPKG_WHEELS + +setenv = + # Sage scripts such as sage-runtests like to use $HOME/.sage + HOME={envdir} + # We supply pip options by environment variables so that they + # apply both to the installation of the dependencies and of the package + sagewheels: PIP_FIND_LINKS=file://{env:SAGE_SPKG_WHEELS:{env:SAGE_VENV:{toxinidir}/../../../../venv}/var/lib/sage/wheels} + nopypi: PIP_NO_INDEX=true + +whitelist_externals = + bash + +commands = + # Beware of the treacherous non-src layout. "./sage/" shadows the install sage package. + {envpython} -c 'import sys; "" in sys.path and sys.path.remove(""); import sage.libs.homfly' + + +[testenv:sagepython] +basepython = {env:SAGE_VENV}/bin/python3 + +[testenv:sagepython-sagewheels-nopypi] +basepython = {env:SAGE_VENV}/bin/python3 + +[testenv:sagepython-sagewheels] +basepython = {env:SAGE_VENV}/bin/python3 + +[testenv:sagepython-norequirements] +basepython = {env:SAGE_VENV}/bin/python3 + + +[testenv:sagepython-sagewheels-nopypi-norequirements] +basepython = {env:SAGE_VENV}/bin/python3 diff --git a/pkgs/sagemath-ntl/MANIFEST.in b/pkgs/sagemath-ntl/MANIFEST.in new file mode 100644 index 00000000000..216113461d6 --- /dev/null +++ b/pkgs/sagemath-ntl/MANIFEST.in @@ -0,0 +1,51 @@ +prune sage + +include VERSION.txt + +global-include all__sagemath_ntl.py + +graft sage/libs/ntl + +graft sage/libs/mpfi # entangled with number_field_element + +graft sage/rings/number_field +exclude sage/rings/number_field/number_field_element_quadratic.p* # needs arb; will be shipped by sagemath-flint +#exclude sage/rings/number_field/number_field_base.p* # FIXME: will be shipped by sagemath-categories +#exclude sage/rings/number_field/number_field_element_base.p* # FIXME: will be shipped by sagemath-categories +exclude sage/rings/number_field/totallyreal*.p* # cimports cypari2 + +include sage/rings/bernoulli_mod_p.p* +include sage/rings/finite_rings/*_ntl_*.p* +include sage/rings/padics/padic_ext_element.p* +include sage/rings/padics/pow_computer_ext.p* +include sage/rings/polynomial/*_ntl.p* +include sage/rings/polynomial/polynomial_zz_pex.p* + +# pxd dependencies - FIXME +include sage/ext/mod_int.pxd +include sage/ext/mod_int.h +include sage/ext/cplusplus.pxd +include sage/libs/mpfr/*.pxd +include sage/matrix/*.pxd +include sage/matrix/*.pxi +include sage/rings/*.pxd +include sage/rings/finite_rings/*.pxd +include sage/rings/finite_rings/integer_mod_limits.h +include sage/rings/polynomial/*.pxd +include sage/misc/binary_tree.pxd + +include sage/schemes/hyperelliptic_curves/hypellfrob.p* + +global-exclude *.c +global-exclude *.cpp + +graft sage/schemes/hyperelliptic_curves/hypellfrob + +global-exclude __pycache__ +global-exclude *.py[co] +global-exclude *.bak +global-exclude *.so +global-exclude *~ +prune .tox +prune build +prune dist diff --git a/pkgs/sagemath-ntl/README.rst b/pkgs/sagemath-ntl/README.rst new file mode 100644 index 00000000000..1d441401614 --- /dev/null +++ b/pkgs/sagemath-ntl/README.rst @@ -0,0 +1,29 @@ +============================================================================== + Sage: Open Source Mathematics Software: Computational Number Theory with NTL +============================================================================== + +About SageMath +-------------- + + "Creating a Viable Open Source Alternative to + Magma, Maple, Mathematica, and MATLAB" + + Copyright (C) 2005-2023 The Sage Development Team + + https://www.sagemath.org + +SageMath fully supports all major Linux distributions, recent versions of +macOS, and Windows (using Cygwin or Windows Subsystem for Linux). + +The traditional and recommended way to install SageMath is from source via +Sage-the-distribution (https://www.sagemath.org/download-source.html). +Sage-the-distribution first builds a large number of open source packages from +source (unless it finds suitable versions installed in the system) and then +installs the Sage Library (sagelib, implemented in Python and Cython). + + +About this pip-installable source distribution +---------------------------------------------- + +This pip-installable source distribution ``sagemath-ntl`` is a small +distribution that provides modules that depend on NTL. diff --git a/pkgs/sagemath-ntl/VERSION.txt b/pkgs/sagemath-ntl/VERSION.txt new file mode 100644 index 00000000000..2f52450b31d --- /dev/null +++ b/pkgs/sagemath-ntl/VERSION.txt @@ -0,0 +1 @@ +10.0 diff --git a/pkgs/sagemath-ntl/pyproject.toml.m4 b/pkgs/sagemath-ntl/pyproject.toml.m4 new file mode 100644 index 00000000000..a41c970951b --- /dev/null +++ b/pkgs/sagemath-ntl/pyproject.toml.m4 @@ -0,0 +1,15 @@ +include(`sage_spkg_versions_toml.m4')dnl' -*- conf-toml -*- +[build-system] +# Minimum requirements for the build system to execute. +requires = [ + SPKG_INSTALL_REQUIRES_setuptools + SPKG_INSTALL_REQUIRES_sage_setup + SPKG_INSTALL_REQUIRES_sagemath_environment + SPKG_INSTALL_REQUIRES_sagemath_categories + SPKG_INSTALL_REQUIRES_sagemath_pari + SPKG_INSTALL_REQUIRES_cython + SPKG_INSTALL_REQUIRES_cysignals + SPKG_INSTALL_REQUIRES_cypari + SPKG_INSTALL_REQUIRES_memory_allocator +] +build-backend = "setuptools.build_meta" diff --git a/pkgs/sagemath-ntl/requirements.txt.m4 b/pkgs/sagemath-ntl/requirements.txt.m4 new file mode 100644 index 00000000000..8b6ca03b0b9 --- /dev/null +++ b/pkgs/sagemath-ntl/requirements.txt.m4 @@ -0,0 +1,2 @@ +Cython==esyscmd(`printf $(sed "s/[.]p.*//;" ../cython/package-version.txt)') +sagemath-standard==esyscmd(`printf $(sed "s/[.]p.*//;" ../sagelib/package-version.txt)') diff --git a/pkgs/sagemath-ntl/sage b/pkgs/sagemath-ntl/sage new file mode 120000 index 00000000000..e0da5daa6f2 --- /dev/null +++ b/pkgs/sagemath-ntl/sage @@ -0,0 +1 @@ +../../src/sage \ No newline at end of file diff --git a/pkgs/sagemath-ntl/setup.cfg.m4 b/pkgs/sagemath-ntl/setup.cfg.m4 new file mode 100644 index 00000000000..f14e1cfd045 --- /dev/null +++ b/pkgs/sagemath-ntl/setup.cfg.m4 @@ -0,0 +1,24 @@ +# -*- conf-unix -*- +[metadata] +name = sagemath-ntl +version = file: VERSION.txt +description = Sage: Open Source Mathematics Software: Computational Number Theory with NTL +long_description = file: README.rst +long_description_content_type = text/x-rst +include(`setup_cfg_metadata.m4')dnl' + +[options] +python_requires = >=3.8, <3.12 +install_requires = + esyscmd(`sage-get-system-packages install-requires \ + cypari \ + cysignals \ + memory_allocator \ + sagemath_environment \ + sagemath_categories \ + sagemath_pari \ + | sed "2,\$s/^/ /;"')dnl + +packages = + sage.libs.ntl + sage.rings.number_field diff --git a/pkgs/sagemath-ntl/setup.py b/pkgs/sagemath-ntl/setup.py new file mode 100644 index 00000000000..3b092b33c96 --- /dev/null +++ b/pkgs/sagemath-ntl/setup.py @@ -0,0 +1,64 @@ +#!/usr/bin/env python + +import sys +from distutils import log +from setuptools import setup + +# Work around a Cython problem in Python 3.8.x on macOS +# https://github.com/cython/cython/issues/3262 +import os +if os.uname().sysname == 'Darwin': + import multiprocessing + multiprocessing.set_start_method('fork', force=True) + +# If build isolation is not in use and setuptools_scm is installed, +# then its file_finders entry point is invoked, which we don't need. +# Workaround from ​https://github.com/pypa/setuptools_scm/issues/190#issuecomment-351181286 +try: + import setuptools_scm.integration + setuptools_scm.integration.find_files = lambda _: [] +except ImportError: + pass + +# PEP 517 builds do not have . in sys.path +sys.path.insert(0, os.path.dirname(__file__)) + +from sage_setup.excepthook import excepthook +sys.excepthook = excepthook + +from sage_setup.setenv import setenv +setenv() + +import sage.env +sage.env.default_required_modules = sage.env.default_optional_modules = () + +from sage_setup.command.sage_build_cython import sage_build_cython +from sage_setup.command.sage_build_ext import sage_build_ext +import os.path + +sage_build_cython.built_distributions = ['sagemath-ntl'] + +cmdclass = dict(build_cython=sage_build_cython, + build_ext=sage_build_ext) + +from sage_setup.find import find_python_sources, find_extra_files +python_packages, python_modules, cython_modules = find_python_sources( + '.', ['sage'], distributions=['sagemath-ntl']) +extra_files = find_extra_files( + '.', ['sage'], '/doesnotexist', distributions=['sagemath-ntl']) +package_data = {"": [f + for pkg, files in extra_files.items() + for f in files ]} + +log.warn('python_packages = {0}'.format(python_packages)) +log.warn('python_modules = {0}'.format(python_modules)) +log.warn('cython_modules = {0}'.format(cython_modules)) +log.warn('package_data = {0}'.format(package_data)) + +setup( + cmdclass = cmdclass, + packages = python_packages, + py_modules = python_modules, + ext_modules = cython_modules, + package_data = package_data, +) diff --git a/pkgs/sagemath-ntl/tox.ini b/pkgs/sagemath-ntl/tox.ini new file mode 100644 index 00000000000..492c30f3252 --- /dev/null +++ b/pkgs/sagemath-ntl/tox.ini @@ -0,0 +1,64 @@ +# To build and test in the tox environment: +# +# ./sage -sh -c '(cd pkgs/sagemath-gap && tox -v -v -v -e sagepython)' +# +# To test interactively: +# +# pkgs/sagemath-gap/.tox/sagepython/bin/python +# +[tox] +envlist = + sagepython-norequirements + +[testenv] +deps = + !norequirements: -rrequirements.txt + # tox 3.x does not handle extras when using --installpkg. https://github.com/tox-dev/tox/issues/1576 + sagemath-repl + +extras = test + +passenv = + # Variables set by .homebrew-build-env + CPATH + LIBRARY_PATH + PKG_CONFIG_PATH + # Parallel build + SAGE_NUM_THREADS + SAGE_NUM_THREADS_PARALLEL + # SAGE_VENV only for referring to the basepython or finding the wheels + sagepython, sagewheels: SAGE_VENV + # Location of the wheels + sagewheels: SAGE_SPKG_WHEELS + +setenv = + # Sage scripts such as sage-runtests like to use $HOME/.sage + HOME={envdir} + # We supply pip options by environment variables so that they + # apply both to the installation of the dependencies and of the package + sagewheels: PIP_FIND_LINKS=file://{env:SAGE_SPKG_WHEELS:{env:SAGE_VENV:{toxinidir}/../../../../venv}/var/lib/sage/wheels} + nopypi: PIP_NO_INDEX=true + +whitelist_externals = + bash + +commands = + # Beware of the treacherous non-src layout. "./sage/" shadows the install sage package. + # Importing sage.libs.gap.libgap does not work yet because of the runtime dep on 'sage.rings.polynomial' + # {envpython} -c 'import sys; "" in sys.path and sys.path.remove(""); import sage.libs.gap.libgap' + + +[testenv:sagepython] +basepython = {env:SAGE_VENV}/bin/python3 + +[testenv:sagepython-sagewheels-nopypi] +basepython = {env:SAGE_VENV}/bin/python3 + +[testenv:sagepython-sagewheels-nopypi-norequirements] +basepython = {env:SAGE_VENV}/bin/python3 + +[testenv:sagepython-sagewheels] +basepython = {env:SAGE_VENV}/bin/python3 + +[testenv:sagepython-norequirements] +basepython = {env:SAGE_VENV}/bin/python3 diff --git a/pkgs/sagemath-pari/MANIFEST.in b/pkgs/sagemath-pari/MANIFEST.in new file mode 100644 index 00000000000..978b42dc6db --- /dev/null +++ b/pkgs/sagemath-pari/MANIFEST.in @@ -0,0 +1,72 @@ +prune sage + +include VERSION.txt + +global-include all__sagemath_pari.py + +graft sage/libs/pari +exclude sage/libs/pari/convert_flint.p* +exclude sage/libs/pari/convert_sage*.p* # to be added later; needs sage.rings.{integer,rational,*_double}, sage.libs.gsl.complex +include sage/rings/finite_rings/element_pari_ffelt.p* # needs sage.rings.finite_rings.element_base +include sage/rings/factorint_pari.p* # needs sage.rings.integer +include sage/rings/power_series_pari.p* # needs sage.rings.power_series_ring_element, sage.rings.polynomial.polynomial_element + +# pxd dependencies +include sage/misc/binary_tree.pxd # FIXME +include sage/rings/integer.pxd # FIXME +include sage/rings/finite_rings/element_base.p* # FIXME +include sage/rings/polynomial/*.pxd # FIXME +include sage/rings/power_series_ring_element.pxd # FIXME +include sage/rings/rational.pxd # FIXME + + +# We could but don't currently include this +# -- rather we ship all of sage.rings.number_field in sagemath-ntl (which currently depends on sagemath-pari) +# include sage/rings/number_field/totallyreal*.p* # needs sage.rings.{integer,rational} + + + +# +# real_mpfr; could hopefully be disentangled from cypari2 later and moved to sagemath-categories. +# +include sage/rings/real_mpfr.p* # also needs sage.libs.mpmath.utils +graft sage/libs/mpfr + +# real_mpfr dependencies +include sage/libs/mpmath/utils.pxd # FIXME +include sage/rings/abc.pxd # FIXME +include sage/rings/real_double.pxd # FIXME +include sage/arith/constants.pxd # FIXME + +# +# padics using PARI. +# +include sage/rings/padics/common_conversion.p* +include sage/rings/padics/padic_capped_*_element.p* +include sage/rings/padics/padic_floating_point_element.p* +include sage/rings/padics/padic_fixed_mod_element.p* + +# pxd dependencies for padics using PARI. +# TODO: Could as well ship all of padics (except those that additionally need FLINT or NTL) here. +include sage/libs/linkages/padics/*.pxi # FIXME? +include sage/rings/padics/pow_computer.pxd # FIXME? +include sage/rings/padics/padic_generic_element.pxd # FIXME? +include sage/rings/padics/local_generic_element.pxd # FIXME? +include sage/rings/padics/*.pxi # FIXME? + +# pxd dependencies for padics using PARI. This will later come from sagemath-categories. +include sage/arith/rational_reconstruction.pxd # FIXME +include sage/rings/morphism.pxd # FIXME + + +global-exclude *.c +global-exclude *.cpp + +global-exclude __pycache__ +global-exclude *.py[co] +global-exclude *.bak +global-exclude *.so +global-exclude *~ +prune .tox +prune build +prune dist diff --git a/pkgs/sagemath-pari/README.rst b/pkgs/sagemath-pari/README.rst new file mode 100644 index 00000000000..e126e35018c --- /dev/null +++ b/pkgs/sagemath-pari/README.rst @@ -0,0 +1,30 @@ +================================================================================== + Sage: Open Source Mathematics Software: Computational Number Theory with PARI/GP +================================================================================== + +About SageMath +-------------- + + "Creating a Viable Open Source Alternative to + Magma, Maple, Mathematica, and MATLAB" + + Copyright (C) 2005-2023 The Sage Development Team + + https://www.sagemath.org + +SageMath fully supports all major Linux distributions, recent versions of +macOS, and Windows (using Cygwin or Windows Subsystem for Linux). + +The traditional and recommended way to install SageMath is from source via +Sage-the-distribution (https://www.sagemath.org/download-source.html). +Sage-the-distribution first builds a large number of open source packages from +source (unless it finds suitable versions installed in the system) and then +installs the Sage Library (sagelib, implemented in Python and Cython). + + +About this pip-installable source distribution +---------------------------------------------- + +This pip-installable source distribution ``sagemath-pari`` is a small +distribution that provides modules that depend on the computer algebra +system PARI/GP. diff --git a/pkgs/sagemath-pari/VERSION.txt b/pkgs/sagemath-pari/VERSION.txt new file mode 100644 index 00000000000..2f52450b31d --- /dev/null +++ b/pkgs/sagemath-pari/VERSION.txt @@ -0,0 +1 @@ +10.0 diff --git a/pkgs/sagemath-pari/pyproject.toml.m4 b/pkgs/sagemath-pari/pyproject.toml.m4 new file mode 100644 index 00000000000..c1426962e7d --- /dev/null +++ b/pkgs/sagemath-pari/pyproject.toml.m4 @@ -0,0 +1,14 @@ +include(`sage_spkg_versions_toml.m4')dnl' -*- conf-toml -*- +[build-system] +# Minimum requirements for the build system to execute. +requires = [ + SPKG_INSTALL_REQUIRES_setuptools + SPKG_INSTALL_REQUIRES_sage_setup + SPKG_INSTALL_REQUIRES_sagemath_environment + SPKG_INSTALL_REQUIRES_sagemath_categories + SPKG_INSTALL_REQUIRES_cython + SPKG_INSTALL_REQUIRES_cysignals + SPKG_INSTALL_REQUIRES_cypari + SPKG_INSTALL_REQUIRES_memory_allocator +] +build-backend = "setuptools.build_meta" diff --git a/pkgs/sagemath-pari/requirements.txt.m4 b/pkgs/sagemath-pari/requirements.txt.m4 new file mode 100644 index 00000000000..8b6ca03b0b9 --- /dev/null +++ b/pkgs/sagemath-pari/requirements.txt.m4 @@ -0,0 +1,2 @@ +Cython==esyscmd(`printf $(sed "s/[.]p.*//;" ../cython/package-version.txt)') +sagemath-standard==esyscmd(`printf $(sed "s/[.]p.*//;" ../sagelib/package-version.txt)') diff --git a/pkgs/sagemath-pari/sage b/pkgs/sagemath-pari/sage new file mode 120000 index 00000000000..e0da5daa6f2 --- /dev/null +++ b/pkgs/sagemath-pari/sage @@ -0,0 +1 @@ +../../src/sage \ No newline at end of file diff --git a/pkgs/sagemath-pari/setup.cfg.m4 b/pkgs/sagemath-pari/setup.cfg.m4 new file mode 100644 index 00000000000..46245352c4f --- /dev/null +++ b/pkgs/sagemath-pari/setup.cfg.m4 @@ -0,0 +1,25 @@ +include(`sage_spkg_versions.m4')dnl' -*- conf-unix -*- +[metadata] +name = sagemath-pari +version = file: VERSION.txt +description = Sage: Open Source Mathematics Software: Computational Number Theory with PARI/GP +long_description = file: README.rst +long_description_content_type = text/x-rst +include(`setup_cfg_metadata.m4')dnl' + +[options] +python_requires = >=3.8, <3.12 +install_requires = + SPKG_INSTALL_REQUIRES_cypari + SPKG_INSTALL_REQUIRES_cysignals + SPKG_INSTALL_REQUIRES_memory_allocator + SPKG_INSTALL_REQUIRES_sagemath_environment + SPKG_INSTALL_REQUIRES_sagemath_categories + +packages = + sage.libs.pari + sage.libs.mpfr + +[options.package_data] +sage.libs.pari = *.pxd +sage.libs.mpfr = *.pxd diff --git a/pkgs/sagemath-pari/setup.py b/pkgs/sagemath-pari/setup.py new file mode 100644 index 00000000000..cd21583fd2e --- /dev/null +++ b/pkgs/sagemath-pari/setup.py @@ -0,0 +1,64 @@ +#!/usr/bin/env python + +import sys +from distutils import log +from setuptools import setup + +# Work around a Cython problem in Python 3.8.x on macOS +# https://github.com/cython/cython/issues/3262 +import os +if os.uname().sysname == 'Darwin': + import multiprocessing + multiprocessing.set_start_method('fork', force=True) + +# If build isolation is not in use and setuptools_scm is installed, +# then its file_finders entry point is invoked, which we don't need. +# Workaround from ​https://github.com/pypa/setuptools_scm/issues/190#issuecomment-351181286 +try: + import setuptools_scm.integration + setuptools_scm.integration.find_files = lambda _: [] +except ImportError: + pass + +# PEP 517 builds do not have . in sys.path +sys.path.insert(0, os.path.dirname(__file__)) + +from sage_setup.excepthook import excepthook +sys.excepthook = excepthook + +from sage_setup.setenv import setenv +setenv() + +import sage.env +sage.env.default_required_modules = sage.env.default_optional_modules = () + +from sage_setup.command.sage_build_cython import sage_build_cython +from sage_setup.command.sage_build_ext import sage_build_ext +import os.path + +sage_build_cython.built_distributions = ['sagemath-pari'] + +cmdclass = dict(build_cython=sage_build_cython, + build_ext=sage_build_ext) + +from sage_setup.find import find_python_sources, find_extra_files +python_packages, python_modules, cython_modules = find_python_sources( + '.', ['sage'], distributions=['sagemath-pari']) +extra_files = find_extra_files( + '.', ['sage'], '/doesnotexist', distributions=['sagemath-pari']) +package_data = {"": [f + for pkg, files in extra_files.items() + for f in files ]} + +log.warn('python_packages = {0}'.format(python_packages)) +log.warn('python_modules = {0}'.format(python_modules)) +log.warn('cython_modules = {0}'.format(cython_modules)) +log.warn('package_data = {0}'.format(package_data)) + +setup( + cmdclass = cmdclass, + packages = python_packages, + py_modules = python_modules, + ext_modules = cython_modules, + package_data = package_data, +) diff --git a/pkgs/sagemath-pari/tox.ini b/pkgs/sagemath-pari/tox.ini new file mode 100644 index 00000000000..4ae06955a88 --- /dev/null +++ b/pkgs/sagemath-pari/tox.ini @@ -0,0 +1,65 @@ +# To build and test in the tox environment: +# +# ./sage -sh -c '(cd pkgs/sagemath-pari && tox -v -v -v -e sagepython)' +# +# To test interactively: +# +# pkgs/sagemath-pari/.tox/sagepython/bin/python +# +[tox] +envlist = + sagepython-sagewheels-nopypi-norequirements + +[testenv] +deps = + !norequirements: -rrequirements.txt + # tox 3.x does not handle extras when using --installpkg. https://github.com/tox-dev/tox/issues/1576 + sagemath-repl + +extras = test + +passenv = + # Variables set by .homebrew-build-env + CPATH + LIBRARY_PATH + PKG_CONFIG_PATH + # Parallel build + SAGE_NUM_THREADS + SAGE_NUM_THREADS_PARALLEL + # SAGE_VENV only for referring to the basepython or finding the wheels + sagepython, sagewheels: SAGE_VENV + # Location of the wheels + sagewheels: SAGE_SPKG_WHEELS + +setenv = + # Sage scripts such as sage-runtests like to use $HOME/.sage + HOME={envdir} + # We supply pip options by environment variables so that they + # apply both to the installation of the dependencies and of the package + sagewheels: PIP_FIND_LINKS=file://{env:SAGE_SPKG_WHEELS:{env:SAGE_VENV:{toxinidir}/../../../../venv}/var/lib/sage/wheels} + nopypi: PIP_NO_INDEX=true + +whitelist_externals = + bash + +commands = + # Beware of the treacherous non-src layout. "./sage/" shadows the install sage package. + # Importing sage.libs.gap.libgap does not work yet because of the runtime dep on 'sage.rings.polynomial' + # {envpython} -c 'import sys; "" in sys.path and sys.path.remove(""); import sage.libs.gap.libgap' + + +[testenv:sagepython] +basepython = {env:SAGE_VENV}/bin/python3 + +[testenv:sagepython-sagewheels-nopypi] +basepython = {env:SAGE_VENV}/bin/python3 + +[testenv:sagepython-sagewheels] +basepython = {env:SAGE_VENV}/bin/python3 + +[testenv:sagepython-norequirements] +basepython = {env:SAGE_VENV}/bin/python3 + + +[testenv:sagepython-sagewheels-nopypi-norequirements] +basepython = {env:SAGE_VENV}/bin/python3 diff --git a/pkgs/sagemath-standard/setup.py b/pkgs/sagemath-standard/setup.py index 7f6318a0fa0..b260f7f58c1 100755 --- a/pkgs/sagemath-standard/setup.py +++ b/pkgs/sagemath-standard/setup.py @@ -76,8 +76,15 @@ # TODO: This should be quiet by default print("Discovering Python/Cython source code....") t = time.time() +distributions = ['', + 'sagemath-flint', + 'sagemath-gap', + 'sagemath-giac', + 'sagemath-homfly', + 'sagemath-ntl', + 'sagemath-pari', + ] from sage.misc.package import is_package_installed_and_updated -distributions = [''] optional_packages_with_extensions = os.environ.get('SAGE_OPTIONAL_PACKAGES_WITH_EXTENSIONS', '').split(',') distributions += ['sagemath-{}'.format(pkg) for pkg in optional_packages_with_extensions diff --git a/src/sage/all__sagemath_flint.py b/src/sage/all__sagemath_flint.py new file mode 100644 index 00000000000..d31bae41036 --- /dev/null +++ b/src/sage/all__sagemath_flint.py @@ -0,0 +1 @@ +# sage_setup: distribution = sagemath-flint diff --git a/src/sage/all__sagemath_gap.py b/src/sage/all__sagemath_gap.py new file mode 100644 index 00000000000..874dee7da10 --- /dev/null +++ b/src/sage/all__sagemath_gap.py @@ -0,0 +1,3 @@ +# sage_setup: distribution = sagemath-gap + +import sage.libs.gap.element diff --git a/src/sage/all__sagemath_giac.py b/src/sage/all__sagemath_giac.py new file mode 100644 index 00000000000..43f71d83e8b --- /dev/null +++ b/src/sage/all__sagemath_giac.py @@ -0,0 +1 @@ +# sage_setup: distribution = sagemath-giac diff --git a/src/sage/all__sagemath_homfly.py b/src/sage/all__sagemath_homfly.py new file mode 100644 index 00000000000..8a8d066959a --- /dev/null +++ b/src/sage/all__sagemath_homfly.py @@ -0,0 +1 @@ +# sage_setup: distribution = sagemath-homfly diff --git a/src/sage/all__sagemath_ntl.py b/src/sage/all__sagemath_ntl.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/all__sagemath_pari.py b/src/sage/all__sagemath_pari.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/coding/all__sagemath_gap.py b/src/sage/coding/all__sagemath_gap.py new file mode 100644 index 00000000000..dd59a6da735 --- /dev/null +++ b/src/sage/coding/all__sagemath_gap.py @@ -0,0 +1 @@ +# sage_setup: distribution = sagemath-gap diff --git a/src/sage/coding/codecan/codecan.pxd b/src/sage/coding/codecan/codecan.pxd index dd72f6bb798..edefe429fdc 100644 --- a/src/sage/coding/codecan/codecan.pxd +++ b/src/sage/coding/codecan/codecan.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap from sage.groups.perm_gps.permgroup_element cimport PermutationGroupElement from sage.groups.semimonomial_transformations.semimonomial_transformation cimport SemimonomialTransformation from sage.modules.free_module_element cimport FreeModuleElement diff --git a/src/sage/coding/codecan/codecan.pyx b/src/sage/coding/codecan/codecan.pyx index b0709155b57..cd6e5e9ad78 100644 --- a/src/sage/coding/codecan/codecan.pyx +++ b/src/sage/coding/codecan/codecan.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap r""" Canonical forms and automorphism group computation for linear codes over finite fields diff --git a/src/sage/combinat/all__sagemath_gap.py b/src/sage/combinat/all__sagemath_gap.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/combinat/enumeration_mod_permgroup.pxd b/src/sage/combinat/enumeration_mod_permgroup.pxd index 2f457429ccf..e76f84dc7c8 100644 --- a/src/sage/combinat/enumeration_mod_permgroup.pxd +++ b/src/sage/combinat/enumeration_mod_permgroup.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap from sage.structure.list_clone cimport ClonableIntArray cpdef list all_children(ClonableIntArray v, int max_part) diff --git a/src/sage/combinat/enumeration_mod_permgroup.pyx b/src/sage/combinat/enumeration_mod_permgroup.pyx index 3e0b891165f..ecf56243208 100644 --- a/src/sage/combinat/enumeration_mod_permgroup.pyx +++ b/src/sage/combinat/enumeration_mod_permgroup.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap r""" Tools for enumeration modulo the action of a permutation group """ diff --git a/src/sage/combinat/root_system/all__sagemath_gap.py b/src/sage/combinat/root_system/all__sagemath_gap.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/combinat/root_system/reflection_group_c.pyx b/src/sage/combinat/root_system/reflection_group_c.pyx index d709a6dceec..540283f9608 100644 --- a/src/sage/combinat/root_system/reflection_group_c.pyx +++ b/src/sage/combinat/root_system/reflection_group_c.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap #cython: wraparound=False, boundscheck=False r""" This contains a few time-critical auxiliary cython functions for diff --git a/src/sage/combinat/root_system/reflection_group_element.pxd b/src/sage/combinat/root_system/reflection_group_element.pxd index 04e98fc3fb2..b442383b7be 100644 --- a/src/sage/combinat/root_system/reflection_group_element.pxd +++ b/src/sage/combinat/root_system/reflection_group_element.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap from sage.groups.perm_gps.permgroup_element cimport PermutationGroupElement cdef class ComplexReflectionGroupElement(PermutationGroupElement): diff --git a/src/sage/combinat/root_system/reflection_group_element.pyx b/src/sage/combinat/root_system/reflection_group_element.pyx index b790438854a..d7633d5a0ea 100644 --- a/src/sage/combinat/root_system/reflection_group_element.pyx +++ b/src/sage/combinat/root_system/reflection_group_element.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap r""" Reflection group elements diff --git a/src/sage/ext_data/all__sagemath_gap.py b/src/sage/ext_data/all__sagemath_gap.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/ext_data/gap/__init__.py b/src/sage/ext_data/gap/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/features/sagemath.py b/src/sage/features/sagemath.py index f7c3c0749ee..73123cf426f 100644 --- a/src/sage/features/sagemath.py +++ b/src/sage/features/sagemath.py @@ -358,7 +358,7 @@ def __init__(self): JoinFeature.__init__(self, 'sage.libs.flint', [PythonModule('sage.libs.flint.flint'), PythonModule('sage.libs.arb.arith')], - spkg='sagemath_flint', type='standard') + type='standard') class sage__libs__gap(JoinFeature): @@ -416,7 +416,7 @@ def __init__(self): """ JoinFeature.__init__(self, 'sage.libs.ntl', [PythonModule('sage.libs.ntl.convert')], - spkg='sagemath_ntl', type='standard') + type='standard') class sage__libs__pari(JoinFeature): @@ -453,7 +453,7 @@ def __init__(self): """ JoinFeature.__init__(self, 'sage.libs.pari', [PythonModule('sage.libs.pari.convert_sage')], - spkg='sagemath_pari', type='standard') + type='standard') class sage__libs__singular(JoinFeature): diff --git a/src/sage/groups/all__sagemath_gap.py b/src/sage/groups/all__sagemath_gap.py new file mode 100644 index 00000000000..c971c17d54c --- /dev/null +++ b/src/sage/groups/all__sagemath_gap.py @@ -0,0 +1,3 @@ +# sage_setup: distribution = sagemath-gap + +from .perm_gps.all import * diff --git a/src/sage/groups/libgap_wrapper.pxd b/src/sage/groups/libgap_wrapper.pxd index 0c43b098140..42214521586 100644 --- a/src/sage/groups/libgap_wrapper.pxd +++ b/src/sage/groups/libgap_wrapper.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap from sage.structure.element cimport MultiplicativeGroupElement from sage.libs.gap.element cimport GapElement diff --git a/src/sage/groups/libgap_wrapper.pyx b/src/sage/groups/libgap_wrapper.pyx index c65afa447e5..5f26a716453 100644 --- a/src/sage/groups/libgap_wrapper.pyx +++ b/src/sage/groups/libgap_wrapper.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap """ LibGAP-based Groups diff --git a/src/sage/groups/matrix_gps/all__sagemath_gap.py b/src/sage/groups/matrix_gps/all__sagemath_gap.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/groups/matrix_gps/finitely_generated_gap.py b/src/sage/groups/matrix_gps/finitely_generated_gap.py index a171742b60a..01a2ed23b4e 100644 --- a/src/sage/groups/matrix_gps/finitely_generated_gap.py +++ b/src/sage/groups/matrix_gps/finitely_generated_gap.py @@ -1,3 +1,5 @@ +# sage_setup: distribution = sagemath-gap + """ Finitely Generated Matrix Groups with GAP """ diff --git a/src/sage/groups/matrix_gps/group_element.pxd b/src/sage/groups/matrix_gps/group_element.pxd index 36a5a9fc4ce..d2797029686 100644 --- a/src/sage/groups/matrix_gps/group_element.pxd +++ b/src/sage/groups/matrix_gps/group_element.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap from sage.structure.element cimport MultiplicativeGroupElement, Element, MonoidElement, Matrix cpdef is_MatrixGroupElement(x) diff --git a/src/sage/groups/matrix_gps/group_element.pyx b/src/sage/groups/matrix_gps/group_element.pyx index 4e57798b384..3d19bb3571a 100644 --- a/src/sage/groups/matrix_gps/group_element.pyx +++ b/src/sage/groups/matrix_gps/group_element.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap """ Matrix Group Elements diff --git a/src/sage/groups/matrix_gps/group_element_gap.pyx b/src/sage/groups/matrix_gps/group_element_gap.pyx index c26ddebde71..9d03bfe60de 100644 --- a/src/sage/groups/matrix_gps/group_element_gap.pyx +++ b/src/sage/groups/matrix_gps/group_element_gap.pyx @@ -1,3 +1,5 @@ +# sage_setup: distribution = sagemath-gap + r""" Matrix group elements implemented in GAP """ diff --git a/src/sage/groups/matrix_gps/linear_gap.py b/src/sage/groups/matrix_gps/linear_gap.py index 37d33d5d2be..b66a295e31b 100644 --- a/src/sage/groups/matrix_gps/linear_gap.py +++ b/src/sage/groups/matrix_gps/linear_gap.py @@ -1,3 +1,5 @@ +# sage_setup: distribution = sagemath-gap + """ Linear Groups with GAP """ diff --git a/src/sage/groups/matrix_gps/matrix_group_gap.py b/src/sage/groups/matrix_gps/matrix_group_gap.py index b4c06acbd0f..2137264bd74 100644 --- a/src/sage/groups/matrix_gps/matrix_group_gap.py +++ b/src/sage/groups/matrix_gps/matrix_group_gap.py @@ -1,3 +1,5 @@ +# sage_setup: distribution = sagemath-gap + r""" Matrix group over a ring that GAP understands """ diff --git a/src/sage/groups/matrix_gps/named_group_gap.py b/src/sage/groups/matrix_gps/named_group_gap.py index b8b1f54722c..94372fe22a2 100644 --- a/src/sage/groups/matrix_gps/named_group_gap.py +++ b/src/sage/groups/matrix_gps/named_group_gap.py @@ -1,3 +1,5 @@ +# sage_setup: distribution = sagemath-gap + """ Base for Classical Matrix Groups with GAP """ diff --git a/src/sage/groups/matrix_gps/orthogonal_gap.py b/src/sage/groups/matrix_gps/orthogonal_gap.py index 17dabb698f2..f17999f6f76 100644 --- a/src/sage/groups/matrix_gps/orthogonal_gap.py +++ b/src/sage/groups/matrix_gps/orthogonal_gap.py @@ -1,3 +1,5 @@ +# sage_setup: distribution = sagemath-gap + r""" Orthogonal Linear Groups with GAP """ diff --git a/src/sage/groups/matrix_gps/symplectic_gap.py b/src/sage/groups/matrix_gps/symplectic_gap.py index adeefea218f..62decc0370a 100644 --- a/src/sage/groups/matrix_gps/symplectic_gap.py +++ b/src/sage/groups/matrix_gps/symplectic_gap.py @@ -1,3 +1,5 @@ +# sage_setup: distribution = sagemath-gap + """ Symplectic Linear Groups with GAP """ diff --git a/src/sage/groups/matrix_gps/unitary_gap.py b/src/sage/groups/matrix_gps/unitary_gap.py index 02b0456decb..aebbd771aa7 100644 --- a/src/sage/groups/matrix_gps/unitary_gap.py +++ b/src/sage/groups/matrix_gps/unitary_gap.py @@ -1,3 +1,5 @@ +# sage_setup: distribution = sagemath-gap + r""" Unitary Groups `GU(n,q)` and `SU(n,q)` with GAP """ diff --git a/src/sage/groups/perm_gps/all.py b/src/sage/groups/perm_gps/all.py index ae405f298a2..9add6adfe45 100644 --- a/src/sage/groups/perm_gps/all.py +++ b/src/sage/groups/perm_gps/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap from .permgroup_named import (SymmetricGroup, AlternatingGroup, DihedralGroup, SplitMetacyclicGroup, SemidihedralGroup, CyclicPermutationGroup, diff --git a/src/sage/groups/perm_gps/constructor.py b/src/sage/groups/perm_gps/constructor.py index 73dc5f94c41..eeebc7b68b7 100644 --- a/src/sage/groups/perm_gps/constructor.py +++ b/src/sage/groups/perm_gps/constructor.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap """ Constructor for permutations diff --git a/src/sage/groups/perm_gps/cubegroup.py b/src/sage/groups/perm_gps/cubegroup.py index e23d072de58..fd16d231ea8 100644 --- a/src/sage/groups/perm_gps/cubegroup.py +++ b/src/sage/groups/perm_gps/cubegroup.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap r""" Rubik's cube group functions diff --git a/src/sage/groups/perm_gps/partn_ref/automorphism_group_canonical_label.pxd b/src/sage/groups/perm_gps/partn_ref/automorphism_group_canonical_label.pxd index 5fe1ebd140d..791ac2e89aa 100644 --- a/src/sage/groups/perm_gps/partn_ref/automorphism_group_canonical_label.pxd +++ b/src/sage/groups/perm_gps/partn_ref/automorphism_group_canonical_label.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap #***************************************************************************** # Copyright (C) 2006 - 2011 Robert L. Miller # diff --git a/src/sage/groups/perm_gps/partn_ref/automorphism_group_canonical_label.pyx b/src/sage/groups/perm_gps/partn_ref/automorphism_group_canonical_label.pyx index d174874194f..5f62ade5d11 100644 --- a/src/sage/groups/perm_gps/partn_ref/automorphism_group_canonical_label.pyx +++ b/src/sage/groups/perm_gps/partn_ref/automorphism_group_canonical_label.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap r""" Automorphism groups and canonical labels diff --git a/src/sage/groups/perm_gps/partn_ref/canonical_augmentation.pxd b/src/sage/groups/perm_gps/partn_ref/canonical_augmentation.pxd index dfcf347df4c..04d5415050f 100644 --- a/src/sage/groups/perm_gps/partn_ref/canonical_augmentation.pxd +++ b/src/sage/groups/perm_gps/partn_ref/canonical_augmentation.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap r""" Declaration file for canonical augmentation diff --git a/src/sage/groups/perm_gps/partn_ref/canonical_augmentation.pyx b/src/sage/groups/perm_gps/partn_ref/canonical_augmentation.pyx index d6cc56d585a..4e612402863 100644 --- a/src/sage/groups/perm_gps/partn_ref/canonical_augmentation.pyx +++ b/src/sage/groups/perm_gps/partn_ref/canonical_augmentation.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap r""" Canonical augmentation diff --git a/src/sage/groups/perm_gps/partn_ref/data_structures.pxd b/src/sage/groups/perm_gps/partn_ref/data_structures.pxd index 8c5ae14b5bb..9c19cbd2a7b 100644 --- a/src/sage/groups/perm_gps/partn_ref/data_structures.pxd +++ b/src/sage/groups/perm_gps/partn_ref/data_structures.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap #***************************************************************************** # Copyright (C) 2006 - 2011 Robert L. Miller # diff --git a/src/sage/groups/perm_gps/partn_ref/data_structures.pyx b/src/sage/groups/perm_gps/partn_ref/data_structures.pyx index b6567fb3dc9..4de5a55c124 100644 --- a/src/sage/groups/perm_gps/partn_ref/data_structures.pyx +++ b/src/sage/groups/perm_gps/partn_ref/data_structures.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap r""" Data structures diff --git a/src/sage/groups/perm_gps/partn_ref/double_coset.pxd b/src/sage/groups/perm_gps/partn_ref/double_coset.pxd index 7db1b7764c3..e8d8abe03d1 100644 --- a/src/sage/groups/perm_gps/partn_ref/double_coset.pxd +++ b/src/sage/groups/perm_gps/partn_ref/double_coset.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap #***************************************************************************** # Copyright (C) 2006 - 2011 Robert L. Miller # diff --git a/src/sage/groups/perm_gps/partn_ref/double_coset.pyx b/src/sage/groups/perm_gps/partn_ref/double_coset.pyx index 56a97f6ece4..f36726f6097 100644 --- a/src/sage/groups/perm_gps/partn_ref/double_coset.pyx +++ b/src/sage/groups/perm_gps/partn_ref/double_coset.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap r""" Double cosets diff --git a/src/sage/groups/perm_gps/partn_ref/refinement_binary.pxd b/src/sage/groups/perm_gps/partn_ref/refinement_binary.pxd index 005142f8bc7..8dc5b95f27e 100644 --- a/src/sage/groups/perm_gps/partn_ref/refinement_binary.pxd +++ b/src/sage/groups/perm_gps/partn_ref/refinement_binary.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap #***************************************************************************** # Copyright (C) 2006 - 2011 Robert L. Miller # diff --git a/src/sage/groups/perm_gps/partn_ref/refinement_binary.pyx b/src/sage/groups/perm_gps/partn_ref/refinement_binary.pyx index 3616decd7e4..9da6a9ea2ec 100644 --- a/src/sage/groups/perm_gps/partn_ref/refinement_binary.pyx +++ b/src/sage/groups/perm_gps/partn_ref/refinement_binary.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap """ Partition backtrack functions for binary codes diff --git a/src/sage/groups/perm_gps/partn_ref/refinement_graphs.pxd b/src/sage/groups/perm_gps/partn_ref/refinement_graphs.pxd index f26580d3010..bf3acd3b5cc 100644 --- a/src/sage/groups/perm_gps/partn_ref/refinement_graphs.pxd +++ b/src/sage/groups/perm_gps/partn_ref/refinement_graphs.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap #***************************************************************************** # Copyright (C) 2006 - 2011 Robert L. Miller # diff --git a/src/sage/groups/perm_gps/partn_ref/refinement_graphs.pyx b/src/sage/groups/perm_gps/partn_ref/refinement_graphs.pyx index 17ddfce42db..e9f3c30b3a8 100644 --- a/src/sage/groups/perm_gps/partn_ref/refinement_graphs.pyx +++ b/src/sage/groups/perm_gps/partn_ref/refinement_graphs.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap """ Graph-theoretic partition backtrack functions diff --git a/src/sage/groups/perm_gps/partn_ref/refinement_lists.pxd b/src/sage/groups/perm_gps/partn_ref/refinement_lists.pxd index 898dfa97528..20db4dd5073 100644 --- a/src/sage/groups/perm_gps/partn_ref/refinement_lists.pxd +++ b/src/sage/groups/perm_gps/partn_ref/refinement_lists.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap #***************************************************************************** # Copyright (C) 2006 - 2011 Robert L. Miller # Copyright (C) 2009 Nicolas Borie diff --git a/src/sage/groups/perm_gps/partn_ref/refinement_lists.pyx b/src/sage/groups/perm_gps/partn_ref/refinement_lists.pyx index 5942edd5438..f317214aca2 100644 --- a/src/sage/groups/perm_gps/partn_ref/refinement_lists.pyx +++ b/src/sage/groups/perm_gps/partn_ref/refinement_lists.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap """ Partition backtrack functions for lists -- a simple example of using partn_ref diff --git a/src/sage/groups/perm_gps/partn_ref/refinement_matrices.pxd b/src/sage/groups/perm_gps/partn_ref/refinement_matrices.pxd index 0273291f014..aad03c0f51e 100644 --- a/src/sage/groups/perm_gps/partn_ref/refinement_matrices.pxd +++ b/src/sage/groups/perm_gps/partn_ref/refinement_matrices.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap #***************************************************************************** # Copyright (C) 2006 - 2011 Robert L. Miller # diff --git a/src/sage/groups/perm_gps/partn_ref/refinement_matrices.pyx b/src/sage/groups/perm_gps/partn_ref/refinement_matrices.pyx index e2388616a34..f651293f800 100644 --- a/src/sage/groups/perm_gps/partn_ref/refinement_matrices.pyx +++ b/src/sage/groups/perm_gps/partn_ref/refinement_matrices.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap """ Partition backtrack functions for matrices diff --git a/src/sage/groups/perm_gps/partn_ref/refinement_python.pxd b/src/sage/groups/perm_gps/partn_ref/refinement_python.pxd index 1c13cb9c337..e9f338ede8d 100644 --- a/src/sage/groups/perm_gps/partn_ref/refinement_python.pxd +++ b/src/sage/groups/perm_gps/partn_ref/refinement_python.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap #***************************************************************************** # Copyright (C) 2006 - 2011 Robert L. Miller # diff --git a/src/sage/groups/perm_gps/partn_ref/refinement_python.pyx b/src/sage/groups/perm_gps/partn_ref/refinement_python.pyx index 4d53f3a0332..5ce88576f37 100644 --- a/src/sage/groups/perm_gps/partn_ref/refinement_python.pyx +++ b/src/sage/groups/perm_gps/partn_ref/refinement_python.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap """ Python interface to partition backtrack functions diff --git a/src/sage/groups/perm_gps/partn_ref/refinement_sets.pxd b/src/sage/groups/perm_gps/partn_ref/refinement_sets.pxd index 19f60c7f153..e265626e084 100644 --- a/src/sage/groups/perm_gps/partn_ref/refinement_sets.pxd +++ b/src/sage/groups/perm_gps/partn_ref/refinement_sets.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap r""" Declaration file for simple set datastructures diff --git a/src/sage/groups/perm_gps/partn_ref/refinement_sets.pyx b/src/sage/groups/perm_gps/partn_ref/refinement_sets.pyx index 04aed5a296b..275652a148d 100644 --- a/src/sage/groups/perm_gps/partn_ref/refinement_sets.pyx +++ b/src/sage/groups/perm_gps/partn_ref/refinement_sets.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap r""" Partition backtrack functions for sets diff --git a/src/sage/groups/perm_gps/partn_ref2/refinement_generic.pxd b/src/sage/groups/perm_gps/partn_ref2/refinement_generic.pxd index df300e4e0ce..af0e9e46398 100644 --- a/src/sage/groups/perm_gps/partn_ref2/refinement_generic.pxd +++ b/src/sage/groups/perm_gps/partn_ref2/refinement_generic.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap #******************************************************************************* # Copyright (C) 2012 Thomas Feulner # diff --git a/src/sage/groups/perm_gps/partn_ref2/refinement_generic.pyx b/src/sage/groups/perm_gps/partn_ref2/refinement_generic.pyx index 6e4e2b27eeb..2f3ff3e82dc 100644 --- a/src/sage/groups/perm_gps/partn_ref2/refinement_generic.pyx +++ b/src/sage/groups/perm_gps/partn_ref2/refinement_generic.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap r""" Automorphism groups and canonical labels. diff --git a/src/sage/groups/perm_gps/permgroup.py b/src/sage/groups/perm_gps/permgroup.py index 6e59f4f4b84..3a011e77749 100644 --- a/src/sage/groups/perm_gps/permgroup.py +++ b/src/sage/groups/perm_gps/permgroup.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap # -*- coding: utf-8 -*- r""" Permutation groups diff --git a/src/sage/groups/perm_gps/permgroup_element.pxd b/src/sage/groups/perm_gps/permgroup_element.pxd index a2ac8f20eaa..9e9b60c798e 100644 --- a/src/sage/groups/perm_gps/permgroup_element.pxd +++ b/src/sage/groups/perm_gps/permgroup_element.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap from sage.structure.element cimport MultiplicativeGroupElement, MonoidElement, Element from sage.structure.list_clone cimport ClonableIntArray from sage.rings.polynomial.polydict cimport ETuple diff --git a/src/sage/groups/perm_gps/permgroup_element.pyx b/src/sage/groups/perm_gps/permgroup_element.pyx index efc5e502cc0..2282c81130f 100644 --- a/src/sage/groups/perm_gps/permgroup_element.pyx +++ b/src/sage/groups/perm_gps/permgroup_element.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap r""" Permutation group elements diff --git a/src/sage/groups/perm_gps/permgroup_morphism.py b/src/sage/groups/perm_gps/permgroup_morphism.py index 917ddd01865..a2e29c757e9 100644 --- a/src/sage/groups/perm_gps/permgroup_morphism.py +++ b/src/sage/groups/perm_gps/permgroup_morphism.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap r""" Permutation group homomorphisms diff --git a/src/sage/groups/perm_gps/permgroup_named.py b/src/sage/groups/perm_gps/permgroup_named.py index 7b3d4947f75..509a94c34ce 100644 --- a/src/sage/groups/perm_gps/permgroup_named.py +++ b/src/sage/groups/perm_gps/permgroup_named.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap r""" "Named" Permutation groups (such as the symmetric group, S_n) diff --git a/src/sage/groups/perm_gps/permutation_groups_catalog.py b/src/sage/groups/perm_gps/permutation_groups_catalog.py index 52f99920307..e91742a3e11 100644 --- a/src/sage/groups/perm_gps/permutation_groups_catalog.py +++ b/src/sage/groups/perm_gps/permutation_groups_catalog.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap r""" Catalog of permutation groups diff --git a/src/sage/groups/perm_gps/symgp_conjugacy_class.py b/src/sage/groups/perm_gps/symgp_conjugacy_class.py index d6112df67af..3092aaa4133 100644 --- a/src/sage/groups/perm_gps/symgp_conjugacy_class.py +++ b/src/sage/groups/perm_gps/symgp_conjugacy_class.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap r""" Conjugacy Classes Of The Symmetric Group diff --git a/src/sage/interfaces/all__sagemath_gap.py b/src/sage/interfaces/all__sagemath_gap.py new file mode 100644 index 00000000000..dd59a6da735 --- /dev/null +++ b/src/sage/interfaces/all__sagemath_gap.py @@ -0,0 +1 @@ +# sage_setup: distribution = sagemath-gap diff --git a/src/sage/interfaces/gap.py b/src/sage/interfaces/gap.py index 44900d525c8..a0b5539f68f 100644 --- a/src/sage/interfaces/gap.py +++ b/src/sage/interfaces/gap.py @@ -1,4 +1,4 @@ -# -*- coding: utf-8 -*- +# sage_setup: distribution = sagemath-gap r""" Interface to GAP diff --git a/src/sage/interfaces/gap_workspace.py b/src/sage/interfaces/gap_workspace.py index 03b40be6856..4bc9f3033b5 100644 --- a/src/sage/interfaces/gap_workspace.py +++ b/src/sage/interfaces/gap_workspace.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap r""" Support for (lib)GAP workspace files """ diff --git a/src/sage/libs/all__sagemath_flint.py b/src/sage/libs/all__sagemath_flint.py new file mode 100644 index 00000000000..d31bae41036 --- /dev/null +++ b/src/sage/libs/all__sagemath_flint.py @@ -0,0 +1 @@ +# sage_setup: distribution = sagemath-flint diff --git a/src/sage/libs/all__sagemath_gap.py b/src/sage/libs/all__sagemath_gap.py new file mode 100644 index 00000000000..dd59a6da735 --- /dev/null +++ b/src/sage/libs/all__sagemath_gap.py @@ -0,0 +1 @@ +# sage_setup: distribution = sagemath-gap diff --git a/src/sage/libs/all__sagemath_giac.py b/src/sage/libs/all__sagemath_giac.py new file mode 100644 index 00000000000..43f71d83e8b --- /dev/null +++ b/src/sage/libs/all__sagemath_giac.py @@ -0,0 +1 @@ +# sage_setup: distribution = sagemath-giac diff --git a/src/sage/libs/all__sagemath_homfly.py b/src/sage/libs/all__sagemath_homfly.py new file mode 100644 index 00000000000..8a8d066959a --- /dev/null +++ b/src/sage/libs/all__sagemath_homfly.py @@ -0,0 +1 @@ +# sage_setup: distribution = sagemath-homfly diff --git a/src/sage/libs/all__sagemath_ntl.py b/src/sage/libs/all__sagemath_ntl.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/libs/all__sagemath_pari.py b/src/sage/libs/all__sagemath_pari.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/libs/arb/acb.pxd b/src/sage/libs/arb/acb.pxd index 5148dc43991..162fae40467 100644 --- a/src/sage/libs/arb/acb.pxd +++ b/src/sage/libs/arb/acb.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # distutils: libraries = gmp flint ARB_LIBRARY # distutils: depends = acb.h diff --git a/src/sage/libs/arb/acb_calc.pxd b/src/sage/libs/arb/acb_calc.pxd index a5dbf360b5e..340011f5ebc 100644 --- a/src/sage/libs/arb/acb_calc.pxd +++ b/src/sage/libs/arb/acb_calc.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # distutils: libraries = gmp flint ARB_LIBRARY # distutils: depends = acb_calc.h diff --git a/src/sage/libs/arb/acb_elliptic.pxd b/src/sage/libs/arb/acb_elliptic.pxd index 176f68df00e..d764992dde8 100644 --- a/src/sage/libs/arb/acb_elliptic.pxd +++ b/src/sage/libs/arb/acb_elliptic.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # distutils: libraries = gmp flint ARB_LIBRARY # distutils: depends = acb_elliptic.h diff --git a/src/sage/libs/arb/acb_hypgeom.pxd b/src/sage/libs/arb/acb_hypgeom.pxd index 418e766f10d..cd3ec94bc7c 100644 --- a/src/sage/libs/arb/acb_hypgeom.pxd +++ b/src/sage/libs/arb/acb_hypgeom.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # distutils: libraries = gmp flint ARB_LIBRARY # distutils: depends = acb_hypgeom.h diff --git a/src/sage/libs/arb/acb_mat.pxd b/src/sage/libs/arb/acb_mat.pxd index aff7fa7d7b2..fcf39441109 100644 --- a/src/sage/libs/arb/acb_mat.pxd +++ b/src/sage/libs/arb/acb_mat.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # distutils: depends = acb_mat.h from sage.libs.arb.types cimport acb_t, acb_ptr, acb_srcptr, acb_mat_t, acb_poly_t, mag_t diff --git a/src/sage/libs/arb/acb_modular.pxd b/src/sage/libs/arb/acb_modular.pxd index c708e9bf97d..5b101c1c823 100644 --- a/src/sage/libs/arb/acb_modular.pxd +++ b/src/sage/libs/arb/acb_modular.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # distutils: libraries = gmp flint ARB_LIBRARY # distutils: depends = acb_modular.h diff --git a/src/sage/libs/arb/acb_poly.pxd b/src/sage/libs/arb/acb_poly.pxd index 69f4320055b..59735d87ba0 100644 --- a/src/sage/libs/arb/acb_poly.pxd +++ b/src/sage/libs/arb/acb_poly.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # distutils: libraries = gmp flint ARB_LIBRARY # distutils: depends = acb_poly.h diff --git a/src/sage/libs/arb/arb.pxd b/src/sage/libs/arb/arb.pxd index c82b94de30f..f27030bc6dd 100644 --- a/src/sage/libs/arb/arb.pxd +++ b/src/sage/libs/arb/arb.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # distutils: libraries = gmp flint ARB_LIBRARY # distutils: depends = arb.h diff --git a/src/sage/libs/arb/arb_fmpz_poly.pxd b/src/sage/libs/arb/arb_fmpz_poly.pxd index 079f76e9d9e..639d30a8ca2 100644 --- a/src/sage/libs/arb/arb_fmpz_poly.pxd +++ b/src/sage/libs/arb/arb_fmpz_poly.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # distutils: libraries = gmp flint ARB_LIBRARY # distutils: depends = arb_fmpz_poly.h diff --git a/src/sage/libs/arb/arb_hypgeom.pxd b/src/sage/libs/arb/arb_hypgeom.pxd index fb1c40ddaa8..f2d9757ba33 100644 --- a/src/sage/libs/arb/arb_hypgeom.pxd +++ b/src/sage/libs/arb/arb_hypgeom.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # distutils: libraries = gmp flint ARB_LIBRARY # distutils: depends = arb_hypgeom.h diff --git a/src/sage/libs/arb/arb_version.pyx b/src/sage/libs/arb/arb_version.pyx index 55736c392e9..51d01d79d9a 100644 --- a/src/sage/libs/arb/arb_version.pyx +++ b/src/sage/libs/arb/arb_version.pyx @@ -1,4 +1,4 @@ -# -*- coding: utf-8 +# sage_setup: distribution = sagemath-flint from sage.libs.arb.arb cimport arb_version from sage.cpython.string cimport char_to_str diff --git a/src/sage/libs/arb/arf.pxd b/src/sage/libs/arb/arf.pxd index b8b83fefcdc..571c673abc1 100644 --- a/src/sage/libs/arb/arf.pxd +++ b/src/sage/libs/arb/arf.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # distutils: libraries = gmp flint ARB_LIBRARY # distutils: depends = arf.h diff --git a/src/sage/libs/arb/arith.pyx b/src/sage/libs/arb/arith.pyx index d885f97b238..c392ecf38bf 100644 --- a/src/sage/libs/arb/arith.pyx +++ b/src/sage/libs/arb/arith.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint """ Arithmetic functions using the arb library """ diff --git a/src/sage/libs/arb/bernoulli.pxd b/src/sage/libs/arb/bernoulli.pxd index 375b2b9bbcf..ee46d626fcc 100644 --- a/src/sage/libs/arb/bernoulli.pxd +++ b/src/sage/libs/arb/bernoulli.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # distutils: libraries = gmp flint ARB_LIBRARY # distutils: depends = bernoulli.h diff --git a/src/sage/libs/arb/mag.pxd b/src/sage/libs/arb/mag.pxd index d5d8693ea8f..f6f8fe2ec26 100644 --- a/src/sage/libs/arb/mag.pxd +++ b/src/sage/libs/arb/mag.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # distutils: libraries = gmp flint ARB_LIBRARY # distutils: depends = mag.h diff --git a/src/sage/libs/arb/types.pxd b/src/sage/libs/arb/types.pxd index 98ed96dfb7a..0f2113054b3 100644 --- a/src/sage/libs/arb/types.pxd +++ b/src/sage/libs/arb/types.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # distutils: depends = mag.h arf.h arb.h acb.h acb_mat.h acb_poly.h acb_calc.h # mag.h diff --git a/src/sage/libs/flint/arith.pxd b/src/sage/libs/flint/arith.pxd index c8e1fb35566..31188526d8d 100644 --- a/src/sage/libs/flint/arith.pxd +++ b/src/sage/libs/flint/arith.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # distutils: libraries = flint # distutils: depends = flint/arith.h diff --git a/src/sage/libs/flint/arith.pyx b/src/sage/libs/flint/arith.pyx index f24446b4ae4..541a3c1c67e 100644 --- a/src/sage/libs/flint/arith.pyx +++ b/src/sage/libs/flint/arith.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # distutils: extra_compile_args = -D_XPG6 """ FLINT Arithmetic Functions diff --git a/src/sage/libs/flint/flint.pxd b/src/sage/libs/flint/flint.pxd index df9e6a1e870..d8ccbe723f1 100644 --- a/src/sage/libs/flint/flint.pxd +++ b/src/sage/libs/flint/flint.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # distutils: libraries = flint # distutils: depends = flint/flint.h flint/fmpz.h diff --git a/src/sage/libs/flint/flint.pyx b/src/sage/libs/flint/flint.pyx index 19d76b4c867..1196d375f3b 100644 --- a/src/sage/libs/flint/flint.pyx +++ b/src/sage/libs/flint/flint.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # distutils: extra_compile_args = -D_XPG6 """ Flint imports diff --git a/src/sage/libs/flint/fmpq.pxd b/src/sage/libs/flint/fmpq.pxd index 5e64c82102f..7a29c1b1298 100644 --- a/src/sage/libs/flint/fmpq.pxd +++ b/src/sage/libs/flint/fmpq.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # distutils: libraries = flint # distutils: depends = flint/fmpq.h diff --git a/src/sage/libs/flint/fmpq_mat.pxd b/src/sage/libs/flint/fmpq_mat.pxd index ccd90c251a8..ffba3422bea 100644 --- a/src/sage/libs/flint/fmpq_mat.pxd +++ b/src/sage/libs/flint/fmpq_mat.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # distutils: libraries = flint # distutils: depends = flint/fmpq_mat.h diff --git a/src/sage/libs/flint/fmpq_poly.pxd b/src/sage/libs/flint/fmpq_poly.pxd index 20a797c0197..301fefc15ac 100644 --- a/src/sage/libs/flint/fmpq_poly.pxd +++ b/src/sage/libs/flint/fmpq_poly.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # distutils: libraries = flint # distutils: depends = flint/fmpq_poly.h diff --git a/src/sage/libs/flint/fmpz.pxd b/src/sage/libs/flint/fmpz.pxd index 01058d0f130..d6df41369be 100644 --- a/src/sage/libs/flint/fmpz.pxd +++ b/src/sage/libs/flint/fmpz.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # distutils: libraries = flint # distutils: depends = flint/fmpz.h diff --git a/src/sage/libs/flint/fmpz_mat.pxd b/src/sage/libs/flint/fmpz_mat.pxd index 91457930213..0036d172438 100644 --- a/src/sage/libs/flint/fmpz_mat.pxd +++ b/src/sage/libs/flint/fmpz_mat.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # distutils: libraries = flint # distutils: depends = flint/fmpz_mat.h diff --git a/src/sage/libs/flint/fmpz_mod.pxd b/src/sage/libs/flint/fmpz_mod.pxd index 555b3123398..6a26effca8b 100644 --- a/src/sage/libs/flint/fmpz_mod.pxd +++ b/src/sage/libs/flint/fmpz_mod.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # distutils: libraries = flint # distutils: depends = flint/fmpz_mod.h diff --git a/src/sage/libs/flint/fmpz_mod_poly.pxd b/src/sage/libs/flint/fmpz_mod_poly.pxd index 24b653eb3b7..f2e5326c725 100644 --- a/src/sage/libs/flint/fmpz_mod_poly.pxd +++ b/src/sage/libs/flint/fmpz_mod_poly.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # distutils: libraries = flint # distutils: depends = flint/fmpz_mod_poly.h diff --git a/src/sage/libs/flint/fmpz_poly.pxd b/src/sage/libs/flint/fmpz_poly.pxd index 18b36672d30..7f559e68bdc 100644 --- a/src/sage/libs/flint/fmpz_poly.pxd +++ b/src/sage/libs/flint/fmpz_poly.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # distutils: libraries = flint # distutils: depends = flint/fmpz_poly.h diff --git a/src/sage/libs/flint/fmpz_poly.pyx b/src/sage/libs/flint/fmpz_poly.pyx index 8811ccf3a51..6fcc99e69e3 100644 --- a/src/sage/libs/flint/fmpz_poly.pyx +++ b/src/sage/libs/flint/fmpz_poly.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # distutils: extra_compile_args = -D_XPG6 """ FLINT fmpz_poly class wrapper diff --git a/src/sage/libs/flint/fmpz_poly_mat.pxd b/src/sage/libs/flint/fmpz_poly_mat.pxd index d045c745de3..b7a990aeead 100644 --- a/src/sage/libs/flint/fmpz_poly_mat.pxd +++ b/src/sage/libs/flint/fmpz_poly_mat.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # distutils: libraries = flint # distutils: depends = flint/fmpz_poly_mat.h diff --git a/src/sage/libs/flint/fmpz_poly_q.pxd b/src/sage/libs/flint/fmpz_poly_q.pxd index 846542dc0d8..337ae02f3fa 100644 --- a/src/sage/libs/flint/fmpz_poly_q.pxd +++ b/src/sage/libs/flint/fmpz_poly_q.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # distutils: libraries = flint # distutils: depends = flint/qadic.h diff --git a/src/sage/libs/flint/fmpz_vec.pxd b/src/sage/libs/flint/fmpz_vec.pxd index 8d90aaf5ba5..db4965c89f3 100644 --- a/src/sage/libs/flint/fmpz_vec.pxd +++ b/src/sage/libs/flint/fmpz_vec.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # distutils: libraries = flint # distutils: depends = flint/fmpz_vec.h diff --git a/src/sage/libs/flint/fq.pxd b/src/sage/libs/flint/fq.pxd index 7c7565a38d8..4d2625d7277 100644 --- a/src/sage/libs/flint/fq.pxd +++ b/src/sage/libs/flint/fq.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # distutils: libraries = flint # distutils: depends = flint/fq.h diff --git a/src/sage/libs/flint/fq_nmod.pxd b/src/sage/libs/flint/fq_nmod.pxd index 159aa4e4077..1d769595232 100644 --- a/src/sage/libs/flint/fq_nmod.pxd +++ b/src/sage/libs/flint/fq_nmod.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # distutils: libraries = flint # distutils: depends = flint/fq_nmod.h diff --git a/src/sage/libs/flint/nmod_poly.pxd b/src/sage/libs/flint/nmod_poly.pxd index d11ef304ca2..cc2b938db5f 100644 --- a/src/sage/libs/flint/nmod_poly.pxd +++ b/src/sage/libs/flint/nmod_poly.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # distutils: libraries = flint # distutils: depends = flint/nmod_poly.h diff --git a/src/sage/libs/flint/nmod_poly_linkage.pxi b/src/sage/libs/flint/nmod_poly_linkage.pxi index 45f4410d785..e5bcf1d7389 100644 --- a/src/sage/libs/flint/nmod_poly_linkage.pxi +++ b/src/sage/libs/flint/nmod_poly_linkage.pxi @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint r""" Linkage for arithmetic with FLINT's nmod_poly_t elements. diff --git a/src/sage/libs/flint/nmod_vec.pxd b/src/sage/libs/flint/nmod_vec.pxd index b839447bb56..3cdd01afbfb 100644 --- a/src/sage/libs/flint/nmod_vec.pxd +++ b/src/sage/libs/flint/nmod_vec.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # distutils: libraries = flint # distutils: depends = flint/nmod_vec.h diff --git a/src/sage/libs/flint/ntl_interface.pxd b/src/sage/libs/flint/ntl_interface.pxd index d3ba446d8d3..dc27e44d9fd 100644 --- a/src/sage/libs/flint/ntl_interface.pxd +++ b/src/sage/libs/flint/ntl_interface.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # distutils: language = c++ # distutils: libraries = flint # distutils: depends = flint/NTL-interface.h diff --git a/src/sage/libs/flint/padic.pxd b/src/sage/libs/flint/padic.pxd index e155ddabfd8..4699a768e76 100644 --- a/src/sage/libs/flint/padic.pxd +++ b/src/sage/libs/flint/padic.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # distutils: libraries = flint # distutils: depends = flint/qadic.h diff --git a/src/sage/libs/flint/padic_poly.pxd b/src/sage/libs/flint/padic_poly.pxd index 6cd172fd14f..e5a4c0866cb 100644 --- a/src/sage/libs/flint/padic_poly.pxd +++ b/src/sage/libs/flint/padic_poly.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # distutils: libraries = flint # distutils: depends = flint/padic_poly.h diff --git a/src/sage/libs/flint/qadic.pxd b/src/sage/libs/flint/qadic.pxd index ec64e9eef74..29534b98594 100644 --- a/src/sage/libs/flint/qadic.pxd +++ b/src/sage/libs/flint/qadic.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # distutils: libraries = flint # distutils: depends = flint/qadic.h diff --git a/src/sage/libs/flint/thread_pool.pxd b/src/sage/libs/flint/thread_pool.pxd index a2cd915de79..517dacd2284 100644 --- a/src/sage/libs/flint/thread_pool.pxd +++ b/src/sage/libs/flint/thread_pool.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # distutils: libraries = flint # distutils: depends = flint/thread_pool.h diff --git a/src/sage/libs/flint/types.pxd b/src/sage/libs/flint/types.pxd index aee66dc9aa2..ef1393b1f46 100644 --- a/src/sage/libs/flint/types.pxd +++ b/src/sage/libs/flint/types.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # distutils: depends = flint/flint.h flint/fmpz.h flint/fmpz_factor.h flint/fmpz_poly.h flint/fmpz_mat.h flint/fmpq.h flint/fmpq_poly.h flint/fmpq_mat.h flint/fmpz_mod_poly.h flint/nmod_poly.h flint/fq.h flint/fq_nmod.h flint/ulong_extras.h flint/padic.h flint/padic_poly.h flint/qadic.h flint/fmpz_poly_q.h """ diff --git a/src/sage/libs/flint/ulong_extras.pxd b/src/sage/libs/flint/ulong_extras.pxd index b56f11d44db..9f3a627c123 100644 --- a/src/sage/libs/flint/ulong_extras.pxd +++ b/src/sage/libs/flint/ulong_extras.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # distutils: libraries = flint # distutils: depends = flint/ulong_extras.h diff --git a/src/sage/libs/flint/ulong_extras.pyx b/src/sage/libs/flint/ulong_extras.pyx index 10255a96f1c..6cb909ed3b1 100644 --- a/src/sage/libs/flint/ulong_extras.pyx +++ b/src/sage/libs/flint/ulong_extras.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint def n_factor_to_list(unsigned long n, int proved): """ A wrapper around ``n_factor``. diff --git a/src/sage/libs/gap/all_documented_functions.py b/src/sage/libs/gap/all_documented_functions.py index 0820dc71064..f680ddff75a 100644 --- a/src/sage/libs/gap/all_documented_functions.py +++ b/src/sage/libs/gap/all_documented_functions.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap """nodoctest All Documented GAP Functions diff --git a/src/sage/libs/gap/assigned_names.py b/src/sage/libs/gap/assigned_names.py index e8d1f1707cc..e136e95f5e0 100644 --- a/src/sage/libs/gap/assigned_names.py +++ b/src/sage/libs/gap/assigned_names.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap """nodoctest List of assigned names in GAP diff --git a/src/sage/libs/gap/context_managers.py b/src/sage/libs/gap/context_managers.py index b42e9c02f4f..9252c3ee510 100644 --- a/src/sage/libs/gap/context_managers.py +++ b/src/sage/libs/gap/context_managers.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap """ Context Managers for LibGAP diff --git a/src/sage/libs/gap/element.pxd b/src/sage/libs/gap/element.pxd index d6bf4f8b3ff..de8d94013be 100644 --- a/src/sage/libs/gap/element.pxd +++ b/src/sage/libs/gap/element.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap #***************************************************************************** # Copyright (C) 2012 Volker Braun # diff --git a/src/sage/libs/gap/element.pyx b/src/sage/libs/gap/element.pyx index 1dc53c81f67..fbcb05cfca4 100644 --- a/src/sage/libs/gap/element.pyx +++ b/src/sage/libs/gap/element.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap """ GAP element wrapper diff --git a/src/sage/libs/gap/gap_functions.py b/src/sage/libs/gap/gap_functions.py index 5e35ca672bf..7df65a0db51 100644 --- a/src/sage/libs/gap/gap_functions.py +++ b/src/sage/libs/gap/gap_functions.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap """Common global functions defined by GAP.""" ############################################################################### diff --git a/src/sage/libs/gap/gap_globals.py b/src/sage/libs/gap/gap_globals.py index 4c3e6eb3aae..b2a413c06d9 100644 --- a/src/sage/libs/gap/gap_globals.py +++ b/src/sage/libs/gap/gap_globals.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap """Common globals defined by GAP.""" ############################################################################### diff --git a/src/sage/libs/gap/gap_includes.pxd b/src/sage/libs/gap/gap_includes.pxd index 840b8a0042e..e69c22d1948 100644 --- a/src/sage/libs/gap/gap_includes.pxd +++ b/src/sage/libs/gap/gap_includes.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap # distutils: libraries = gap gmp m ############################################################################### # Copyright (C) 2009, William Stein diff --git a/src/sage/libs/gap/libgap.pyx b/src/sage/libs/gap/libgap.pyx index 05ca5f7d4fb..5a126ee8530 100644 --- a/src/sage/libs/gap/libgap.pyx +++ b/src/sage/libs/gap/libgap.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap """ Library Interface to GAP diff --git a/src/sage/libs/gap/operations.py b/src/sage/libs/gap/operations.py index 434d1a01511..0cbfb8ffa5a 100644 --- a/src/sage/libs/gap/operations.py +++ b/src/sage/libs/gap/operations.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap """ Operations for LibGAP Elements diff --git a/src/sage/libs/gap/saved_workspace.py b/src/sage/libs/gap/saved_workspace.py index 7636707f557..c21067ea677 100644 --- a/src/sage/libs/gap/saved_workspace.py +++ b/src/sage/libs/gap/saved_workspace.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap """ LibGAP Workspace Support diff --git a/src/sage/libs/gap/test.py b/src/sage/libs/gap/test.py index bee6f17ba84..2ab1f306582 100644 --- a/src/sage/libs/gap/test.py +++ b/src/sage/libs/gap/test.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap """ Short tests for GAP """ diff --git a/src/sage/libs/gap/test_long.py b/src/sage/libs/gap/test_long.py index 262db5ad287..a365b2c4a4a 100644 --- a/src/sage/libs/gap/test_long.py +++ b/src/sage/libs/gap/test_long.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap """ Long tests for GAP diff --git a/src/sage/libs/gap/util.pxd b/src/sage/libs/gap/util.pxd index 118146133f4..2cbf1032d6c 100644 --- a/src/sage/libs/gap/util.pxd +++ b/src/sage/libs/gap/util.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap #***************************************************************************** # Copyright (C) 2012 Volker Braun # diff --git a/src/sage/libs/gap/util.pyx b/src/sage/libs/gap/util.pyx index 3c286d2020d..e905e2ed98c 100644 --- a/src/sage/libs/gap/util.pyx +++ b/src/sage/libs/gap/util.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap """ Utility functions for GAP """ diff --git a/src/sage/libs/giac/__init__.py b/src/sage/libs/giac/__init__.py index 558cd894b13..5c26a84e2b7 100644 --- a/src/sage/libs/giac/__init__.py +++ b/src/sage/libs/giac/__init__.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-giac # -*- coding: utf-8 -*- """ Wrappers for Giac functions diff --git a/src/sage/libs/giac/auto-methods.pxi b/src/sage/libs/giac/auto-methods.pxi index 9af4c0023bf..92166556652 100644 --- a/src/sage/libs/giac/auto-methods.pxi +++ b/src/sage/libs/giac/auto-methods.pxi @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-giac # file auto generated by mkkeywords.py cdef class GiacMethods_base: """ diff --git a/src/sage/libs/giac/giac.pxd b/src/sage/libs/giac/giac.pxd index 1d9da88d8d4..b1c57995763 100644 --- a/src/sage/libs/giac/giac.pxd +++ b/src/sage/libs/giac/giac.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-giac # distutils: language = c++ # **************************************************************************** # Copyright (C) 2012, Frederic Han diff --git a/src/sage/libs/giac/giac.pyx b/src/sage/libs/giac/giac.pyx index a78e2199725..e013ab51bbc 100644 --- a/src/sage/libs/giac/giac.pyx +++ b/src/sage/libs/giac/giac.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-giac # distutils: libraries = giac # distutils: language = c++ r""" diff --git a/src/sage/libs/giac/keywords.pxi b/src/sage/libs/giac/keywords.pxi index 9bc7eebe0b5..e1253b9746a 100644 --- a/src/sage/libs/giac/keywords.pxi +++ b/src/sage/libs/giac/keywords.pxi @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-giac # file auto generated by mkkeywords.py blacklist = ['eval', 'cas_setup', 'i', 'list', 'input', 'in', 'sto', 'string', 'and', 'break', 'continue', 'else', 'for', 'from', 'if', 'not', 'or', 'pow', 'print', 'return', 'set[]', 'try', 'while', 'open', 'output', 'do', 'of', 'Request', 'i[]', '[]', 'ffunction', 'sleep', '[..]'] diff --git a/src/sage/libs/homfly.pyx b/src/sage/libs/homfly.pyx index 550c5f02a65..1cc3f591f8a 100644 --- a/src/sage/libs/homfly.pyx +++ b/src/sage/libs/homfly.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-homfly # distutils: libraries = homfly gc r""" Cython wrapper for libhomfly library diff --git a/src/sage/libs/ntl/GF2.pxd b/src/sage/libs/ntl/GF2.pxd index 9443f143dcf..55b8db01f39 100644 --- a/src/sage/libs/ntl/GF2.pxd +++ b/src/sage/libs/ntl/GF2.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl from .types cimport GF2_c diff --git a/src/sage/libs/ntl/GF2E.pxd b/src/sage/libs/ntl/GF2E.pxd index 352e35330fc..54d32d3ff0c 100644 --- a/src/sage/libs/ntl/GF2E.pxd +++ b/src/sage/libs/ntl/GF2E.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl from .types cimport GF2E_c, GF2X_c, GF2_c, GF2XModulus_c, ZZ_c diff --git a/src/sage/libs/ntl/GF2EX.pxd b/src/sage/libs/ntl/GF2EX.pxd index c9d272f1c5a..3947aa5cf0d 100644 --- a/src/sage/libs/ntl/GF2EX.pxd +++ b/src/sage/libs/ntl/GF2EX.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl from .types cimport GF2EX_c diff --git a/src/sage/libs/ntl/GF2X.pxd b/src/sage/libs/ntl/GF2X.pxd index 1539a37c93c..7f8154a79ed 100644 --- a/src/sage/libs/ntl/GF2X.pxd +++ b/src/sage/libs/ntl/GF2X.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl from .types cimport GF2X_c, GF2_c, GF2XModulus_c, vec_GF2_c, ZZ_c diff --git a/src/sage/libs/ntl/ZZ.pxd b/src/sage/libs/ntl/ZZ.pxd index 2ac00565e78..2567d03a9f6 100644 --- a/src/sage/libs/ntl/ZZ.pxd +++ b/src/sage/libs/ntl/ZZ.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl # distutils: depends = NTL/ZZ.h from .types cimport ZZ_c diff --git a/src/sage/libs/ntl/ZZX.pxd b/src/sage/libs/ntl/ZZX.pxd index d46fce4bbb9..9183002e3d3 100644 --- a/src/sage/libs/ntl/ZZX.pxd +++ b/src/sage/libs/ntl/ZZX.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl # distutils: depends = NTL/ZZ.h from sage.libs.gmp.types cimport mpz_t diff --git a/src/sage/libs/ntl/ZZ_p.pxd b/src/sage/libs/ntl/ZZ_p.pxd index 0bee7b282b9..3f0e1e9acc5 100644 --- a/src/sage/libs/ntl/ZZ_p.pxd +++ b/src/sage/libs/ntl/ZZ_p.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl # distutils: depends = NTL/ZZ.h from .types cimport ZZ_c, ZZ_p_c diff --git a/src/sage/libs/ntl/ZZ_pE.pxd b/src/sage/libs/ntl/ZZ_pE.pxd index 7d92bae4479..5efcab4d255 100644 --- a/src/sage/libs/ntl/ZZ_pE.pxd +++ b/src/sage/libs/ntl/ZZ_pE.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl # distutils: depends = NTL/ZZ.h from .types cimport ZZ_c, ZZ_p_c, ZZ_pX_c, ZZ_pE_c diff --git a/src/sage/libs/ntl/ZZ_pEX.pxd b/src/sage/libs/ntl/ZZ_pEX.pxd index 7e2dc5626cd..f86c9a8165e 100644 --- a/src/sage/libs/ntl/ZZ_pEX.pxd +++ b/src/sage/libs/ntl/ZZ_pEX.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl # distutils: depends = NTL/ZZ.h from .types cimport (ZZ_c, ZZ_p_c, ZZ_pContext_c, ZZ_pE_c, vec_ZZ_p_c, diff --git a/src/sage/libs/ntl/ZZ_pX.pxd b/src/sage/libs/ntl/ZZ_pX.pxd index a48e815d018..c685c3175d8 100644 --- a/src/sage/libs/ntl/ZZ_pX.pxd +++ b/src/sage/libs/ntl/ZZ_pX.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl # distutils: depends = NTL/ZZ.h from .types cimport (ZZ_c, ZZX_c, ZZ_p_c, vec_ZZ_p_c, ZZ_pContext_c, diff --git a/src/sage/libs/ntl/__init__.py b/src/sage/libs/ntl/__init__.py index 5cdc57e0122..534bdd8eac9 100644 --- a/src/sage/libs/ntl/__init__.py +++ b/src/sage/libs/ntl/__init__.py @@ -1,2 +1,3 @@ +# sage_setup: distribution = sagemath-ntl from .error import setup_NTL_error_callback setup_NTL_error_callback() diff --git a/src/sage/libs/ntl/all.py b/src/sage/libs/ntl/all.py index e9d4271879a..5634f89fd99 100644 --- a/src/sage/libs/ntl/all.py +++ b/src/sage/libs/ntl/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl r""" Victor Shoup's NTL C++ Library diff --git a/src/sage/libs/ntl/conversion.pxd b/src/sage/libs/ntl/conversion.pxd index dfd7647a6c4..9bb5c204973 100644 --- a/src/sage/libs/ntl/conversion.pxd +++ b/src/sage/libs/ntl/conversion.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl r""" Inline conversions between NTL and Sage diff --git a/src/sage/libs/ntl/convert.pxd b/src/sage/libs/ntl/convert.pxd index aa733329dce..fc548c81e95 100644 --- a/src/sage/libs/ntl/convert.pxd +++ b/src/sage/libs/ntl/convert.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl from .types cimport ZZ_c from sage.libs.gmp.types cimport mpz_t, mpz_srcptr diff --git a/src/sage/libs/ntl/convert.pyx b/src/sage/libs/ntl/convert.pyx index d06270d5077..1de6c675a19 100644 --- a/src/sage/libs/ntl/convert.pyx +++ b/src/sage/libs/ntl/convert.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl # distutils: depends = NTL/ZZ.h # distutils: libraries = NTL_LIBRARIES gmp # distutils: extra_compile_args = NTL_CFLAGS diff --git a/src/sage/libs/ntl/decl.pxi b/src/sage/libs/ntl/decl.pxi index ae4eb5500f5..79b9592d199 100644 --- a/src/sage/libs/ntl/decl.pxi +++ b/src/sage/libs/ntl/decl.pxi @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl from sage.libs.ntl.types cimport * from sage.libs.ntl.ZZ cimport * from sage.libs.ntl.ZZ_pX cimport * diff --git a/src/sage/libs/ntl/error.pyx b/src/sage/libs/ntl/error.pyx index ac6cef82910..3040457f117 100644 --- a/src/sage/libs/ntl/error.pyx +++ b/src/sage/libs/ntl/error.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl # distutils: libraries = ntl gmp # distutils: extra_compile_args = NTL_CFLAGS # distutils: include_dirs = NTL_INCDIR diff --git a/src/sage/libs/ntl/lzz_p.pxd b/src/sage/libs/ntl/lzz_p.pxd index a7f8d5c52b6..a5ca61c57b6 100644 --- a/src/sage/libs/ntl/lzz_p.pxd +++ b/src/sage/libs/ntl/lzz_p.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl # distutils: depends = NTL/ZZ.h from .types cimport zz_p_c diff --git a/src/sage/libs/ntl/lzz_pX.pxd b/src/sage/libs/ntl/lzz_pX.pxd index 65995a5c4d2..c8a2ab84f24 100644 --- a/src/sage/libs/ntl/lzz_pX.pxd +++ b/src/sage/libs/ntl/lzz_pX.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl # distutils: depends = NTL/ZZ.h from .types cimport ZZ_c, zz_p_c, zz_pX_c, zz_pX_Modulus_c diff --git a/src/sage/libs/ntl/mat_GF2.pxd b/src/sage/libs/ntl/mat_GF2.pxd index 89c8252c046..b168735c691 100644 --- a/src/sage/libs/ntl/mat_GF2.pxd +++ b/src/sage/libs/ntl/mat_GF2.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl from .types cimport mat_GF2_c, vec_GF2_c, GF2_c diff --git a/src/sage/libs/ntl/mat_GF2E.pxd b/src/sage/libs/ntl/mat_GF2E.pxd index 61250702247..ead17fc20b7 100644 --- a/src/sage/libs/ntl/mat_GF2E.pxd +++ b/src/sage/libs/ntl/mat_GF2E.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl from .types cimport mat_GF2E_c, vec_GF2E_c, GF2E_c diff --git a/src/sage/libs/ntl/mat_ZZ.pxd b/src/sage/libs/ntl/mat_ZZ.pxd index b40e51d53de..f569606ca58 100644 --- a/src/sage/libs/ntl/mat_ZZ.pxd +++ b/src/sage/libs/ntl/mat_ZZ.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl from .types cimport mat_ZZ_c, ZZ_c, ZZX_c diff --git a/src/sage/libs/ntl/misc.pxi b/src/sage/libs/ntl/misc.pxi index e9dcd9807b0..3f6a69149d2 100644 --- a/src/sage/libs/ntl/misc.pxi +++ b/src/sage/libs/ntl/misc.pxi @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl # distutils: depends = NTL/ZZ.h from cysignals.memory cimport sig_free diff --git a/src/sage/libs/ntl/ntl_GF2.pxd b/src/sage/libs/ntl/ntl_GF2.pxd index 0eff25dd32c..3edd0d30672 100644 --- a/src/sage/libs/ntl/ntl_GF2.pxd +++ b/src/sage/libs/ntl/ntl_GF2.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl from .types cimport GF2_c cdef class ntl_GF2(): diff --git a/src/sage/libs/ntl/ntl_GF2.pyx b/src/sage/libs/ntl/ntl_GF2.pyx index 7bbdaa09d05..ac0ff7295ff 100644 --- a/src/sage/libs/ntl/ntl_GF2.pyx +++ b/src/sage/libs/ntl/ntl_GF2.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl # distutils: libraries = NTL_LIBRARIES gmp # distutils: extra_compile_args = NTL_CFLAGS # distutils: include_dirs = NTL_INCDIR diff --git a/src/sage/libs/ntl/ntl_GF2E.pxd b/src/sage/libs/ntl/ntl_GF2E.pxd index 8977f711078..b4e1d8146c5 100644 --- a/src/sage/libs/ntl/ntl_GF2E.pxd +++ b/src/sage/libs/ntl/ntl_GF2E.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl from .types cimport GF2E_c from .ntl_GF2EContext cimport ntl_GF2EContext_class diff --git a/src/sage/libs/ntl/ntl_GF2E.pyx b/src/sage/libs/ntl/ntl_GF2E.pyx index c78fd6704db..33f9b431559 100644 --- a/src/sage/libs/ntl/ntl_GF2E.pyx +++ b/src/sage/libs/ntl/ntl_GF2E.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl # distutils: libraries = NTL_LIBRARIES gmp m # distutils: extra_compile_args = NTL_CFLAGS # distutils: include_dirs = NTL_INCDIR diff --git a/src/sage/libs/ntl/ntl_GF2EContext.pxd b/src/sage/libs/ntl/ntl_GF2EContext.pxd index 44ab9891713..e1917ce7b3a 100644 --- a/src/sage/libs/ntl/ntl_GF2EContext.pxd +++ b/src/sage/libs/ntl/ntl_GF2EContext.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl from .types cimport GF2EContext_c from .ntl_GF2X cimport ntl_GF2X diff --git a/src/sage/libs/ntl/ntl_GF2EContext.pyx b/src/sage/libs/ntl/ntl_GF2EContext.pyx index 11d06893505..31a1cd80226 100644 --- a/src/sage/libs/ntl/ntl_GF2EContext.pyx +++ b/src/sage/libs/ntl/ntl_GF2EContext.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl # distutils: libraries = NTL_LIBRARIES gmp m # distutils: extra_compile_args = NTL_CFLAGS # distutils: include_dirs = NTL_INCDIR diff --git a/src/sage/libs/ntl/ntl_GF2EX.pxd b/src/sage/libs/ntl/ntl_GF2EX.pxd index 70e06122753..ee46805173d 100644 --- a/src/sage/libs/ntl/ntl_GF2EX.pxd +++ b/src/sage/libs/ntl/ntl_GF2EX.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl from .types cimport GF2EX_c from .ntl_GF2EContext cimport ntl_GF2EContext_class from .ntl_GF2E cimport ntl_GF2E diff --git a/src/sage/libs/ntl/ntl_GF2EX.pyx b/src/sage/libs/ntl/ntl_GF2EX.pyx index e9dfbab4668..6028c2dfad4 100644 --- a/src/sage/libs/ntl/ntl_GF2EX.pyx +++ b/src/sage/libs/ntl/ntl_GF2EX.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl # distutils: libraries = NTL_LIBRARIES gmp m # distutils: extra_compile_args = NTL_CFLAGS # distutils: include_dirs = NTL_INCDIR diff --git a/src/sage/libs/ntl/ntl_GF2X.pxd b/src/sage/libs/ntl/ntl_GF2X.pxd index 5af874d0b9e..5b4e9a2f3e6 100644 --- a/src/sage/libs/ntl/ntl_GF2X.pxd +++ b/src/sage/libs/ntl/ntl_GF2X.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl from .types cimport GF2X_c cdef class ntl_GF2X(): diff --git a/src/sage/libs/ntl/ntl_GF2X.pyx b/src/sage/libs/ntl/ntl_GF2X.pyx index 787169e6dc7..4ffcc951e21 100644 --- a/src/sage/libs/ntl/ntl_GF2X.pyx +++ b/src/sage/libs/ntl/ntl_GF2X.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl # distutils: libraries = NTL_LIBRARIES gmp m # distutils: extra_compile_args = NTL_CFLAGS # distutils: include_dirs = NTL_INCDIR diff --git a/src/sage/libs/ntl/ntl_GF2X_linkage.pxi b/src/sage/libs/ntl/ntl_GF2X_linkage.pxi index 3f01c91ab00..ec44c9de413 100644 --- a/src/sage/libs/ntl/ntl_GF2X_linkage.pxi +++ b/src/sage/libs/ntl/ntl_GF2X_linkage.pxi @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl r""" Linkage for arithmetic with NTL's GF2X elements. diff --git a/src/sage/libs/ntl/ntl_ZZ.pxd b/src/sage/libs/ntl/ntl_ZZ.pxd index 31a23b29d46..37ce1f2904c 100644 --- a/src/sage/libs/ntl/ntl_ZZ.pxd +++ b/src/sage/libs/ntl/ntl_ZZ.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl from sage.libs.ntl.types cimport ZZ_c cdef class ntl_ZZ(): diff --git a/src/sage/libs/ntl/ntl_ZZ.pyx b/src/sage/libs/ntl/ntl_ZZ.pyx index 41e14fdcf09..462e67bbf19 100644 --- a/src/sage/libs/ntl/ntl_ZZ.pyx +++ b/src/sage/libs/ntl/ntl_ZZ.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl # distutils: libraries = NTL_LIBRARIES gmp m # distutils: extra_compile_args = NTL_CFLAGS # distutils: include_dirs = NTL_INCDIR diff --git a/src/sage/libs/ntl/ntl_ZZX.pxd b/src/sage/libs/ntl/ntl_ZZX.pxd index c15a3f2d1e4..1222691f7a0 100644 --- a/src/sage/libs/ntl/ntl_ZZX.pxd +++ b/src/sage/libs/ntl/ntl_ZZX.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl from .types cimport ZZX_c cdef class ntl_ZZX(): diff --git a/src/sage/libs/ntl/ntl_ZZX.pyx b/src/sage/libs/ntl/ntl_ZZX.pyx index 891a28d0fb1..f123db7828c 100644 --- a/src/sage/libs/ntl/ntl_ZZX.pyx +++ b/src/sage/libs/ntl/ntl_ZZX.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl # distutils: libraries = NTL_LIBRARIES gmp m # distutils: extra_compile_args = NTL_CFLAGS # distutils: include_dirs = NTL_INCDIR diff --git a/src/sage/libs/ntl/ntl_ZZ_p.pxd b/src/sage/libs/ntl/ntl_ZZ_p.pxd index 4863afeb2c2..9ae18c06869 100644 --- a/src/sage/libs/ntl/ntl_ZZ_p.pxd +++ b/src/sage/libs/ntl/ntl_ZZ_p.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl from .types cimport ZZ_p_c from .ntl_ZZ_pContext cimport ntl_ZZ_pContext_class diff --git a/src/sage/libs/ntl/ntl_ZZ_p.pyx b/src/sage/libs/ntl/ntl_ZZ_p.pyx index d032d9b81b9..ffb280b92fa 100644 --- a/src/sage/libs/ntl/ntl_ZZ_p.pyx +++ b/src/sage/libs/ntl/ntl_ZZ_p.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl # distutils: libraries = NTL_LIBRARIES gmp m # distutils: extra_compile_args = NTL_CFLAGS # distutils: include_dirs = NTL_INCDIR diff --git a/src/sage/libs/ntl/ntl_ZZ_pContext.pxd b/src/sage/libs/ntl/ntl_ZZ_pContext.pxd index 171776d85d7..1ba433cc900 100644 --- a/src/sage/libs/ntl/ntl_ZZ_pContext.pxd +++ b/src/sage/libs/ntl/ntl_ZZ_pContext.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl from .types cimport ZZ_pContext_c from .ntl_ZZ cimport ntl_ZZ from .types cimport ZZ_c diff --git a/src/sage/libs/ntl/ntl_ZZ_pContext.pyx b/src/sage/libs/ntl/ntl_ZZ_pContext.pyx index dbcc8af1441..bdb79b8c135 100644 --- a/src/sage/libs/ntl/ntl_ZZ_pContext.pyx +++ b/src/sage/libs/ntl/ntl_ZZ_pContext.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl # distutils: libraries = NTL_LIBRARIES gmp m # distutils: extra_compile_args = NTL_CFLAGS # distutils: include_dirs = NTL_INCDIR diff --git a/src/sage/libs/ntl/ntl_ZZ_pE.pxd b/src/sage/libs/ntl/ntl_ZZ_pE.pxd index 267608a016d..e0563440b41 100644 --- a/src/sage/libs/ntl/ntl_ZZ_pE.pxd +++ b/src/sage/libs/ntl/ntl_ZZ_pE.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl from .types cimport ZZ_pE_c from .ntl_ZZ_pEContext cimport ntl_ZZ_pEContext_class from .ntl_ZZ_pX cimport ntl_ZZ_pX diff --git a/src/sage/libs/ntl/ntl_ZZ_pE.pyx b/src/sage/libs/ntl/ntl_ZZ_pE.pyx index 790d5c59648..dfffb61a188 100644 --- a/src/sage/libs/ntl/ntl_ZZ_pE.pyx +++ b/src/sage/libs/ntl/ntl_ZZ_pE.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl # distutils: libraries = NTL_LIBRARIES gmp m # distutils: extra_compile_args = NTL_CFLAGS # distutils: include_dirs = NTL_INCDIR diff --git a/src/sage/libs/ntl/ntl_ZZ_pEContext.pxd b/src/sage/libs/ntl/ntl_ZZ_pEContext.pxd index 72c9ec42eab..d4f6b03221b 100644 --- a/src/sage/libs/ntl/ntl_ZZ_pEContext.pxd +++ b/src/sage/libs/ntl/ntl_ZZ_pEContext.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl from .types cimport ZZ_pContext_c, ZZ_pEContext_c from .ntl_ZZ_pContext cimport ntl_ZZ_pContext_class from .ntl_ZZ_pX cimport ntl_ZZ_pX diff --git a/src/sage/libs/ntl/ntl_ZZ_pEContext.pyx b/src/sage/libs/ntl/ntl_ZZ_pEContext.pyx index fca10d5667f..3cce29fb52b 100644 --- a/src/sage/libs/ntl/ntl_ZZ_pEContext.pyx +++ b/src/sage/libs/ntl/ntl_ZZ_pEContext.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl # distutils: libraries = NTL_LIBRARIES gmp m # distutils: extra_compile_args = NTL_CFLAGS # distutils: include_dirs = NTL_INCDIR diff --git a/src/sage/libs/ntl/ntl_ZZ_pEX.pxd b/src/sage/libs/ntl/ntl_ZZ_pEX.pxd index b00e87bbcec..455bef5af54 100644 --- a/src/sage/libs/ntl/ntl_ZZ_pEX.pxd +++ b/src/sage/libs/ntl/ntl_ZZ_pEX.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl from .types cimport ZZ_pEX_c from .ntl_ZZ_pEContext cimport ntl_ZZ_pEContext_class diff --git a/src/sage/libs/ntl/ntl_ZZ_pEX.pyx b/src/sage/libs/ntl/ntl_ZZ_pEX.pyx index 7d2d4bae905..97c06814040 100644 --- a/src/sage/libs/ntl/ntl_ZZ_pEX.pyx +++ b/src/sage/libs/ntl/ntl_ZZ_pEX.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl # distutils: libraries = NTL_LIBRARIES gmp m # distutils: extra_compile_args = NTL_CFLAGS # distutils: include_dirs = NTL_INCDIR diff --git a/src/sage/libs/ntl/ntl_ZZ_pEX_linkage.pxi b/src/sage/libs/ntl/ntl_ZZ_pEX_linkage.pxi index caf74e6c64f..ed07db73a5b 100644 --- a/src/sage/libs/ntl/ntl_ZZ_pEX_linkage.pxi +++ b/src/sage/libs/ntl/ntl_ZZ_pEX_linkage.pxi @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl r""" Linkage for arithmetic with NTL's ZZ_pEX elements. diff --git a/src/sage/libs/ntl/ntl_ZZ_pX.pxd b/src/sage/libs/ntl/ntl_ZZ_pX.pxd index 6dfed011120..b7d0e006607 100644 --- a/src/sage/libs/ntl/ntl_ZZ_pX.pxd +++ b/src/sage/libs/ntl/ntl_ZZ_pX.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl from .ZZ_pX cimport * from sage.libs.ntl.ntl_ZZ_pContext cimport ntl_ZZ_pContext_class diff --git a/src/sage/libs/ntl/ntl_ZZ_pX.pyx b/src/sage/libs/ntl/ntl_ZZ_pX.pyx index a8c0666ebc3..f1bd24e52cd 100644 --- a/src/sage/libs/ntl/ntl_ZZ_pX.pyx +++ b/src/sage/libs/ntl/ntl_ZZ_pX.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl # distutils: libraries = NTL_LIBRARIES gmp m # distutils: extra_compile_args = NTL_CFLAGS # distutils: include_dirs = NTL_INCDIR diff --git a/src/sage/libs/ntl/ntl_lzz_p.pxd b/src/sage/libs/ntl/ntl_lzz_p.pxd index ec74b46d447..696de4a0a28 100644 --- a/src/sage/libs/ntl/ntl_lzz_p.pxd +++ b/src/sage/libs/ntl/ntl_lzz_p.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl from .lzz_p cimport * from .ntl_lzz_pContext cimport ntl_zz_pContext_class diff --git a/src/sage/libs/ntl/ntl_lzz_p.pyx b/src/sage/libs/ntl/ntl_lzz_p.pyx index 161d0782bc2..855b51f436a 100644 --- a/src/sage/libs/ntl/ntl_lzz_p.pyx +++ b/src/sage/libs/ntl/ntl_lzz_p.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl # distutils: libraries = NTL_LIBRARIES gmp m # distutils: extra_compile_args = NTL_CFLAGS # distutils: include_dirs = NTL_INCDIR diff --git a/src/sage/libs/ntl/ntl_lzz_pContext.pxd b/src/sage/libs/ntl/ntl_lzz_pContext.pxd index 058d2842ecc..891f7b7bc59 100644 --- a/src/sage/libs/ntl/ntl_lzz_pContext.pxd +++ b/src/sage/libs/ntl/ntl_lzz_pContext.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl from .types cimport zz_pContext_c cdef class ntl_zz_pContext_class(): diff --git a/src/sage/libs/ntl/ntl_lzz_pContext.pyx b/src/sage/libs/ntl/ntl_lzz_pContext.pyx index 0cb0a69642a..efc6cc105ae 100644 --- a/src/sage/libs/ntl/ntl_lzz_pContext.pyx +++ b/src/sage/libs/ntl/ntl_lzz_pContext.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl # distutils: libraries = NTL_LIBRARIES gmp m # distutils: extra_compile_args = NTL_CFLAGS # distutils: include_dirs = NTL_INCDIR diff --git a/src/sage/libs/ntl/ntl_lzz_pX.pxd b/src/sage/libs/ntl/ntl_lzz_pX.pxd index 3ab79084299..5684627847d 100644 --- a/src/sage/libs/ntl/ntl_lzz_pX.pxd +++ b/src/sage/libs/ntl/ntl_lzz_pX.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl from sage.libs.ntl.lzz_p cimport * from sage.libs.ntl.lzz_pX cimport * diff --git a/src/sage/libs/ntl/ntl_lzz_pX.pyx b/src/sage/libs/ntl/ntl_lzz_pX.pyx index 24b503a9a62..81f44f29ce2 100644 --- a/src/sage/libs/ntl/ntl_lzz_pX.pyx +++ b/src/sage/libs/ntl/ntl_lzz_pX.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl # distutils: libraries = NTL_LIBRARIES gmp m # distutils: extra_compile_args = NTL_CFLAGS # distutils: include_dirs = NTL_INCDIR diff --git a/src/sage/libs/ntl/ntl_mat_GF2.pxd b/src/sage/libs/ntl/ntl_mat_GF2.pxd index b900d2f9e3f..546f8bc87a4 100644 --- a/src/sage/libs/ntl/ntl_mat_GF2.pxd +++ b/src/sage/libs/ntl/ntl_mat_GF2.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl from .types cimport mat_GF2_c from .ntl_GF2 cimport ntl_GF2 diff --git a/src/sage/libs/ntl/ntl_mat_GF2.pyx b/src/sage/libs/ntl/ntl_mat_GF2.pyx index ee90bf17fce..e66dfd030f2 100644 --- a/src/sage/libs/ntl/ntl_mat_GF2.pyx +++ b/src/sage/libs/ntl/ntl_mat_GF2.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl # distutils: libraries = NTL_LIBRARIES gmp m # distutils: extra_compile_args = NTL_CFLAGS # distutils: include_dirs = NTL_INCDIR diff --git a/src/sage/libs/ntl/ntl_mat_GF2E.pxd b/src/sage/libs/ntl/ntl_mat_GF2E.pxd index 5c8aacd5cef..dde49e8a6f4 100644 --- a/src/sage/libs/ntl/ntl_mat_GF2E.pxd +++ b/src/sage/libs/ntl/ntl_mat_GF2E.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl from .types cimport mat_GF2E_c from .ntl_GF2EContext cimport ntl_GF2EContext_class from .ntl_GF2E cimport ntl_GF2E diff --git a/src/sage/libs/ntl/ntl_mat_GF2E.pyx b/src/sage/libs/ntl/ntl_mat_GF2E.pyx index 46a5c9bc59e..483e49654a2 100644 --- a/src/sage/libs/ntl/ntl_mat_GF2E.pyx +++ b/src/sage/libs/ntl/ntl_mat_GF2E.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl # distutils: libraries = NTL_LIBRARIES gmp m # distutils: extra_compile_args = NTL_CFLAGS # distutils: include_dirs = NTL_INCDIR diff --git a/src/sage/libs/ntl/ntl_mat_ZZ.pxd b/src/sage/libs/ntl/ntl_mat_ZZ.pxd index f766e82c187..6f4afc92dc2 100644 --- a/src/sage/libs/ntl/ntl_mat_ZZ.pxd +++ b/src/sage/libs/ntl/ntl_mat_ZZ.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl from .types cimport mat_ZZ_c cdef class ntl_mat_ZZ(): diff --git a/src/sage/libs/ntl/ntl_mat_ZZ.pyx b/src/sage/libs/ntl/ntl_mat_ZZ.pyx index fb1769db352..ab106043398 100644 --- a/src/sage/libs/ntl/ntl_mat_ZZ.pyx +++ b/src/sage/libs/ntl/ntl_mat_ZZ.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl # distutils: libraries = NTL_LIBRARIES gmp m # distutils: extra_compile_args = NTL_CFLAGS # distutils: include_dirs = NTL_INCDIR diff --git a/src/sage/libs/ntl/ntl_tools.pxd b/src/sage/libs/ntl/ntl_tools.pxd index 3cb8c0567f2..ae88c987f42 100644 --- a/src/sage/libs/ntl/ntl_tools.pxd +++ b/src/sage/libs/ntl/ntl_tools.pxd @@ -1,2 +1,3 @@ +# sage_setup: distribution = sagemath-ntl cdef extern from "NTL/tools.h" namespace "NTL": void (*ErrorMsgCallback)(const char *) except * diff --git a/src/sage/libs/ntl/types.pxd b/src/sage/libs/ntl/types.pxd index 22e16968943..ed7f61beddb 100644 --- a/src/sage/libs/ntl/types.pxd +++ b/src/sage/libs/ntl/types.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl # distutils: depends = NTL/ZZ.h cdef extern from "ntlwrap.h": diff --git a/src/sage/libs/ntl/vec_GF2.pxd b/src/sage/libs/ntl/vec_GF2.pxd index fa606dc176a..5b1fa1c6c69 100644 --- a/src/sage/libs/ntl/vec_GF2.pxd +++ b/src/sage/libs/ntl/vec_GF2.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl from .types cimport vec_GF2_c, GF2_c diff --git a/src/sage/libs/ntl/vec_GF2E.pxd b/src/sage/libs/ntl/vec_GF2E.pxd index 1cfdd7109fa..251a47a2ccc 100644 --- a/src/sage/libs/ntl/vec_GF2E.pxd +++ b/src/sage/libs/ntl/vec_GF2E.pxd @@ -1 +1,2 @@ +# sage_setup: distribution = sagemath-ntl from .types cimport vec_GF2E_c diff --git a/src/sage/libs/pari/convert_gmp.pxd b/src/sage/libs/pari/convert_gmp.pxd index e08380f571d..cc554a378da 100644 --- a/src/sage/libs/pari/convert_gmp.pxd +++ b/src/sage/libs/pari/convert_gmp.pxd @@ -1,3 +1,5 @@ +# sage_setup: distribution = sagemath-pari + from cypari2.types cimport GEN from cypari2.gen cimport Gen from sage.libs.gmp.types cimport mpz_t, mpq_t, mpz_ptr, mpq_ptr diff --git a/src/sage/libs/pari/convert_gmp.pyx b/src/sage/libs/pari/convert_gmp.pyx index fcd212a8703..8eb039c05c4 100644 --- a/src/sage/libs/pari/convert_gmp.pyx +++ b/src/sage/libs/pari/convert_gmp.pyx @@ -1,3 +1,5 @@ +# sage_setup: distribution = sagemath-pari + """ Convert PARI objects to/from GMP objects diff --git a/src/sage/libs/pari/convert_sage.pxd b/src/sage/libs/pari/convert_sage.pxd index 266a8204a39..4f866b7953b 100644 --- a/src/sage/libs/pari/convert_sage.pxd +++ b/src/sage/libs/pari/convert_sage.pxd @@ -1,3 +1,5 @@ +# sage_setup: distribution = sagemath-pari + from cypari2.gen cimport Gen from sage.rings.integer cimport Integer from sage.rings.rational cimport Rational diff --git a/src/sage/libs/pari/convert_sage.pyx b/src/sage/libs/pari/convert_sage.pyx index 71a1744698e..53611d28fda 100644 --- a/src/sage/libs/pari/convert_sage.pyx +++ b/src/sage/libs/pari/convert_sage.pyx @@ -1,3 +1,5 @@ +# sage_setup: distribution = sagemath-pari + r""" Convert PARI objects to Sage types """ diff --git a/src/sage/libs/pari/convert_sage_real_double.pxd b/src/sage/libs/pari/convert_sage_real_double.pxd index 12fa7418e69..6cd0dacbd0c 100644 --- a/src/sage/libs/pari/convert_sage_real_double.pxd +++ b/src/sage/libs/pari/convert_sage_real_double.pxd @@ -1,3 +1,5 @@ +# sage_setup: distribution = sagemath-pari + from cypari2.gen cimport Gen from sage.rings.real_double cimport RealDoubleElement diff --git a/src/sage/libs/pari/convert_sage_real_double.pyx b/src/sage/libs/pari/convert_sage_real_double.pyx index 6d7ffe7038e..5bd92103114 100644 --- a/src/sage/libs/pari/convert_sage_real_double.pyx +++ b/src/sage/libs/pari/convert_sage_real_double.pyx @@ -1,3 +1,5 @@ +# sage_setup: distribution = sagemath-pari + from cypari2.convert cimport new_gen_from_double cpdef Gen new_gen_from_real_double_element(RealDoubleElement self): diff --git a/src/sage/libs/pari/misc.pxd b/src/sage/libs/pari/misc.pxd index ae89aff0b84..ee62e0fd8e4 100644 --- a/src/sage/libs/pari/misc.pxd +++ b/src/sage/libs/pari/misc.pxd @@ -1,3 +1,5 @@ +# sage_setup: distribution = sagemath-pari + from cypari2.gen cimport Gen cdef Gen new_t_POL_from_int_star(int* vals, unsigned long length, long varnum) diff --git a/src/sage/libs/pari/misc.pyx b/src/sage/libs/pari/misc.pyx index 1ed774d417c..f8cc4bc9cdc 100644 --- a/src/sage/libs/pari/misc.pyx +++ b/src/sage/libs/pari/misc.pyx @@ -1,3 +1,5 @@ +# sage_setup: distribution = sagemath-pari + from cysignals.signals cimport sig_on from cypari2.paridecl cimport * from cypari2.stack cimport new_gen diff --git a/src/sage/libs/pari/tests.py b/src/sage/libs/pari/tests.py index 97d1ec95893..63f8cd0da82 100644 --- a/src/sage/libs/pari/tests.py +++ b/src/sage/libs/pari/tests.py @@ -1,3 +1,5 @@ +# sage_setup: distribution = sagemath-pari + r""" Tests for the Sage <-> PARI interface diff --git a/src/sage/matrix/all__sagemath_flint.py b/src/sage/matrix/all__sagemath_flint.py new file mode 100644 index 00000000000..d31bae41036 --- /dev/null +++ b/src/sage/matrix/all__sagemath_flint.py @@ -0,0 +1 @@ +# sage_setup: distribution = sagemath-flint diff --git a/src/sage/matrix/all__sagemath_gap.py b/src/sage/matrix/all__sagemath_gap.py new file mode 100644 index 00000000000..dd59a6da735 --- /dev/null +++ b/src/sage/matrix/all__sagemath_gap.py @@ -0,0 +1 @@ +# sage_setup: distribution = sagemath-gap diff --git a/src/sage/matrix/all__sagemath_ntl.py b/src/sage/matrix/all__sagemath_ntl.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/matrix/matrix_complex_ball_dense.pxd b/src/sage/matrix/matrix_complex_ball_dense.pxd index fab9172f8b2..bcedd07e4bf 100644 --- a/src/sage/matrix/matrix_complex_ball_dense.pxd +++ b/src/sage/matrix/matrix_complex_ball_dense.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint from sage.libs.arb.types cimport acb_mat_t from .matrix_dense cimport Matrix_dense from sage.matrix.matrix_generic_dense cimport Matrix_generic_dense diff --git a/src/sage/matrix/matrix_complex_ball_dense.pyx b/src/sage/matrix/matrix_complex_ball_dense.pyx index ad57de71deb..6942442b5d5 100644 --- a/src/sage/matrix/matrix_complex_ball_dense.pyx +++ b/src/sage/matrix/matrix_complex_ball_dense.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # distutils: libraries = ARB_LIBRARY r""" Arbitrary precision complex ball matrices using Arb diff --git a/src/sage/matrix/matrix_gap.pxd b/src/sage/matrix/matrix_gap.pxd index 0667c158df8..b015ebe3fdb 100644 --- a/src/sage/matrix/matrix_gap.pxd +++ b/src/sage/matrix/matrix_gap.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap from .matrix_dense cimport Matrix_dense from sage.libs.gap.element cimport GapElement diff --git a/src/sage/matrix/matrix_gap.pyx b/src/sage/matrix/matrix_gap.pyx index f3f77dcbe15..fec82cea978 100644 --- a/src/sage/matrix/matrix_gap.pyx +++ b/src/sage/matrix/matrix_gap.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap r""" Wrappers on GAP matrices """ diff --git a/src/sage/misc/all__sagemath_ntl.py b/src/sage/misc/all__sagemath_ntl.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/rings/all__sagemath_flint.py b/src/sage/rings/all__sagemath_flint.py new file mode 100644 index 00000000000..d31bae41036 --- /dev/null +++ b/src/sage/rings/all__sagemath_flint.py @@ -0,0 +1 @@ +# sage_setup: distribution = sagemath-flint diff --git a/src/sage/rings/all__sagemath_gap.py b/src/sage/rings/all__sagemath_gap.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/rings/all__sagemath_ntl.py b/src/sage/rings/all__sagemath_ntl.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/rings/all__sagemath_pari.py b/src/sage/rings/all__sagemath_pari.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/rings/complex_arb.pxd b/src/sage/rings/complex_arb.pxd index 5f858a20fcf..9d22be15cc7 100644 --- a/src/sage/rings/complex_arb.pxd +++ b/src/sage/rings/complex_arb.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint from sage.libs.arb.acb cimport acb_t from sage.rings.complex_interval cimport ComplexIntervalFieldElement from sage.rings.real_arb cimport RealBall diff --git a/src/sage/rings/complex_arb.pyx b/src/sage/rings/complex_arb.pyx index ef432c1e945..83f6e30c98f 100644 --- a/src/sage/rings/complex_arb.pyx +++ b/src/sage/rings/complex_arb.pyx @@ -1,4 +1,4 @@ -# -*- coding: utf-8 +# sage_setup: distribution = sagemath-flint r""" Arbitrary precision complex balls using Arb diff --git a/src/sage/rings/factorint_pari.pyx b/src/sage/rings/factorint_pari.pyx index b94682d0deb..66437dd2bd6 100644 --- a/src/sage/rings/factorint_pari.pyx +++ b/src/sage/rings/factorint_pari.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari # sage.doctest: optional - sage.libs.pari r""" Integer factorization using PARI diff --git a/src/sage/rings/finite_rings/all__sagemath_pari.py b/src/sage/rings/finite_rings/all__sagemath_pari.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/rings/finite_rings/element_pari_ffelt.pxd b/src/sage/rings/finite_rings/element_pari_ffelt.pxd index 0b66436dcd4..97c97afe875 100644 --- a/src/sage/rings/finite_rings/element_pari_ffelt.pxd +++ b/src/sage/rings/finite_rings/element_pari_ffelt.pxd @@ -1,3 +1,5 @@ +# sage_setup: distribution = sagemath-pari + from cypari2.types cimport GEN from sage.rings.finite_rings.element_base cimport FinitePolyExtElement diff --git a/src/sage/rings/finite_rings/element_pari_ffelt.pyx b/src/sage/rings/finite_rings/element_pari_ffelt.pyx index b83f259abcc..8793bb7f1ad 100644 --- a/src/sage/rings/finite_rings/element_pari_ffelt.pyx +++ b/src/sage/rings/finite_rings/element_pari_ffelt.pyx @@ -1,3 +1,5 @@ +# sage_setup: distribution = sagemath-pari + """ Finite field elements implemented via PARI's FFELT type diff --git a/src/sage/rings/number_field/S_unit_solver.py b/src/sage/rings/number_field/S_unit_solver.py index a986e3c513c..523a1dfb272 100644 --- a/src/sage/rings/number_field/S_unit_solver.py +++ b/src/sage/rings/number_field/S_unit_solver.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl r""" Solve S-unit equation x + y = 1 diff --git a/src/sage/rings/number_field/all.py b/src/sage/rings/number_field/all.py index 5c56f8cff58..0b4f3317e6f 100644 --- a/src/sage/rings/number_field/all.py +++ b/src/sage/rings/number_field/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl from .number_field import (NumberField, NumberFieldTower, CyclotomicField, QuadraticField, is_fundamental_discriminant, is_real_place) diff --git a/src/sage/rings/number_field/all__sagemath_flint.py b/src/sage/rings/number_field/all__sagemath_flint.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/rings/number_field/all__sagemath_pari.py b/src/sage/rings/number_field/all__sagemath_pari.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/rings/number_field/bdd_height.py b/src/sage/rings/number_field/bdd_height.py index e467ee9df0e..aec33054bcf 100644 --- a/src/sage/rings/number_field/bdd_height.py +++ b/src/sage/rings/number_field/bdd_height.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl r""" Elements of bounded height in number fields diff --git a/src/sage/rings/number_field/class_group.py b/src/sage/rings/number_field/class_group.py index 5be046865f6..b52dbd7093d 100644 --- a/src/sage/rings/number_field/class_group.py +++ b/src/sage/rings/number_field/class_group.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl # -*- coding: utf-8 -*- r""" Class Groups of Number Fields diff --git a/src/sage/rings/number_field/galois_group.py b/src/sage/rings/number_field/galois_group.py index 748122fe924..918df9a86c1 100644 --- a/src/sage/rings/number_field/galois_group.py +++ b/src/sage/rings/number_field/galois_group.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl # -*- coding: utf-8 -*- """ Galois Groups of Number Fields diff --git a/src/sage/rings/number_field/homset.py b/src/sage/rings/number_field/homset.py index a28660ca5d0..0fd58d9bf56 100644 --- a/src/sage/rings/number_field/homset.py +++ b/src/sage/rings/number_field/homset.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl """ Sets of homomorphisms between number fields """ diff --git a/src/sage/rings/number_field/maps.py b/src/sage/rings/number_field/maps.py index 182bfea18d2..1469d64c399 100644 --- a/src/sage/rings/number_field/maps.py +++ b/src/sage/rings/number_field/maps.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl r""" Structure maps for number fields diff --git a/src/sage/rings/number_field/morphism.py b/src/sage/rings/number_field/morphism.py index a979035a82a..2bc66b2b2a7 100644 --- a/src/sage/rings/number_field/morphism.py +++ b/src/sage/rings/number_field/morphism.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl r""" Morphisms between number fields diff --git a/src/sage/rings/number_field/number_field.py b/src/sage/rings/number_field/number_field.py index bc35e0ec0ed..23f22ae7016 100644 --- a/src/sage/rings/number_field/number_field.py +++ b/src/sage/rings/number_field/number_field.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl # -*- coding: utf-8 -*- r""" Number Fields diff --git a/src/sage/rings/number_field/number_field_base.pxd b/src/sage/rings/number_field/number_field_base.pxd index ba6a8e98143..6b4681b08bb 100644 --- a/src/sage/rings/number_field/number_field_base.pxd +++ b/src/sage/rings/number_field/number_field_base.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl from sage.rings.ring cimport Field cdef class NumberField(Field): diff --git a/src/sage/rings/number_field/number_field_base.pyx b/src/sage/rings/number_field/number_field_base.pyx index 1d09825477a..b7b7e088be3 100644 --- a/src/sage/rings/number_field/number_field_base.pyx +++ b/src/sage/rings/number_field/number_field_base.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl # sage.doctest: needs sage.rings.number_field """ Base class for all number fields diff --git a/src/sage/rings/number_field/number_field_element.pxd b/src/sage/rings/number_field/number_field_element.pxd index 9b6917223a0..ebe058e3ccb 100644 --- a/src/sage/rings/number_field/number_field_element.pxd +++ b/src/sage/rings/number_field/number_field_element.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl cimport sage.structure.element from sage.libs.gmp.types cimport mpz_t from sage.rings.integer cimport Integer diff --git a/src/sage/rings/number_field/number_field_element.pyx b/src/sage/rings/number_field/number_field_element.pyx index 27e33ad5be0..ce8f751943b 100644 --- a/src/sage/rings/number_field/number_field_element.pyx +++ b/src/sage/rings/number_field/number_field_element.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl # distutils: libraries = NTL_LIBRARIES # distutils: extra_compile_args = NTL_CFLAGS # distutils: include_dirs = NTL_INCDIR diff --git a/src/sage/rings/number_field/number_field_element_base.pxd b/src/sage/rings/number_field/number_field_element_base.pxd index 060f0c754c4..3a5feccecc1 100644 --- a/src/sage/rings/number_field/number_field_element_base.pxd +++ b/src/sage/rings/number_field/number_field_element_base.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl from sage.structure.element cimport FieldElement diff --git a/src/sage/rings/number_field/number_field_element_base.pyx b/src/sage/rings/number_field/number_field_element_base.pyx index 5fee5817cbc..6b74e879bb1 100644 --- a/src/sage/rings/number_field/number_field_element_base.pyx +++ b/src/sage/rings/number_field/number_field_element_base.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl r""" Number field elements (abstract base class) """ diff --git a/src/sage/rings/number_field/number_field_element_quadratic.pxd b/src/sage/rings/number_field/number_field_element_quadratic.pxd index 7a4f063de73..e37abfc4a48 100644 --- a/src/sage/rings/number_field/number_field_element_quadratic.pxd +++ b/src/sage/rings/number_field/number_field_element_quadratic.pxd @@ -1,3 +1,5 @@ +# sage_setup: distribution = sagemath-ntl +# sage_setup: distribution = sagemath-flint from sage.libs.gmp.types cimport mpz_t from sage.libs.arb.types cimport arb_t from sage.rings.integer cimport Integer diff --git a/src/sage/rings/number_field/number_field_element_quadratic.pyx b/src/sage/rings/number_field/number_field_element_quadratic.pyx index 7d24d56c980..13f32f15575 100644 --- a/src/sage/rings/number_field/number_field_element_quadratic.pyx +++ b/src/sage/rings/number_field/number_field_element_quadratic.pyx @@ -1,3 +1,5 @@ +# sage_setup: distribution = sagemath-ntl +# sage_setup: distribution = sagemath-flint # distutils: libraries = NTL_LIBRARIES # distutils: extra_compile_args = NTL_CFLAGS # distutils: include_dirs = NTL_INCDIR diff --git a/src/sage/rings/number_field/number_field_ideal.py b/src/sage/rings/number_field/number_field_ideal.py index b5e724a0ab4..c7cff078793 100644 --- a/src/sage/rings/number_field/number_field_ideal.py +++ b/src/sage/rings/number_field/number_field_ideal.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl # sage.doctest: needs sage.libs.pari sage.rings.number_field """ Number Field Ideals diff --git a/src/sage/rings/number_field/number_field_ideal_rel.py b/src/sage/rings/number_field/number_field_ideal_rel.py index e19d0df9c1c..c1af59a3c91 100644 --- a/src/sage/rings/number_field/number_field_ideal_rel.py +++ b/src/sage/rings/number_field/number_field_ideal_rel.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl r""" Relative Number Field Ideals diff --git a/src/sage/rings/number_field/number_field_morphisms.pyx b/src/sage/rings/number_field/number_field_morphisms.pyx index 862b32ffc02..21c95946545 100644 --- a/src/sage/rings/number_field/number_field_morphisms.pyx +++ b/src/sage/rings/number_field/number_field_morphisms.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl r""" Embeddings into ambient fields diff --git a/src/sage/rings/number_field/number_field_rel.py b/src/sage/rings/number_field/number_field_rel.py index 143191e05f1..1e803b7ede6 100644 --- a/src/sage/rings/number_field/number_field_rel.py +++ b/src/sage/rings/number_field/number_field_rel.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl r""" Relative Number Fields diff --git a/src/sage/rings/number_field/order.py b/src/sage/rings/number_field/order.py index e789a97bc75..a9be5595e12 100644 --- a/src/sage/rings/number_field/order.py +++ b/src/sage/rings/number_field/order.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl """ Orders in Number Fields diff --git a/src/sage/rings/number_field/selmer_group.py b/src/sage/rings/number_field/selmer_group.py index 77e1f4a84d8..9b0d8de8b89 100644 --- a/src/sage/rings/number_field/selmer_group.py +++ b/src/sage/rings/number_field/selmer_group.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl # -*- coding: utf-8 -*- r""" `p`-Selmer groups of number fields diff --git a/src/sage/rings/number_field/small_primes_of_degree_one.py b/src/sage/rings/number_field/small_primes_of_degree_one.py index b5cb57bb2df..30af0637061 100644 --- a/src/sage/rings/number_field/small_primes_of_degree_one.py +++ b/src/sage/rings/number_field/small_primes_of_degree_one.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl r""" Small primes of degree one diff --git a/src/sage/rings/number_field/splitting_field.py b/src/sage/rings/number_field/splitting_field.py index 448adc6b529..0690843dfcb 100644 --- a/src/sage/rings/number_field/splitting_field.py +++ b/src/sage/rings/number_field/splitting_field.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl """ Splitting fields of polynomials over number fields diff --git a/src/sage/rings/number_field/structure.py b/src/sage/rings/number_field/structure.py index ee699716638..7782977f4ad 100644 --- a/src/sage/rings/number_field/structure.py +++ b/src/sage/rings/number_field/structure.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl r""" Helper classes for structural embeddings and isomorphisms of number fields diff --git a/src/sage/rings/number_field/totallyreal.pyx b/src/sage/rings/number_field/totallyreal.pyx index 87ae68a4d59..d6a5762bd9c 100644 --- a/src/sage/rings/number_field/totallyreal.pyx +++ b/src/sage/rings/number_field/totallyreal.pyx @@ -1,3 +1,6 @@ +# sage_setup: distribution = sagemath-ntl +# sage_setup: distribution = sagemath-pari + r""" Enumeration of Primitive Totally Real Fields diff --git a/src/sage/rings/number_field/totallyreal_data.pxd b/src/sage/rings/number_field/totallyreal_data.pxd index 57ab69dca8b..783a088f53f 100644 --- a/src/sage/rings/number_field/totallyreal_data.pxd +++ b/src/sage/rings/number_field/totallyreal_data.pxd @@ -1,3 +1,6 @@ +# sage_setup: distribution = sagemath-ntl +# sage_setup: distribution = sagemath-pari + cdef double eval_seq_as_poly(int *f, int n, double x) cdef double newton(int *f, int *df, int n, double x0, double eps) cdef void newton_in_intervals(int *f, int *df, int n, double *beta, double eps, double *rts) diff --git a/src/sage/rings/number_field/totallyreal_data.pyx b/src/sage/rings/number_field/totallyreal_data.pyx index 84e292f79b2..eb360756457 100644 --- a/src/sage/rings/number_field/totallyreal_data.pyx +++ b/src/sage/rings/number_field/totallyreal_data.pyx @@ -1,3 +1,6 @@ +# sage_setup: distribution = sagemath-ntl +# sage_setup: distribution = sagemath-pari + # distutils: libraries = gmp """ Enumeration of Totally Real Fields diff --git a/src/sage/rings/number_field/totallyreal_phc.py b/src/sage/rings/number_field/totallyreal_phc.py index 890a0a2f469..7199e4f594d 100644 --- a/src/sage/rings/number_field/totallyreal_phc.py +++ b/src/sage/rings/number_field/totallyreal_phc.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl """ Enumeration of Totally Real Fields: PHC interface diff --git a/src/sage/rings/number_field/totallyreal_rel.py b/src/sage/rings/number_field/totallyreal_rel.py index 65026b38885..d9fdd817591 100644 --- a/src/sage/rings/number_field/totallyreal_rel.py +++ b/src/sage/rings/number_field/totallyreal_rel.py @@ -1,3 +1,6 @@ +# sage_setup: distribution = sagemath-ntl +# sage_setup: distribution = sagemath-pari + r""" Enumeration of Totally Real Fields: Relative Extensions diff --git a/src/sage/rings/number_field/unit_group.py b/src/sage/rings/number_field/unit_group.py index 42c3933219b..d8071c41888 100644 --- a/src/sage/rings/number_field/unit_group.py +++ b/src/sage/rings/number_field/unit_group.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl r""" Unit and S-unit groups of Number Fields diff --git a/src/sage/rings/padics/all__sagemath_flint.py b/src/sage/rings/padics/all__sagemath_flint.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/rings/padics/all__sagemath_pari.py b/src/sage/rings/padics/all__sagemath_pari.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/rings/padics/common_conversion.pyx b/src/sage/rings/padics/common_conversion.pyx index 4ed5570d306..b97b141b83c 100644 --- a/src/sage/rings/padics/common_conversion.pyx +++ b/src/sage/rings/padics/common_conversion.pyx @@ -1,3 +1,5 @@ +# sage_setup: distribution = sagemath-pari + r""" The functions in this file are used in creating new p-adic elements. diff --git a/src/sage/rings/padics/padic_capped_absolute_element.pyx b/src/sage/rings/padics/padic_capped_absolute_element.pyx index 69d5b474f20..6111fe960a0 100644 --- a/src/sage/rings/padics/padic_capped_absolute_element.pyx +++ b/src/sage/rings/padics/padic_capped_absolute_element.pyx @@ -1,3 +1,5 @@ +# sage_setup: distribution = sagemath-pari + """ `p`-adic Capped Absolute Elements diff --git a/src/sage/rings/padics/padic_capped_relative_element.pyx b/src/sage/rings/padics/padic_capped_relative_element.pyx index d393708979d..c6e1aa03ac1 100644 --- a/src/sage/rings/padics/padic_capped_relative_element.pyx +++ b/src/sage/rings/padics/padic_capped_relative_element.pyx @@ -1,3 +1,5 @@ +# sage_setup: distribution = sagemath-pari + """ `p`-adic Capped Relative Elements diff --git a/src/sage/rings/padics/padic_fixed_mod_element.pyx b/src/sage/rings/padics/padic_fixed_mod_element.pyx index 2e9e9a1ed3b..7c1f4c9fafb 100644 --- a/src/sage/rings/padics/padic_fixed_mod_element.pyx +++ b/src/sage/rings/padics/padic_fixed_mod_element.pyx @@ -1,3 +1,5 @@ +# sage_setup: distribution = sagemath-pari + """ `p`-adic Fixed-Mod Element diff --git a/src/sage/rings/padics/padic_floating_point_element.pyx b/src/sage/rings/padics/padic_floating_point_element.pyx index 13eb30a3abc..a1faa9c7f12 100644 --- a/src/sage/rings/padics/padic_floating_point_element.pyx +++ b/src/sage/rings/padics/padic_floating_point_element.pyx @@ -1,3 +1,5 @@ +# sage_setup: distribution = sagemath-pari + r""" `p`-adic Floating Point Elements diff --git a/src/sage/rings/padics/qadic_flint_CA.pxd b/src/sage/rings/padics/qadic_flint_CA.pxd index 56cd4dbc03d..be524b9b302 100644 --- a/src/sage/rings/padics/qadic_flint_CA.pxd +++ b/src/sage/rings/padics/qadic_flint_CA.pxd @@ -1,3 +1,5 @@ +# sage_setup: distribution = sagemath-flint + from cypari2.gen cimport Gen as pari_gen from sage.libs.flint.types cimport fmpz_poly_t from sage.rings.padics.pow_computer_flint cimport PowComputer_flint_unram diff --git a/src/sage/rings/padics/qadic_flint_CA.pyx b/src/sage/rings/padics/qadic_flint_CA.pyx index 3e4d01fcad1..7faff95ce86 100644 --- a/src/sage/rings/padics/qadic_flint_CA.pyx +++ b/src/sage/rings/padics/qadic_flint_CA.pyx @@ -1,3 +1,5 @@ +# sage_setup: distribution = sagemath-flint + include "sage/libs/linkages/padics/fmpz_poly_unram.pxi" include "sage/libs/linkages/padics/unram_shared.pxi" include "CA_template.pxi" diff --git a/src/sage/rings/padics/qadic_flint_CR.pxd b/src/sage/rings/padics/qadic_flint_CR.pxd index 1f1765bc61c..6a6ad8d1228 100644 --- a/src/sage/rings/padics/qadic_flint_CR.pxd +++ b/src/sage/rings/padics/qadic_flint_CR.pxd @@ -1,3 +1,5 @@ +# sage_setup: distribution = sagemath-flint + from cypari2.gen cimport Gen as pari_gen from sage.libs.flint.types cimport fmpz_poly_t from sage.rings.padics.pow_computer_flint cimport PowComputer_flint_unram diff --git a/src/sage/rings/padics/qadic_flint_CR.pyx b/src/sage/rings/padics/qadic_flint_CR.pyx index c20fa087424..57d5d9a8007 100644 --- a/src/sage/rings/padics/qadic_flint_CR.pyx +++ b/src/sage/rings/padics/qadic_flint_CR.pyx @@ -1,3 +1,5 @@ +# sage_setup: distribution = sagemath-flint + include "sage/libs/linkages/padics/fmpz_poly_unram.pxi" include "sage/libs/linkages/padics/unram_shared.pxi" include "CR_template.pxi" diff --git a/src/sage/rings/padics/qadic_flint_FM.pxd b/src/sage/rings/padics/qadic_flint_FM.pxd index 7c2facd3aaa..dc2787aecbc 100644 --- a/src/sage/rings/padics/qadic_flint_FM.pxd +++ b/src/sage/rings/padics/qadic_flint_FM.pxd @@ -1,3 +1,5 @@ +# sage_setup: distribution = sagemath-flint + from cypari2.gen cimport Gen as pari_gen from sage.libs.flint.types cimport fmpz_poly_t from sage.rings.padics.qadic_flint_FP cimport FPElement diff --git a/src/sage/rings/padics/qadic_flint_FM.pyx b/src/sage/rings/padics/qadic_flint_FM.pyx index 0a5e0563101..819225f8f8e 100644 --- a/src/sage/rings/padics/qadic_flint_FM.pyx +++ b/src/sage/rings/padics/qadic_flint_FM.pyx @@ -1,3 +1,5 @@ +# sage_setup: distribution = sagemath-flint + include "sage/libs/linkages/padics/fmpz_poly_unram.pxi" include "sage/libs/linkages/padics/unram_shared.pxi" include "FM_template.pxi" diff --git a/src/sage/rings/padics/qadic_flint_FP.pxd b/src/sage/rings/padics/qadic_flint_FP.pxd index 1a25be2fc08..6137e80f35c 100644 --- a/src/sage/rings/padics/qadic_flint_FP.pxd +++ b/src/sage/rings/padics/qadic_flint_FP.pxd @@ -1,3 +1,5 @@ +# sage_setup: distribution = sagemath-flint + from cypari2.gen cimport Gen as pari_gen from sage.libs.flint.fmpz_poly cimport fmpz_poly_t from sage.rings.padics.pow_computer_flint cimport PowComputer_flint_unram diff --git a/src/sage/rings/padics/qadic_flint_FP.pyx b/src/sage/rings/padics/qadic_flint_FP.pyx index 020b03b722a..024e6c79351 100644 --- a/src/sage/rings/padics/qadic_flint_FP.pyx +++ b/src/sage/rings/padics/qadic_flint_FP.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # distutils: libraries = flint include "sage/libs/linkages/padics/fmpz_poly_unram.pxi" diff --git a/src/sage/rings/polynomial/all__sagemath_flint.py b/src/sage/rings/polynomial/all__sagemath_flint.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/rings/polynomial/all__sagemath_ntl.py b/src/sage/rings/polynomial/all__sagemath_ntl.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/rings/polynomial/evaluation_flint.pyx b/src/sage/rings/polynomial/evaluation_flint.pyx index fc75fabd42d..5453aa60ae8 100644 --- a/src/sage/rings/polynomial/evaluation_flint.pyx +++ b/src/sage/rings/polynomial/evaluation_flint.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # distutils: libraries = flint r""" Fast evaluation of polynomials (Horner's rule) diff --git a/src/sage/rings/polynomial/polynomial_complex_arb.pxd b/src/sage/rings/polynomial/polynomial_complex_arb.pxd index aa4e2a1c0dc..7518077a737 100644 --- a/src/sage/rings/polynomial/polynomial_complex_arb.pxd +++ b/src/sage/rings/polynomial/polynomial_complex_arb.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint from sage.libs.arb.acb_poly cimport * from sage.rings.polynomial.polynomial_element cimport Polynomial diff --git a/src/sage/rings/polynomial/polynomial_complex_arb.pyx b/src/sage/rings/polynomial/polynomial_complex_arb.pyx index e51268b4b54..5ff592492ba 100644 --- a/src/sage/rings/polynomial/polynomial_complex_arb.pyx +++ b/src/sage/rings/polynomial/polynomial_complex_arb.pyx @@ -1,4 +1,4 @@ -# -*- coding: utf-8 +# sage_setup: distribution = sagemath-flint r""" Univariate polynomials over `\CC` with interval coefficients using Arb. diff --git a/src/sage/rings/power_series_pari.pxd b/src/sage/rings/power_series_pari.pxd index fadf7f0fd08..cdc1b1a5550 100644 --- a/src/sage/rings/power_series_pari.pxd +++ b/src/sage/rings/power_series_pari.pxd @@ -1,3 +1,5 @@ +# sage_setup: distribution = sagemath-pari + from cypari2.gen cimport Gen as pari_gen from .power_series_ring_element cimport PowerSeries diff --git a/src/sage/rings/power_series_pari.pyx b/src/sage/rings/power_series_pari.pyx index 24f4fde5be3..2c53fdd0435 100644 --- a/src/sage/rings/power_series_pari.pyx +++ b/src/sage/rings/power_series_pari.pyx @@ -1,3 +1,5 @@ +# sage_setup: distribution = sagemath-pari + r""" Power series implemented using PARI diff --git a/src/sage/rings/real_arb.pxd b/src/sage/rings/real_arb.pxd index 2f48fa06988..6eaea044b32 100644 --- a/src/sage/rings/real_arb.pxd +++ b/src/sage/rings/real_arb.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint from sage.libs.arb.arb cimport arb_t from sage.libs.mpfi.types cimport mpfi_t from sage.rings.real_mpfi cimport RealIntervalField_class, RealIntervalFieldElement diff --git a/src/sage/rings/real_arb.pyx b/src/sage/rings/real_arb.pyx index 9eec35e882e..d2b3a2de5b7 100644 --- a/src/sage/rings/real_arb.pyx +++ b/src/sage/rings/real_arb.pyx @@ -1,4 +1,4 @@ -# -*- coding: utf-8 +# sage_setup: distribution = sagemath-flint r""" Arbitrary precision real balls using Arb diff --git a/src/sage/rings/real_mpfr.pxd b/src/sage/rings/real_mpfr.pxd index 3549eccfd03..2996ade8817 100644 --- a/src/sage/rings/real_mpfr.pxd +++ b/src/sage/rings/real_mpfr.pxd @@ -1,3 +1,5 @@ +# sage_setup: distribution = sagemath-pari + from sage.libs.mpfr.types cimport mpfr_rnd_t, mpfr_t cimport sage.rings.ring diff --git a/src/sage/rings/real_mpfr.pyx b/src/sage/rings/real_mpfr.pyx index ea7ff07a216..535822a1551 100644 --- a/src/sage/rings/real_mpfr.pyx +++ b/src/sage/rings/real_mpfr.pyx @@ -1,3 +1,5 @@ +# sage_setup: distribution = sagemath-pari + r""" Arbitrary Precision Real Numbers diff --git a/src/sage/schemes/all__sagemath_ntl.py b/src/sage/schemes/all__sagemath_ntl.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/schemes/hyperelliptic_curves/all__sagemath_ntl.py b/src/sage/schemes/hyperelliptic_curves/all__sagemath_ntl.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/schemes/hyperelliptic_curves/hypellfrob.pyx b/src/sage/schemes/hyperelliptic_curves/hypellfrob.pyx index 50730d1081f..a524f5d21df 100644 --- a/src/sage/schemes/hyperelliptic_curves/hypellfrob.pyx +++ b/src/sage/schemes/hyperelliptic_curves/hypellfrob.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl # distutils: language = c++ # distutils: sources = sage/schemes/hyperelliptic_curves/hypellfrob/hypellfrob.cpp sage/schemes/hyperelliptic_curves/hypellfrob/recurrences_ntl.cpp # distutils: depends = sage/schemes/hyperelliptic_curves/hypellfrob/hypellfrob.h sage/schemes/hyperelliptic_curves/hypellfrob/recurrences_ntl.h diff --git a/src/sage/sets/disjoint_set.pxd b/src/sage/sets/disjoint_set.pxd index 1ec38f5966b..e3d5488b774 100644 --- a/src/sage/sets/disjoint_set.pxd +++ b/src/sage/sets/disjoint_set.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap #***************************************************************************** # Copyright (C) 2009 Sebastien Labbe # diff --git a/src/sage/sets/disjoint_set.pyx b/src/sage/sets/disjoint_set.pyx index eb6b04f4b9c..68c2c8501d2 100644 --- a/src/sage/sets/disjoint_set.pyx +++ b/src/sage/sets/disjoint_set.pyx @@ -1,4 +1,4 @@ -# -*- coding: utf-8 -*- +# sage_setup: distribution = sagemath-gap r""" Disjoint-set data structure diff --git a/src/sage_setup/autogen/giacpy-mkkeywords.py b/src/sage_setup/autogen/giacpy-mkkeywords.py index 5d2acee1b93..6aa6da60d7a 100644 --- a/src/sage_setup/autogen/giacpy-mkkeywords.py +++ b/src/sage_setup/autogen/giacpy-mkkeywords.py @@ -67,6 +67,7 @@ # building auto-methods.pxi Mi=open("auto-methods.pxi","w") +Mi.write("# sage_setup: distribution = sagemath-giac\n") Mi.write("# file auto generated by mkkeywords.py\n") s='cdef class GiacMethods_base:\n """\n Wrapper for a giac ``gen`` containing auto-generated methods.\n' s+='\n This class does not manage the ``gen`` inside in any way. It is just\n a dumb wrapper.' @@ -87,6 +88,7 @@ # building keywords.pxi with open("keywords.pxi", "w") as Fi: + Fi.write("# sage_setup: distribution = sagemath-giac\n") Fi.write("# file auto generated by mkkeywords.py\n") Fi.write("blacklist = " + str(blacklist) + "\n\n") Fi.write("toremove = " + str(toremove) + "\n\n")