Skip to content

Commit

Permalink
workflows/retile: install OpenSlide Python with pip
Browse files Browse the repository at this point in the history
Directly running setup.py is deprecated.

Signed-off-by: Benjamin Gilbert <bgilbert@cs.cmu.edu>
  • Loading branch information
bgilbert committed Jul 20, 2023
1 parent 19c600b commit be66cf9
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/retile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ permissions:

env:
LD_LIBRARY_PATH: "${{ github.workspace }}/install/lib"
PYTHONPATH: "${{ github.workspace }}/install/lib/python"
PYTHONPATH: "${{ github.workspace }}/install/python"
PYTHONUNBUFFERED: 1
RUNTIME_DEPS: "python3 python3-boto3 python3-pillow python3-requests \
zlib libpng libjpeg-turbo libtiff openjpeg2 gdk-pixbuf2 \
Expand All @@ -24,7 +24,7 @@ jobs:
run: |
dnf install -y \
jq xz \
python3 python3-devel python3-setuptools python3-pillow \
python3 python3-devel python3-pip python3-pillow \
gcc meson pkg-config \
zlib-devel \
libpng-devel \
Expand Down Expand Up @@ -66,10 +66,7 @@ jobs:
- name: Build OpenSlide Python
working-directory: openslide-python-${{ env.OPENSLIDE_PYTHON_VERSION }}
run: |
python3 setup.py install \
--single-version-externally-managed --record /dev/null \
--home=${GITHUB_WORKSPACE}/install \
--install-platlib=${GITHUB_WORKSPACE}/install/lib/python
pip install -t ${GITHUB_WORKSPACE}/install/python .
- name: Upload build
uses: actions/upload-artifact@v3
with:
Expand Down

0 comments on commit be66cf9

Please sign in to comment.