Bug 149276 - [PATCH] devel/py-dexml: Restrict Python version to 2.5+
Summary: [PATCH] devel/py-dexml: Restrict Python version to 2.5+
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Wen Heping
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-04 15:50 UTC by Greg Larkin
Modified: 2010-08-18 15:20 UTC (History)
1 user (show)

See Also:


Attachments
py25-dexml-0.3.6.patch (455 bytes, patch)
2010-08-04 15:50 UTC, Greg Larkin
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Greg Larkin freebsd_committer freebsd_triage 2010-08-04 15:50:07 UTC
py-dexml fails to build correctly with Python 2.4 installed as the default
Python version:

byte-compiling /usr/local/lib/python2.4/site-packages/dexml/__init__.py to __init__.pyc
  File "/usr/local/lib/python2.4/site-packages/dexml/__init__.py", line 476
    equals = (lambda a, b: a == b) if cls.meta.case_sensitive else (lambda a, b: a.lower() == b.lower())
                                    ^
SyntaxError: invalid syntax
byte-compiling /usr/local/lib/python2.4/site-packages/dexml/fields.py to fields.pyc
writing byte-compilation script '/tmp/tmpFxQTk0.py'
/usr/local/bin/python2.4 -O /tmp/tmpFxQTk0.py
  File "/usr/local/lib/python2.4/site-packages/dexml/__init__.py", line 476
    equals = (lambda a, b: a == b) if cls.meta.case_sensitive else (lambda a, b: a.lower() == b.lower())
                                    ^
SyntaxError: invalid syntax
removing /tmp/tmpFxQTk0.py

USE_PYTHON is updated to require Python version 2.5+. This was noticed
during a tinderbox build with the following options set:
PYTHON_VERSION=python2.4
PYTHON_DEFAULT_VERSION=python2.4

Port maintainer (wen@FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.99
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2010-08-04 15:50:22 UTC
Responsible Changed
From-To: freebsd-ports-bugs->wen

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer freebsd_triage 2010-08-18 15:14:51 UTC
glarkin     2010-08-18 14:14:42 UTC

  FreeBSD ports repository

  Modified files:
    devel/py-dexml       Makefile 
  Log:
  - Restrict Python version to 2.5+ to avoid syntax error with Python 2.4
  
  PR:             ports/149276
  Submitted by:   glarkin
  Approved by:    wen (via email)
  
  Revision  Changes    Path
  1.6       +1 -1      ports/devel/py-dexml/Makefile
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 3 Greg Larkin freebsd_committer freebsd_triage 2010-08-18 15:14:52 UTC
State Changed
From-To: open->closed

Committed.