From owner-freebsd-python@FreeBSD.ORG Thu Feb 13 13:45:46 2014 Return-Path: Delivered-To: python@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 3DED1E25; Thu, 13 Feb 2014 13:45:46 +0000 (UTC) Received: from forward4l.mail.yandex.net (forward4l.mail.yandex.net [IPv6:2a02:6b8:0:1819::4]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id EB09C1580; Thu, 13 Feb 2014 13:45:45 +0000 (UTC) Received: from smtp2h.mail.yandex.net (smtp2h.mail.yandex.net [84.201.187.145]) by forward4l.mail.yandex.net (Yandex) with ESMTP id 5D3C61440E2A; Thu, 13 Feb 2014 17:45:42 +0400 (MSK) Received: from smtp2h.mail.yandex.net (localhost [127.0.0.1]) by smtp2h.mail.yandex.net (Yandex) with ESMTP id CD7F51703AD0; Thu, 13 Feb 2014 17:45:41 +0400 (MSK) Received: from unknown (unknown [178.76.234.16]) by smtp2h.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id 3UdUsAcbI1-jfOKIa46; Thu, 13 Feb 2014 17:45:41 +0400 (using TLSv1 with cipher AES128-SHA (128/128 bits)) (Client certificate not present) X-Yandex-Uniq: 4b92b9de-1b7e-4be2-97e9-c833095c56f8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1392299141; bh=hrGcli6QARlYLmNCWY+Wo5i4Kw5rx3of2rabWtABi3c=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject: References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=oxnR/JoIz9hBRSFea+OFrU62VU3yW6XQbOAFte8p1+6g2ZHqVnYX2mS8N0WNT0s+J 4VseRSE+F0FW7K7j3+I154YfyprEcr3biiMm4fucESut+wKJZJVXZq4hkKLcMcnzFl W23I+ExovqovNBnzst0Jhgy0Sxn81E5GwwpoF+m4= Authentication-Results: smtp2h.mail.yandex.net; dkim=pass header.i=@yandex.ru Message-ID: <52FCCC5C.6050804@yandex.ru> Date: Thu, 13 Feb 2014 17:45:00 +0400 From: Ruslan Makhmatkhanov User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: koobs@FreeBSD.org, python@FreeBSD.org Subject: Re: HEADS-UP and RFC - Adding setuptools as default RUN_DEPENDS References: <52FC7E4E.4020801@FreeBSD.org> In-Reply-To: <52FC7E4E.4020801@FreeBSD.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Scott Sturdivant X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Feb 2014 13:45:46 -0000 Kubilay Kocak wrote on 13.02.2014 12:11: > Two days ago I updated virtualenv, transitioning it away from the > deprecated USE_PYDISTUTILS=easy_install to USE_PYDISTUTILS=yes as many > other ports have recently. > > I thought nothing of it until the following report by Scott (cc'd): > > http://lists.freebsd.org/pipermail/freebsd-python/2014-February/006592.html > > The summary of that thread is: > > a) Any python software that uses *console_scripts* needs the > pkg_resources module from setuptools at run time. This basically means > anything that installs a CLI utility. > > b) Package-only users don't get setuptools installed when they install > the packages of the above ports, because =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/", line 5, in > from pkg_resources import load_entry_point > ImportError: No module named pkg_resources > > Reproduction steps are: > > 1) Install port or package that uses console_scripts > 2) If you installed the package, run the console script > 3) If you installed the port > 3.1) Run the console script > 3.2) Remove py-setuptools > 3.3) Run the console script again > > Reproduced with: py-virtualenv (`virtualenv`), py-tox (`tox`) and > py-nose (`nosetests`) > > We (python@) have now standardised on a consistent installation pattern > for all python software, whether pure-distutils or setuptools based, and > there are run-time requirements that are currently not being satisfied. > > Attached is a patch moving RUN_DEPENDS+=setuptools from the > =easy_install only case, to the default case. > > Patch review requested, other comments welcome. > > ./koobs Speaking of myself, things are ok with this change. -- Regards, Ruslan T.O.S. Of Reality