summaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authortg <tg@FreeBSD.org>2000-09-06 12:18:18 +0000
committertg <tg@FreeBSD.org>2000-09-06 12:18:18 +0000
commit1f0200e99086718a4741d75457a921976682463d (patch)
tree6fc2dc84dd447aeb0a6023bea3b02d4491a1fdec /misc
parent25ce006ff896b9572c402de77c9f26c8a077e1f4 (diff)
downloadFreeBSD-ports-1f0200e99086718a4741d75457a921976682463d.zip
FreeBSD-ports-1f0200e99086718a4741d75457a921976682463d.tar.gz
Fix `python: command not found' when python doesn't exist.
Noticed by: steve
Diffstat (limited to 'misc')
-rw-r--r--misc/py-distutils/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/misc/py-distutils/Makefile b/misc/py-distutils/Makefile
index 35cf874..c72770d 100644
--- a/misc/py-distutils/Makefile
+++ b/misc/py-distutils/Makefile
@@ -19,7 +19,9 @@ RUN_DEPENDS= python:${PORTSDIR}/lang/python
PLIST_SUB= PYVERSION="python${PYVERSION}"
-PYVERSION!= python -c 'import string, sys; print string.split(sys.version)[0][:3]' || echo "1.5"
+PYVERSION!= (python -c 'import string, sys; \
+ print string.split(sys.version)[0][:3]') 2> /dev/null \
+ || echo "1.5"
do-build:
@(cd ${WRKSRC}; python setup.py build)
OpenPOWER on IntegriCloud