Bug 206960

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: LatestFlags: koobs: merge-quarterly?
Hardware: Any   
OS: Any   

Description freebsd 2016-02-05 23:11:53 UTC
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.
Comment 1 Kubilay Kocak freebsd_committer freebsd_triage 2016-02-06 17:35:37 UTC
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
Comment 2 freebsd 2016-02-06 19:13:58 UTC
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.
Comment 3 commit-hook freebsd_committer freebsd_triage 2016-03-07 02:06:28 UTC
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