Date: Thu, 12 Aug 2010 14:17:55 -0400 (EDT) From: Greg Larkin <glarkin@FreeBSD.org> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/149585: [PATCH] devel/py-unittestplus: Fails to build correctly with Python 2.4/2.5 Message-ID: <201008121817.o7CIHtLE008260@fbsd70.entropy.prv> Resent-Message-ID: <201008121820.o7CIK62B071461@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 149585 >Category: ports >Synopsis: [PATCH] devel/py-unittestplus: Fails to build correctly with Python 2.4/2.5 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Aug 12 18:20:06 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Greg Larkin >Release: FreeBSD 7.0-RELEASE i386 >Organization: The FreeBSD Project >Environment: System: FreeBSD fbsd70.entropy.prv 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC 2008 >Description: py-unittestplus fails to build correctly with Python 2.4 or 2.5 selected: byte-compiling /usr/local/lib/python2.4/site-packages/unittestplus/tests/testcaseplus_test.py to testcaseplus_test.pyc File "/usr/local/lib/python2.4/site-packages/unittestplus/tests/testcaseplus_t est.py", line 246 except AssertionError as exc: ^ SyntaxError: invalid syntax byte-compiling /usr/local/lib/python2.4/site-packages/unittestplus/tests/__init__.py to __init__.pycwriting byte-compilation script '/tmp/tmpv3Ah4Y.py' /usr/local/bin/python2.4 -O /tmp/tmpv3Ah4Y.py File "/usr/local/lib/python2.4/site-packages/unittestplus/tests/testcaseplus_test.py", line 246 except AssertionError as exc: ^ SyntaxError: invalid syntax removing /tmp/tmpv3Ah4Y.py Port maintainer (hsmtkk@gmail.com) is cc'd. Generated with FreeBSD Port Tools 0.99 >How-To-Repeat: make PYTHON_VERSION=python2.4 PYTHON_DEFAULT_VERSION=python2.4 install -or- make PYTHON_VERSION=python2.5 PYTHON_DEFAULT_VERSION=python2.5 install >Fix: --- py26-unittestplus-1.1.1.patch begins here --- Index: Makefile =================================================================== RCS file: /home/pcvs/ports/devel/py-unittestplus/Makefile,v retrieving revision 1.1 diff -u -u -r1.1 Makefile --- Makefile 13 Jul 2009 14:35:36 -0000 1.1 +++ Makefile 12 Aug 2010 18:14:56 -0000 @@ -15,7 +15,7 @@ COMMENT= Test utilities built on unittest USE_ZIP= yes -USE_PYTHON= yes +USE_PYTHON= 2.6+ USE_PYDISTUTILS= yes .include <bsd.port.mk> --- py26-unittestplus-1.1.1.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201008121817.o7CIHtLE008260>