Skip to content

Commit

Permalink
Document C compiler requirement and CC env var
Browse files Browse the repository at this point in the history
See #46
  • Loading branch information
ojwb committed Sep 2, 2024
1 parent cbe740d commit 42e015c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ stemming algorithms likely aren't the right answer.
Requirements
------------

You need a working C compiler.

Python header files should be installed.

This version of PyStemmer has been CI tested using Python series 3.6, 3.7,
Expand Down Expand Up @@ -76,6 +78,15 @@ You can also install using ``pip``:
* from a local copy of the code: ``pip install .``
* from git: ``pip install git+git://github.com/snowballstem/pystemmer``

If Python doesn't find your C compiler, you can set environment variable
``CC`` to the C compiler to use, for example::

CC=gcc-14 python setup.py install

or::

CC=/opt/bin/cc pip install pystemmer

API
---

Expand Down

0 comments on commit 42e015c

Please sign in to comment.