Skip to content

Commit e7f80b9

Browse files
author
Jakub Turski
committed
(docs) Carve out pip flags to env variable.
1 parent 6d214e2 commit e7f80b9

1 file changed

Lines changed: 11 additions & 18 deletions

File tree

docs/INSTALL.md

Lines changed: 11 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ On Debian, this should set you up:
3232
sudo apt-get install libjack-jackd2-dev librubberband-dev libffms2-dev libfreetype6-dev libass-dev libgl1-mesa-dev libavfilter-dev
3333
```
3434

35-
Under OSX, try this:
35+
Under OSX, you need homebrew's python in addition to the libraries:
3636
```shell
37-
brew install jack jpeg ffms2 rubberband libass freetype
37+
brew install python jack jpeg ffms2 rubberband libass freetype
3838
```
3939

4040
### Set up python environment
@@ -44,6 +44,12 @@ mkvirtualenv ${BL_VENV}
4444
pip install cython
4545
```
4646

47+
Under OSX, you need some extra options to make sure python libs are able to find
48+
homebrew shared libs:
49+
```shell
50+
PIP_FLAGS=(--global-option=build_ext --global-option=-I$(brew --prefix)/include --global-option=-L$(brew --prefix)/lib)
51+
```
52+
4753
### Get libmpv
4854
You need version 0.21.0 of `mpv` or higher.
4955

@@ -66,26 +72,13 @@ cd mpv
6672
```
6773

6874
### Get pympv.
69-
Linux:
70-
```shell
71-
pip install 'git+git://github.com/yacoob/pympv.git@HEAD'
72-
```
73-
74-
OSX:
7575
```shell
76-
pip install 'git+git://github.com/yacoob/pympv.git@HEAD' --global-option=build_ext --global-option="-I$(brew --prefix)/include" --global-option="-L$(brew --prefix)/lib"
76+
pip install 'git+git://github.com/yacoob/pympv.git@HEAD' ${PIP_FLAGS}
7777
```
7878

79-
8079
### Install Blitzloop itself
81-
Linux:
82-
```shell
83-
pip install 'git+git://github.com/marcan/blitzloop.git@libmpv'
84-
```
85-
86-
OSX:
8780
```shell
88-
pip install 'git+git://github.com/marcan/blitzloop.git@libmpv' --global-option=build_ext --global-option="-I$(brew --prefix)/include" --global-option="-L$(brew --prefix)/lib"
81+
pip install 'git+git://github.com/marcan/blitzloop.git@libmpv' ${PIP_FLAGS}
8982
```
9083

9184
### Add songs.
@@ -94,7 +87,7 @@ cd ${BL_HOME}
9487
ln -s /your/song/directory songs
9588
```
9689

97-
# Running Blitzloop
90+
# Sing!
9891
TODO: fix this, as it's currently broken
9992
```shell
10093
pyenv activate ${BL_VENV}

0 commit comments

Comments
 (0)