| Summary: | www/py-beaker: Missing dependency: py-funcsigs (< Python 3.3) | ||
|---|---|---|---|
| Product: | Ports & Packages | Reporter: | freebsd |
| Component: | Individual Port(s) | Assignee: | Vanilla I. Shu <vanilla> |
| Status: | Closed FIXED | ||
| Severity: | Affects Some People | CC: | vanilla |
| Priority: | --- | Keywords: | needs-patch, needs-qa |
| Version: | Latest | Flags: | koobs:
merge-quarterly?
|
| Hardware: | Any | ||
| OS: | Any | ||
As per setup.py:
if not hasattr(inspect, 'signature'):
# On Python 2.6, 2.7 and 3.2 we need funcsigs dependency
INSTALL_REQUIRES.append('funcsigs')
.if ${PYTHON_REL} < 3300
You're right, setup.py says that, but I've installed it on both 9.3 and 10.2, and it doesn't pull in funcsigs or complain if it's not there. A commit references this bug: Author: vanilla Date: Mon Mar 7 02:06:02 UTC 2016 New revision: 410496 URL: https://svnweb.freebsd.org/changeset/ports/410496 Log: Add RUN_DEPENDS to py-funcsigs. PR: 206960 Submitted by: freebsd@johnlevine.com Changes: head/www/py-beaker/Makefile |
in beaker/_compat.py at line 160 it says: try: from inspect import signature as func_signature except ImportError: from funcsigs import signature as func_signature The inspect package doesn't include signature() until python 3.3 so it looks for funcsigs, and fails if that package isn't installed. The solution is easy, add py-funcsigs as a prerequisite, at least if it's being built for python 2.x.