File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed
build/pkgs/importlib_metadata Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change 1
1
SAGE_SPKG_CONFIGURE([ importlib_metadata] , [
2
2
SAGE_PYTHON_PACKAGE_CHECK([ importlib_metadata] )
3
+ ] ,[
4
+ # Three of our python packages are backport packages providing
5
+ # python-3.11 features (see coding_in_python.rst):
6
+ #
7
+ # * importlib_metadata
8
+ # * importlib_resources
9
+ # * typing_extensions
10
+ #
11
+ # These packages are therefore not needed with >=python-3.11. Here
12
+ # we test for a python minor version component greater than or equal
13
+ # to 11, and mark this package as "not required" if we succeed.
14
+ AC_MSG_CHECKING ( [ for >=python-3.11] )
15
+
16
+ # Keep in mind that False (~ zero) in python is success in the shell
17
+ AS_IF ( [ "${PYTHON_FOR_VENV}" -c "import sys; sys.exit(sys.version_info.minor < 11)"] ,[
18
+ AC_MSG_RESULT ( [ yes] )
19
+ sage_require_importlib_metadata="no"
20
+ ] ,[
21
+ AC_MSG_RESULT ( [ no] )
22
+ ] )
3
23
] )
24
+
You can’t perform that action at this time.
0 commit comments