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

Commit

Permalink
src/sage/features/sagemath.py: Fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Koeppe committed Oct 3, 2021
1 parent e3a541e commit 5e04a85
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/sage/features/sagemath.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,25 @@ def __init__(self):
# sage.combinat will be a namespace package.
# Testing whether sage.combinat itself can be imported is meaningless.
# Hence, we test a Python module within the package.
PythonModule.__init__('sage.combinat.combinations')
PythonModule.__init__(self, 'sage.combinat.combinations')


class sage__graphs(PythonModule):

def __init__(self):
PythonModule.__init__('sage.graphs.graph')
PythonModule.__init__(self, 'sage.graphs.graph')


class sage__rings__real_double(PythonModule):

def __init__(self):
PythonModule.__init__('sage.rings.real_double')
PythonModule.__init__(self, 'sage.rings.real_double')


class sage__symbolic(PythonModule):

def __init__(self):
PythonModule.__init__('sage.symbolic.expression', spkg="sagemath_symbolics")
PythonModule.__init__(self, 'sage.symbolic.expression', spkg="sagemath_symbolics")


def sage_optional_tags():
Expand All @@ -46,11 +46,11 @@ def sage_optional_tags():
Instead, we associate distribution packages to Python modules in
:mod:`sage.features.sagemath` via the ``spkg`` parameter of :class:`PythonModule``.
"""
if sage__combinat().is_functional():
if sage__combinat().is_present():
yield 'sage.combinat'
if sage__graphs().is_functional():
if sage__graphs().is_present():
yield 'sage.graphs'
if sage__rings__real_double().is_functional():
if sage__rings__real_double().is_present():
yield 'sage.rings.real_double'
if sage__symbolic().is_functional():
if sage__symbolic().is_present():
yield 'sage.symbolic'

0 comments on commit 5e04a85

Please sign in to comment.