Skip to content

Commit a7ba550

Browse files
authored
Merge pull request plone#1242 from plone/fredvd_m1_build
Document work around for building documentation on M1 macs
2 parents a5c0d51 + 6dd4208 commit a7ba550

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/contributing/setup-build.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ cd documentation
4040
make html
4141
```
4242

43+
```{note}
44+
If you are using an M1 Mac to build the documentation, there is currently [an issue with pyenchant](https://github.com/pyenchant/pyenchant/issues/265) that throws an error that the enchant library can't be found.
45+
This happens for example if you install Python 3 with `pyenv` in the default M1 architecture (aarch64), so without following instructions to use Rosetta2 x86 emulation.
46+
A workaround until pyenchant is fixed is to run `export PYENCHANT_LIBRARY_PATH=/opt/homebrew/lib/libenchant-2.dylib` in the terminal session before you execute `make html`.
47+
```
4348

4449
(setup-build-available-documentation-builds-label)=
4550

0 commit comments

Comments
 (0)