From nobody@FreeBSD.org  Wed Feb 12 20:58:41 2014
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTPS id 3F17AEF8
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 12 Feb 2014 20:58:41 +0000 (UTC)
Received: from newred.freebsd.org (cgiserv.freebsd.org [IPv6:2001:1900:2254:206a::50:4])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by mx1.freebsd.org (Postfix) with ESMTPS id 2A6AE1C48
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 12 Feb 2014 20:58:41 +0000 (UTC)
Received: from cgiserv.freebsd.org ([127.0.1.6])
	by newred.freebsd.org (8.14.7/8.14.7) with ESMTP id s1CKwf2e042050
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 12 Feb 2014 20:58:41 GMT
	(envelope-from nobody@cgiserv.freebsd.org)
Received: (from nobody@localhost)
	by cgiserv.freebsd.org (8.14.7/8.14.7/Submit) id s1CKwf5a042049;
	Wed, 12 Feb 2014 20:58:41 GMT
	(envelope-from nobody)
Message-Id: <201402122058.s1CKwf5a042049@cgiserv.freebsd.org>
Date: Wed, 12 Feb 2014 20:58:41 GMT
From: Scott Sturdivant <scott.sturdivant@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: py-virtualenv is missing run dependency on py-setuptools.
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         186706
>Category:       ports
>Synopsis:       devel/py-virtualenv is missing run dependency on py-setuptools.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    koobs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Feb 12 21:00:00 UTC 2014
>Closed-Date:    Sun Feb 16 14:53:57 UTC 2014
>Last-Modified:  Sun Feb 16 14:53:57 UTC 2014
>Originator:     Scott Sturdivant
>Release:        9.2
>Organization:
>Environment:
FreeBSD host 9.2-RELEASE FreeBSD 9.2-RELEASE #0 r255898: Thu Sep 26 22:50:31 UTC 2013     root@bake.isc.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
Koobs and I have discussed this, but I'm recording it here so that it can be tracked.  

The py-virtualenv port is missing a run dependency on py-setuptools.  Thus, you're able to install py-virtualenv and when trying to create a virtualenv, you're met with this error:


------------
Traceback (most recent call last):
  File "/usr/local/bin/virtualenv", line 5, in <module>
    from pkg_resources import load_entry_point
ImportError: No module named pkg_resources
------------

