Skip to content

Commit 96cec39

Browse files
committed
Make it easier to build Mathics
Allow more packages to be optional. Doc a little more in doc/doc.py
1 parent ee6ffac commit 96cec39

3 files changed

Lines changed: 18 additions & 5 deletions

File tree

mathics/doc/doc.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
11
# -*- coding: utf-8 -*-
2+
"""
3+
A module which extracts LaTeX, XML documentation from documentation/*.mdoc and from Mathics modules.
4+
It also extracts doctests as well.
5+
6+
Running LaTeX, or the tests is done elsewhere, as is viewing extracted XML docs.
7+
8+
See also `../test.py` for a command-line interface that calls this.
9+
10+
This code should be replaced by sphinx and autodoc.
11+
"""
212

313
from html import escape as html_escape
414
import re

requirements-dev.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# Optional packages which add functionality or speed things up
2+
scikit-image # FindMinimum can use this
3+
lxml # for HTML parsing used in builtin/fileformats/html
4+
wordcloud # Used in builtin/image.py by WordCloud()
5+
16
# Additional packages used in testing
27
pytest
38
pytest-xdist

setup.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,9 @@ def read(*rnames):
100100
"psutil", # for $SystemMemory
101101
"llvmlite",
102102
"requests",
103-
"scikit-image",
104-
"wordcloud", # Used in builtin/image.py by WordCloud()
105-
106-
# lxml is an optional dependency for HTML parsing
107-
# "lxml", # Used in builtin/fileformats/html
103+
# lxml is an optional dependency for HTML parsing used in builtin/fileformats/html
104+
# "scikit-image", optional
105+
# "wordcloud", # Used in builtin/image.py by WordCloud()
108106
]
109107

110108

0 commit comments

Comments
 (0)