Skip to content

Commit

Permalink
fix: snapcraft build
Browse files Browse the repository at this point in the history
  • Loading branch information
chidiwilliams committed Dec 27, 2023
1 parent 311218e commit 69f5638
Showing 1 changed file with 19 additions and 11 deletions.
30 changes: 19 additions & 11 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,25 +80,33 @@ parts:
source: .
build-packages:
- portaudio19-dev
- python3-pip
- python3-poetry
stage-packages:
- ffmpeg
- libportaudio2
- libpulse0
- libasound2
- libasound2-plugins
override-build: |
export PATH="/root/.local/bin:$PATH"
# Install dependencies
pip3 install --upgrade pip wheel
curl -sSL https://install.python-poetry.org | python3 -
# Install all Poetry dependencies globally
poetry config virtualenvs.path "$SNAPCRAFT_PART_INSTALL"
poetry install
craftctl default
pip install .
echo $CRAFT_PART_BUILD
echo $CRAFT_PART_INSTALL
# export PATH="/root/.local/bin:$PATH"
#
# # Install dependencies
# pip3 install --upgrade pip wheel
#
# curl -sSL https://install.python-poetry.org | python3 -
#
# # Install all Poetry dependencies globally
# poetry config virtualenvs.create false
# poetry install
#
# # Copy python deps to $CRAFT_PART_INSTALL
# mkdir -p $CRAFT_PART_INSTALL/usr/lib/python3/dist-packages
# cp -r $CRAFT_PART_BUILD/usr/lib/python3.10/site-packages/* $CRAFT_PART_INSTALL/usr/lib/python3/dist-packages
after: [ desktop-qt5 ]

desktop-file:
Expand Down

0 comments on commit 69f5638

Please sign in to comment.