If you've installed via ports, you won't run into this issue unless you remove the py-setuptools port (because it is installed as a build dep).  However, with packages on a clean machine, installing py-virtualenv will only require python which is insufficient.
>How-To-Repeat:
Build a py-virtualenv package, install it, then execute /usr/local/bin/virtualenv foo.
>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->koobs 
Responsible-Changed-By: koobs 
Responsible-Changed-When: Thu Feb 13 10:57:48 UTC 2014 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=186706 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/186706: commit references a PR
Date: Sun, 16 Feb 2014 14:41:51 +0000 (UTC)

 Author: koobs
 Date: Sun Feb 16 14:41:43 2014
 New Revision: 344573
 URL: http://svnweb.freebsd.org/changeset/ports/344573
 QAT: https://qat.redports.org/buildarchive/r344573/
 
 Log:
   Any python package that uses console_scripts in setup.py needs the
   pkg_resources module from setuptools at run time. This generally means
   anything that installs a CLI utility.
   
   Package-only users do not get setuptools installed when they install
   the packages of these ports currently, because USE_PYDISTUTILS=yes doesnt set
   a RUN_DEPENDS on it.
   
   This breaks console script invocation, with the following error:
   
   Traceback (most recent call last):
     File "/usr/local/bin/<script-name>", line 5, in <module>
       from pkg_resources import load_entry_point
   ImportError: No module named pkg_resources
   
   The FreeBSD Python team has recently standardised on a consistent
   installation pattern for all python software, whether pure-distutils or
   setuptools based, and this run-time requirement is currently not being
   satisfied, breaking ports that use that functionality.
   
   This commit moves RUN_DEPENDS+=setuptools from the =easy_install *only*
   case, to the default case. This does mean that py27-setuptools and
   py33-setuptools cannot be installed concurrently, precluding dual stack
   Python installations.
   
   The FreeBSD Python team is working hard towards a future where  multiple
   python and packages versions *can* be installed concurrently, but it is
   not explicitly supported in the current state. Improvements to FreeBSD's
   ports and package frameworks will help achieve that goal.
   
   [1] http://lists.freebsd.org/pipermail/freebsd-python/2014-February/006592.html
   [2] http://lists.freebsd.org/pipermail/freebsd-python/2014-February/006609.html
   
   PR:		ports/186706
   Reported by:	Scott Sturdivant <scott dot sturdivant at gmail.com>
   Reviewed by:	antoine, rm, mva
   MFH:		2014Q1
 
 Modified:
   head/Mk/bsd.python.mk
 
 Modified: head/Mk/bsd.python.mk
 ==============================================================================
 --- head/Mk/bsd.python.mk	Sun Feb 16 14:41:04 2014	(r344572)
 +++ head/Mk/bsd.python.mk	Sun Feb 16 14:41:43 2014	(r344573)
 @@ -414,11 +414,11 @@ PYTHONPREFIX_SITELIBDIR=	${PYTHON_SITELI
  _CURRENTPORT:=	${PKGNAMEPREFIX}${PORTNAME}
  .if defined(USE_PYDISTUTILS) && ${_CURRENTPORT} != ${PYTHON_PKGNAMEPREFIX}setuptools
  BUILD_DEPENDS+=		${PYTHON_PKGNAMEPREFIX}setuptools>0:${PORTSDIR}/devel/py-setuptools
 +RUN_DEPENDS+=		${PYTHON_PKGNAMEPREFIX}setuptools>0:${PORTSDIR}/devel/py-setuptools
  .endif
  
  # setuptools support
  .if defined(USE_PYDISTUTILS) && ${USE_PYDISTUTILS} == "easy_install"
 -RUN_DEPENDS+=		${PYEASYINSTALL_CMD}:${PORTSDIR}/devel/py-setuptools
  
  PYDISTUTILS_BUILD_TARGET?=		bdist_egg
  PYDISTUTILS_INSTALL_TARGET?=	easy_install
 _______________________________________________
 svn-ports-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-ports-all
 To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/186706: commit references a PR
Date: Sun, 16 Feb 2014 14:48:46 +0000 (UTC)

 Author: koobs
 Date: Sun Feb 16 14:48:38 2014
 New Revision: 344576
 URL: http://svnweb.freebsd.org/changeset/ports/344576
 QAT: https://qat.redports.org/buildarchive/r344576/
 
 Log:
   MFH: r344573
   
   Any python package that uses console_scripts in setup.py needs the
   pkg_resources module from setuptools at run time. This generally means
   anything that installs a CLI utility.
   
   Package-only users do not get setuptools installed when they install
   the packages of these ports currently, because USE_PYDISTUTILS=yes doesnt set
   a RUN_DEPENDS on it.
   
   This breaks console script invocation, with the following error:
   
   Traceback (most recent call last):
     File "/usr/local/bin/<script-name>", line 5, in <module>
       from pkg_resources import load_entry_point
   ImportError: No module named pkg_resources
   
   The FreeBSD Python team has recently standardised on a consistent
   installation pattern for all python software, whether pure-distutils or
   setuptools based, and this run-time requirement is currently not being
   satisfied, breaking ports that use that functionality.
   
   This commit moves RUN_DEPENDS+=setuptools from the =easy_install *only*
   case, to the default case. This does mean that py27-setuptools and
   py33-setuptools cannot be installed concurrently, precluding dual stack
   Python installations.
   
   The FreeBSD Python team is working hard towards a future where  multiple
   python and packages versions *can* be installed concurrently, but it is
   not explicitly supported in the current state. Improvements to FreeBSD's
   ports and package frameworks will help achieve that goal.
   
   [1] http://lists.freebsd.org/pipermail/freebsd-python/2014-February/006592.html
   [2] http://lists.freebsd.org/pipermail/freebsd-python/2014-February/006609.html
   
   PR:		ports/186706
   Approved by:	portmgr (miwi)
 
 Modified:
   branches/2014Q1/Mk/bsd.python.mk
 Directory Properties:
   branches/2014Q1/   (props changed)
 
 Modified: branches/2014Q1/Mk/bsd.python.mk
 ==============================================================================
 --- branches/2014Q1/Mk/bsd.python.mk	Sun Feb 16 14:47:47 2014	(r344575)
 +++ branches/2014Q1/Mk/bsd.python.mk	Sun Feb 16 14:48:38 2014	(r344576)
 @@ -423,11 +423,11 @@ PYTHONPREFIX_SITELIBDIR=	${PYTHON_SITELI
  _CURRENTPORT:=	${PKGNAMEPREFIX}${PORTNAME}
  .if defined(USE_PYDISTUTILS) && ${_CURRENTPORT} != ${PYTHON_PKGNAMEPREFIX}setuptools
  BUILD_DEPENDS+=		${PYTHON_PKGNAMEPREFIX}setuptools>0:${PORTSDIR}/devel/py-setuptools
 +RUN_DEPENDS+=		${PYTHON_PKGNAMEPREFIX}setuptools>0:${PORTSDIR}/devel/py-setuptools
  .endif
  
  # setuptools support
  .if defined(USE_PYDISTUTILS) && ${USE_PYDISTUTILS} == "easy_install"
 -RUN_DEPENDS+=		${PYEASYINSTALL_CMD}:${PORTSDIR}/devel/py-setuptools
  
  PYDISTUTILS_BUILD_TARGET?=		bdist_egg
  PYDISTUTILS_INSTALL_TARGET?=	easy_install
 _______________________________________________
 svn-ports-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-ports-all
 To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: open->closed 
State-Changed-By: koobs 
State-Changed-When: Sun Feb 16 14:53:57 UTC 2014 
State-Changed-Why:  
Committed in HEAD and 2014Q1 branch. Thank you for your report Scott! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=186706 
>Unformatted:
