Skip to content

Commit

Permalink
mac env
Browse files Browse the repository at this point in the history
  • Loading branch information
Max Hofbauer authored and nzjrs committed Oct 12, 2018
1 parent 65e54a6 commit 0d1f328
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 23 deletions.
28 changes: 5 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,13 @@ We also recommend installing *IMGStore* from conda
After installing imgstore from any location, you should check it's tests pass to guarantee that
you have a trustworthy OpenCV version

## Installing from source
## Installing from source and with all dependencies

* git clone this repository
* `conda env create -f environment.yaml`
* `conda env create -f environment.yml`

If you are on MacOSX
* `conda env create -f environment-mac.yml`

## Installing from pypi

Expand All @@ -133,27 +136,6 @@ Note: If you install from pypi you have to that you have to ensure that opencv i
installed and has the required functionality (such as mp4 write support if required). Remember
to run the tests `imgstore-test` after installing from pypi.

## Install in Mac OS X

Install [Homebrew](https://brew.sh/), you probably have to install Xcode first.

Then run:

```sh
PATH="/usr/local/bin:$PATH"

brew install python

brew tap homebrew/science
brew install opencv3 --with-ffmpeg

# follow the instructions at the end of the install
echo /usr/local/opt/opencv3/lib/python2.7/site-packages >> /usr/local/lib/python2.7/site-packages/opencv3.pth

# install imgstore
pip install imgstore
```

## Post install testing

You should always run the command `imgstore-test` after installing imgstore. If your
Expand Down
26 changes: 26 additions & 0 deletions environment-mac.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: imgstore

channels:
- conda-forge
- defaults

dependencies:
- conda-forge::ffmpeg=4.0.2

- opencv=3.4.2

- python-dateutil
- pytz
- tzlocal

- pyyaml
- numpy
- pandas
- bloscpack

- pytest
- pytest-cov
- pytest-pep8

- pip:
- "--editable=./"

0 comments on commit 0d1f328

Please sign in to comment.