summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2018-03-23 21:09:11 +0000
committerjoerg <joerg@pkgsrc.org>2018-03-23 21:09:11 +0000
commit44314ee34f90f90011f409fadb2cfffa3e6d4183 (patch)
tree3bc289dc644bc2fd852653a232ce294787be4cbe
parentcccab5027c1e7c9a8997e7fd5136e6412bce9657 (diff)
downloadpkgsrc-44314ee34f90f90011f409fadb2cfffa3e6d4183.tar.gz
Move py-test-runner dependency into the !py27 case as build dependency.
Contrary to the name, setuptools whines and wants to RCE the system if it isn't installed.
-rw-r--r--devel/py-flake8/Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/devel/py-flake8/Makefile b/devel/py-flake8/Makefile
index 45d10300889..57ad860c405 100644
--- a/devel/py-flake8/Makefile
+++ b/devel/py-flake8/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.12 2018/03/21 12:05:28 joerg Exp $
+# $NetBSD: Makefile,v 1.13 2018/03/23 21:09:11 joerg Exp $
DISTNAME= flake8-3.5.0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
@@ -17,14 +17,15 @@ DEPENDS+= ${PYPKGPREFIX}-codestyle>=2.0.0:../../devel/py-codestyle
.if "${PYPKGPREFIX}" == "py27"
DEPENDS+= ${PYPKGPREFIX}-configparser-[0-9]*:../../devel/py-configparser
DEPENDS+= ${PYPKGPREFIX}-enum34-[0-9]*:../../devel/py-enum34
+.else
+# Enforced by setuptools
+BUILD_DEPENDS+= ${PYPKGPREFIX}-test-runner-[0-9]*:../../devel/py-test-runner
.endif
-# TEST_DEPENDS
# 8 test failures as of 3.0.4, see
# https://gitlab.com/pycqa/flake8/issues/232
TEST_DEPENDS+= ${PYPKGPREFIX}-mock-[0-9]*:../../devel/py-mock
TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
-TEST_DEPENDS+= ${PYPKGPREFIX}-test-runner-[0-9]*:../../devel/py-test-runner
post-install:
cd ${DESTDIR}${PREFIX}/bin && ${MV} flake8 flake8-${PYVERSSUFFIX} || ${TRUE}