Skip to content

Commit dce4bc5

Browse files
committed
use openmp for Darwin
Language level 3
1 parent 8e47e11 commit dce4bc5

File tree

4 files changed

+9249
-8066
lines changed

4 files changed

+9249
-8066
lines changed

README.md

+7-9
Original file line numberDiff line numberDiff line change
@@ -78,14 +78,12 @@ Please cite LightFM if it helps your research. You can use the following BibTeX
7878
Pull requests are welcome. To install for development:
7979

8080
1. Clone the repository: `git clone [email protected]:lyst/lightfm.git`
81-
2. Setup a virtual environment: `cd lightfm && python3 -m venv venv && source ./venv/bin/activate`
82-
3. Install it for development using pip: `pip install -e . && pip install -r test-requirements.txt`
83-
4. You can run tests by running `./venv/bin/py.test tests`.
84-
5. LightFM uses [black](https://github.com/ambv/black) to enforce code formatting and flake8 for linting, see `lint-requirements.txt`.
85-
6. [Optional]: You can install pre-commit to locally enfore formatting and linting. Install with:
86-
```bash
87-
pip install pre-commit
88-
pre-commit install
89-
```
81+
2. Make sure Python has been reinstalled since the last time OSX was updated
82+
3. `brew install llvm`
83+
4. add llvm to path `echo 'export PATH="/opt/homebrew/opt/llvm/bin:$PATH"' >> ~/.zshrc`
84+
5. Setup a virtual environment: `python3 -m venv venv && source ./venv/bin/activate && cd lightfm`
85+
6. Install it for development using pip: `pip install -e . && pip install -r test-requirements.txt`
86+
7. You can run tests by running `../venv/bin/py.test tests`.
87+
8. If you want to install it in a different project: `pip install -e {LIGHT_FM_DIRECTORY}` like `pip install -e ../lightfm` if it's in the parent directory
9088

9189
When making changes to the `.pyx` extension files, you'll need to run `python setup.py cythonize` in order to produce the extension `.c` files before running `pip install -e .`.

0 commit comments

Comments
 (0)