diff --git a/testing/py3-scs/APKBUILD b/testing/py3-scs/APKBUILD
index dee85f502a3d0ac357594469548b0d73b0f09c50..38253cf25136fa2605927af9b0b17e9be48f94b8 100644
--- a/testing/py3-scs/APKBUILD
+++ b/testing/py3-scs/APKBUILD
@@ -2,13 +2,13 @@
 # Maintainer: Anjandev Momi <anjan@momi.ca>
 pkgname=py3-scs
 pkgver=3.2.3
-pkgrel=3
+pkgrel=4
 pkgdesc="C package that solves convex cone problems via operator splitting"
 url="https://github.com/cvxgrp/scs"
 arch="all"
 license="MIT"
 depends="python3 py3-numpy py3-scipy"
-makedepends="py3-setuptools py3-numpy-dev python3-dev"
+makedepends="py3-setuptools py3-numpy-dev python3-dev py3-gpep517"
 checkdepends="py3-pytest"
 subpackages="$pkgname-pyc"
 source="scs-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/s/scs/scs-$pkgver.tar.gz"
@@ -16,15 +16,20 @@ builddir="$srcdir/scs-$pkgver"
 options="!check" # Cannot solve SDPs without linked blas+lapack libraries
 
 build() {
-	python3 setup.py build
+	gpep517 build-wheel \
+		--wheel-dir .dist \
+		--output-fd 3 3>&1 >&2
 }
 
 check() {
-	PYTHONPATH=$(echo build/lib*) pytest
+	python3 -m venv --clear --without-pip --system-site-packages .testenv
+	gpep517 install-wheel --destdir .testenv --prefix '' .dist/*.whl
+	.testenv/bin/python3 -m pytest
 }
 
 package() {
-	python3 setup.py install --skip-build --root="$pkgdir"
+	gpep517 install-wheel --destdir "$pkgdir" \
+		.dist/*.whl
 }
 
 sha512sums="