Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
wkentaro committed May 2, 2018
1 parent 1d477aa commit 8639fa7
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,24 +142,27 @@ pytest -v tests
```


## How to build standalone app
## How to build standalone executable

Below is an example on macOS,
and there are pre-built apps in
Below shows how to build the standalone executable on macOS, Linux and Windows.
Also, there are pre-built executables in
[the release section](https://github.com/wkentaro/labelme/releases).

```bash
git clone https://github.com/wkentaro/labelme.git
cd labelme

virtualenv venv --python /usr/local/bin/python3
. venv/bin/activate
pip install -e .
pip uninstall matplotlib
# Setup pyenv
TMPDIR=$(mktemp -d)
git clone https://github.com/pyenv/pyenv.git $TMPDIR/pyenv
export PYENV_ROOT=$TMPDIR/pyenv
export PATH=$PYENV_ROOT/shims:$PYENV_ROOT/bin:$PATH
CONFIGURE_OPTS=--enable-shared pyenv install -ks $PYTHON_VERSION
pyenv global $PYTHON_VERSION

# Build the standalone executable
pip install .
pip uninstall -y matplotlib
pip install pyinstaller

pyinstaller labelme.spec
open dist/labelme.app
dist/labelme --version
```


Expand Down

0 comments on commit 8639fa7

Please sign in to comment.