Skip to content

Commit eef9a2c

Browse files
authored
Merge pull request sphinx-contrib#219 from dhellmann/dev-docs-enchant-lib
add docs for setting up enchant library
2 parents e2c1884 + e791154 commit eef9a2c

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

docs/source/developers.rst

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,22 @@ To run the tests, you need ``tox`` installed, then just run
2121
``tox``. This should run the unit tests, the source code linter, and
2222
try to build the current documentation.
2323

24+
Enchant C Library
25+
-----------------
26+
27+
You also need the C library from Enchant installed. On macOS, use
28+
`brew` to install the `enchant` package, then set
29+
`PYENCHANT_LIBRARY_PATH` to point to the `dylib` file included in the
30+
output of `brew list enchant`.
31+
32+
.. code-block:: console
33+
34+
$ brew list enchant | grep dylib
35+
/opt/homebrew/Cellar/enchant/2.6.4/lib/libenchant-2.dylib
36+
/opt/homebrew/Cellar/enchant/2.6.4/lib/libenchant-2.2.dylib
37+
38+
$ export PYENCHANT_LIBRARY_PATH=/opt/homebrew/Cellar/enchant/2.6.4/lib/libenchant-2.2.dylib
39+
2440
Coding style
2541
============
2642

docs/source/spelling_wordlist.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ builtins
22
hoc
33
linter
44
linters
5+
macOS
56
pypi
67
reStructuredText
78
sphinxcontrib

0 commit comments

Comments
 (0)