Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
mkoeppe committed Oct 6, 2021
2 parents 4386c6e + 14fd1e5 commit c6a0dc8
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/doc/en/developer/coding_basics.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1121,9 +1121,10 @@ framework. Here is a comprehensive list:
.. NOTE::

- Any words after ``# optional`` are interpreted as a list of
package names, separated by spaces.
package (spkg) names or other feature tags, separated by spaces.

- Any punctuation (periods, commas, hyphens, semicolons, ...) after the
- Any punctuation other than underscores (``_``) and periods (``.``),
that is, commas, hyphens, semicolons, ..., after the
first word ends the list of packages. Hyphens or colons between the
word ``optional`` and the first package name are allowed. Therefore,
you should not write ``optional: needs package CHomP`` but simply
Expand Down
40 changes: 40 additions & 0 deletions src/sage/features/sagemath.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,38 @@ def __init__(self):
PythonModule.__init__(self, 'sage.graphs.graph')


class sage__graphs__bliss(PythonModule):

def __init__(self):
# Currently part of sagemath_standard, conditionally built.
# Will be changed to spkg='sagemath_bliss' later
PythonModule.__init__(self, 'sage.graphs.bliss', spkg='bliss')


class sage__graphs__graph_decompositions__tdlib(PythonModule):

def __init__(self):
# Currently part of sagemath_standard, conditionally built.
# Will be changed to spkg='sagemath_tdlib' later
PythonModule.__init__(self, 'sage.graphs.graph_decompositions.tdlib', spkg='tdlib')


class sage__graphs__mcqd(PythonModule):

def __init__(self):
# Currently part of sagemath_standard, conditionally built.
# Will be changed to spkg='sagemath_mcqd' later
PythonModule.__init__(self, 'sage.graphs.mcqd', spkg='mcqd')


class sage__matrix__matrix_gfpn_dense(PythonModule):

def __init__(self):
# Currently part of sagemath_standard, conditionally built.
# Will be changed to spkg='sagemath_meataxe' later
PythonModule.__init__(self, 'sage.matrix.matrix_gfpn_dense', spkg='meataxe')


class sage__rings__number_field(PythonModule):

def __init__(self):
Expand Down Expand Up @@ -56,6 +88,14 @@ def sage_optional_tags():
yield 'sage.combinat'
if sage__graphs().is_present():
yield 'sage.graphs'
if sage__graphs__bliss().is_present():
yield 'sage.graphs.bliss'
if sage__graphs__graph_decompositions__tdlib().is_present():
yield 'sage.graphs.graph_decompositions.tdlib'
if sage__graphs__mcqd().is_present():
yield 'sage.graphs.mcqd'
if sage__matrix__matrix_gfpn_dense().is_present():
yield 'sage.matrix.matrix_gfpn_dense'
if sage__rings__number_field().is_present():
yield 'sage.rings.number_field'
if sage__rings__real_double().is_present():
Expand Down

0 comments on commit c6a0dc8

Please sign in to comment.