Skip to content

Commit

Permalink
Stick with installing libsndfile and libflac from source, for now
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnVinyard committed Apr 12, 2018
1 parent dbe4df0 commit 83a3c55
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ install:
- conda update -q conda
# Useful for debugging any issues with conda
- conda info -a
- conda create -q -n test-environment -c pytorch -c conda-forge python=$TRAVIS_PYTHON_VERSION numpy=1.12 scipy=0.19 cython pytorch=0.3.1 torchvision libsndfile=1.0.27 libflac=1.3.1
- conda create -q -n test-environment -c pytorch python=$TRAVIS_PYTHON_VERSION numpy=1.12 scipy=0.19 cython pytorch=0.3.1 torchvision
- source activate test-environment
- python setup.py install
- pip install coveralls
Expand Down
14 changes: 13 additions & 1 deletion setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,16 @@ apt-get install -y \
python-dev \
libfreetype6-dev \
libpng12-dev \
libffi-dev
libffi-dev

# get libflac, build and install
wget http://downloads.xiph.org/releases/flac/flac-1.3.1.tar.xz
tar xf flac-1.3.1.tar.xz
cd flac-1.3.1
./configure && make && make install
cd ..
# get libsndfile, build and install
wget http://www.mega-nerd.com/libsndfile/files/libsndfile-1.0.27.tar.gz
tar -xzf libsndfile-1.0.27.tar.gz
cd libsndfile-1.0.27
./configure --libdir=/usr/lib/x86_64-linux-gnu && make && make install

0 comments on commit 83a3c55

Please sign in to comment.