Skip to content

Commit

Permalink
install ffmpeg and other pip packages via conda
Browse files Browse the repository at this point in the history
  • Loading branch information
superbock committed Jan 26, 2022
1 parent e80e878 commit dee1545
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 13 deletions.
23 changes: 11 additions & 12 deletions .github/workflows/python-package-conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,17 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: "3.10"
- name: Install OS dependencies
shell: bash -l {0}
run: |
# get a working ffmpeg
sudo wget -O ffmpeg.tar.gz https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-amd64-static.tar.xz
sudo mkdir ffmpeg
sudo tar xvf ffmpeg.tar.gz -C ffmpeg --strip-components=1
sudo cp ffmpeg/ffmpeg ffmpeg/ffprobe /usr/bin/
# install system libraries
sudo apt-get update -yy
sudo apt-get install -yy libfftw3-dev
# - name: Install OS dependencies
# shell: bash -l {0}
# run: |
# # get a working ffmpeg
# sudo wget -O ffmpeg.tar.gz https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-amd64-static.tar.xz
# sudo mkdir ffmpeg
# sudo tar xvf ffmpeg.tar.gz -C ffmpeg --strip-components=1
# sudo cp ffmpeg/ffmpeg ffmpeg/ffprobe /usr/bin/
# # install system libraries
# sudo apt-get update -yy
# sudo apt-get install -yy libfftw3-dev
- name: Cache conda
uses: actions/cache@v2
env:
Expand Down Expand Up @@ -53,7 +53,6 @@ jobs:
shell: bash -l {0}
run: |
pip install -e .[tests]
pip install pytest pytest-cov coverage pytest-flake8 'flake8<4'
- name: Lint with flake8
shell: bash -l {0}
run: |
Expand Down
7 changes: 6 additions & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,17 @@ dependencies:
- scipy
- opencv
- portaudio
- pyfftw
- ffmpeg
- pip
- pip:
- mido>=1.2.6
- pyfftw
- pyaudio
- flake8<4
- coverage
- pytest
- pytest-cov
- pytest-flake8
- black
- pre-commit
- prospector

0 comments on commit dee1545

Please sign in to comment.