Issue #41 new

Use a name that does not break Python's version predicates

Anonymous created an issue



In [2]: from distutils import versionpredicate

In [3]: versionpredicate.VersionPredicate('bx-python')

ValueError Traceback (most recent call last) /Users/james/Documents/virtualenvs/pyucsc/src/fastinterval/<ipython-input-3-703d94223532> in <module>() ----> 1 versionpredicate.VersionPredicate('bx-python') bx-python cannot be specified in requirements, as the '-python' is parsed as a version.

/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/versionpredicate.pyc in init(self, versionPredicateStr) 111 match = re_paren.match(paren) 112 if not match: --> 113 raise ValueError("expected parenthesized list: %r" % paren) 114 str = match.groups()[0] 115 self.pred = [splitUp(aPred) for aPred in str.split(",")]

ValueError: expected parenthesized list: '-python'


Comments (0)

  1. Log in to comment