Skip to content

Commit

Permalink
Try once again to install C libraries like libsndfile and libflac fro…
Browse files Browse the repository at this point in the history
…m conda packages for CI pipeline
  • Loading branch information
JohnVinyard committed Aug 18, 2018
1 parent 2e08213 commit 1cd91dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 18 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ install:
- conda update -q conda
# Useful for debugging any issues with conda
- conda info -a
- conda create -q -n test-environment -c pytorch python=$TRAVIS_PYTHON_VERSION numpy=1.12 scipy=0.19 cython pytorch=0.4 torchvision
- conda create -q -n test-environment -c pytorch -c hcc -c conda-forge python=$TRAVIS_PYTHON_VERSION numpy=1.12 scipy=0.19 cython pytorch=0.4 torchvision libsndfile=1.0.28 libsamplerate=0.1.8 libflac=1.3.1 libogg=1.3.2
- ldconfig /opt/conda/lib
- source activate test-environment
- python setup.py install
- pip install coveralls
Expand Down
17 changes: 0 additions & 17 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,9 @@ apt-get install -y \
automake \
libtool \
pkg-config \
libogg0 \
libogg-dev \
libvorbis0a \
libvorbis-dev \
libsamplerate0 \
libsamplerate0-dev \
libx11-dev \
python-dev \
libfreetype6-dev \
libpng12-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 1cd91dc

Please sign in to comment.