Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
build/pkgs/sage_conf: Install with flit instead of setuptools
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Koeppe committed Jun 13, 2020
1 parent 5e7155e commit e537d48
Show file tree
Hide file tree
Showing 11 changed files with 644 additions and 26 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ sageruntime: base-toolchain

# CONFIG_FILES lists all files that appear in AC_CONFIG_FILES in configure.ac;
# except for build/make/Makefile-auto, which is unused by the build system
CONFIG_FILES = build/make/Makefile src/Makefile src/bin/sage-env-config build/bin/sage-build-env-config build/pkgs/sage_conf/src/sage_conf.py build/pkgs/sage_conf/src/setup.cfg
CONFIG_FILES = build/make/Makefile src/Makefile src/bin/sage-env-config build/bin/sage-build-env-config src/sage_conf.py

# SPKG_COLLECT_FILES contains all files that influence the SAGE_SPKG_COLLECT macro
SPKG_COLLECT_FILES = build/pkgs/*/type build/pkgs/*/package-version.txt build/pkgs/*/dependencies build/pkgs/*/requirements.txt build/pkgs/*/checksums.ini build/pkgs/*/spkg-install
Expand Down
2 changes: 1 addition & 1 deletion build/pkgs/sage_conf/dependencies
Original file line number Diff line number Diff line change
@@ -1 +1 @@
$(PYTHON) ../pkgs/sage_conf/src/sage_conf.py ../pkgs/sage_conf/src/setup.cfg | $(PYTHON_TOOLCHAIN)
$(PYTHON) ../pkgs/sage_conf/src/sage_conf.py | $(PYTHON_TOOLCHAIN) flit
2 changes: 0 additions & 2 deletions build/pkgs/sage_conf/src/.gitignore

This file was deleted.

619 changes: 619 additions & 0 deletions build/pkgs/sage_conf/src/LICENSE

Large diffs are not rendered by default.

File renamed without changes.
15 changes: 15 additions & 0 deletions build/pkgs/sage_conf/src/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[build-system]
requires = ["flit_core >=2,<4"]
build-backend = "flit_core.buildapi"

[tool.flit.metadata]
module = "sage_conf"
author = "The Sage Developers"
author-email = "[email protected]"
home-page = "https://www.sagemath.org"
classifiers = ["License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)"]
description-file = "README.rst"

[tool.flit.scripts]
#sage-env-config = "bin/sage-env-config"
sage-config = "sage_conf:_main"
1 change: 1 addition & 0 deletions build/pkgs/sage_conf/src/sage_conf.py
19 changes: 0 additions & 19 deletions build/pkgs/sage_conf/src/setup.cfg.in

This file was deleted.

2 changes: 0 additions & 2 deletions build/pkgs/sage_conf/src/setup.py

This file was deleted.

2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ dnl AC_CONFIG_HEADERS([config.h])
AC_CONFIG_FILES([build/make/Makefile-auto build/make/Makefile src/Makefile])
AC_CONFIG_FILES([src/bin/sage-env-config build/bin/sage-build-env-config])

AC_CONFIG_FILES([build/pkgs/sage_conf/src/sage_conf.py build/pkgs/sage_conf/src/setup.cfg])
AC_CONFIG_FILES([src/sage_conf.py])

dnl Create basic directories needed for Sage
AC_CONFIG_COMMANDS(mkdirs,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @configure_input@

r"""
Configuration information for sagelib
"""

__version__ = "@PACKAGE_VERSION@"

VERSION = "@PACKAGE_VERSION@"

MAXIMA = "@prefix@/bin/maxima"
Expand Down

0 comments on commit e537d48

Please sign in to comment.