From 5d61a97b8e0bf8d46e684fd98147e8f2f4fa21ac Mon Sep 17 00:00:00 2001 From: Florian Guillet Date: Wed, 24 May 2023 16:29:49 +0200 Subject: [PATCH] CONTRIBUTING: Ajout installation poutils sur MacOS --- CONTRIBUTING.rst | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/CONTRIBUTING.rst b/CONTRIBUTING.rst index 7032bc34..1e74c8f6 100644 --- a/CONTRIBUTING.rst +++ b/CONTRIBUTING.rst @@ -23,8 +23,36 @@ la manipulation des fichiers ``.po`` et la traduction. `Poutils `_ est un paquet PyPI qui regroupe un certain nombre d'outils liés à la traduction. Dans un -environnement disposant de Python 3.7 ou plus, installez-le avec :: +environnement disposant de Python 3.7 ou plus, installez-le avec : +Debian / Ubuntu :: + + python3 -m pip install poutils + +MacOS (intel) :: + + brew install hunspell + sudo mkdir /Library/Spelling/ + # Aller chercher le dictionnaire français sur grammalecte + # http://grammalecte.net:8080/file?name=gc_lang/fr/oxt/Dictionnaires/dictionaries/fr-toutesvariantes.dic&ci=tip + # http://grammalecte.net:8080/file?name=gc_lang/fr/oxt/Dictionnaires/dictionaries/fr-toutesvariantes.aff&ci=tip + sudo mv ~/Downloads/fr-toutesvariantes.dic /Library/Spelling/fr_FR.dic + sudo mv ~/Downloads/fr-toutesvariantes.aff /Library/Spelling/fr_FR.aff + ln -s /usr/local/Cellar/hunspell/1.7.2/lib/libhunspell-1.7.0.dylib /usr/local/Cellar/hunspell/1.7.2/lib/libhunspell.dylib + CFLAGS=$(pkg-config --cflags hunspell) LDFLAGS=$(pkg-config --libs hunspell) python3 -m pip install hunspell + python3 -m pip install poutils + +MacOS (Universal) :: + + brew install hunspell + sudo mkdir /Library/Spelling/ + # Aller chercher le dictionnaire français sur grammalecte + # http://grammalecte.net:8080/file?name=gc_lang/fr/oxt/Dictionnaires/dictionaries/fr-toutesvariantes.dic&ci=tip + # http://grammalecte.net:8080/file?name=gc_lang/fr/oxt/Dictionnaires/dictionaries/fr-toutesvariantes.aff&ci=tip + sudo mv ~/Downloads/fr-toutesvariantes.dic /Library/Spelling/fr_FR.dic + sudo mv ~/Downloads/fr-toutesvariantes.aff /Library/Spelling/fr_FR.aff + ln -s /opt/homebrew/lib/libhunspell-1.7.0.dylib /opt/homebrew/Cellar/hunspell/1.7.2/lib/libhunspell-1.7.0.dylib + CFLAGS=$(pkg-config --cflags hunspell) LDFLAGS=$(pkg-config --libs hunspell) python3 -m pip install hunspell python3 -m pip install poutils Dans notre cas, les utilitaires de *Poutils* qui nous intéressent sont :