aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKeith Maxwell <keith.maxwell@gmail.com>2020-04-12 17:54:13 +0100
committerLeo <thinkabit.ukim@gmail.com>2020-04-12 17:42:46 +0000
commitcd66068af65ea9d73b2bef82de11736a5113c644 (patch)
treea93e028ce0a62351128aafea5d9f3899e38a7dfa
parent5b77648943f4ef6c28f256abb9f85137a9a45a38 (diff)
downloadaports-cd66068af65ea9d73b2bef82de11736a5113c644.tar.bz2
aports-cd66068af65ea9d73b2bef82de11736a5113c644.tar.xz
main/py3-virtualenv: add missing dependency
Before this change: $ dabuild sh $ sudo apk add py3-virtualenv >/dev/null && virtualenv --version Traceback (most recent call last): File "/usr/bin/virtualenv", line 6, in <module> from pkg_resources import load_entry_point ModuleNotFoundError: No module named 'pkg_resources' This change adds py3-setuptools as a runtime dependency because pkg_resources is imported by a file installed into /usr/bin/: $ grep pkg_resources /usr/bin/virtualenv from pkg_resources import load_entry_point pkg_resources is part of py3-setuptools: $ apk info -L py3-setuptools | grep pkg_resources/__init__.py usr/lib/python3.8/site-packages/pkg_resources/__init__.py After this change: $ dabuild sh $ sudo apk add py3-virtualenv >/dev/null && virtualenv --version 16.7.9
-rw-r--r--main/py3-virtualenv/APKBUILD5
1 files changed, 2 insertions, 3 deletions
diff --git a/main/py3-virtualenv/APKBUILD b/main/py3-virtualenv/APKBUILD
index f497458e73..929599a3cf 100644
--- a/main/py3-virtualenv/APKBUILD
+++ b/main/py3-virtualenv/APKBUILD
@@ -4,13 +4,12 @@
pkgname=py3-virtualenv
_pkgname=virtualenv
pkgver=16.7.9
-pkgrel=0
+pkgrel=1
pkgdesc="Virtual Python3 Environment builder"
url="https://www.virtualenv.org/en/latest/"
arch="noarch"
license="MIT"
-depends="python3"
-makedepends="py3-setuptools"
+depends="python3 py3-setuptools"
checkdepends="py3-pytest py3-mock"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"