From owner-freebsd-python@FreeBSD.ORG Thu Feb 13 08:12:08 2014 Return-Path: Delivered-To: python@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 221A9F80 for ; Thu, 13 Feb 2014 08:12:08 +0000 (UTC) Received: from mail-pa0-x22e.google.com (mail-pa0-x22e.google.com [IPv6:2607:f8b0:400e:c03::22e]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id E470C16D3 for ; Thu, 13 Feb 2014 08:12:07 +0000 (UTC) Received: by mail-pa0-f46.google.com with SMTP id rd3so10385411pab.19 for ; Thu, 13 Feb 2014 00:12:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:reply-to:user-agent:mime-version:to:cc:subject :content-type; bh=cwPXsVJfzrfO52ZA1tHFq02ZnYHXpcKeazcLIqqW1kY=; b=Y6t6iuncRHZxT7IqdQF6DXa+aQaBHcGPJgXJlXkGyYPICpeBbHYzP+ucy0ClDfNNVa bqmOuWrI2bv8KxlhCfL8guW2oyUsr/4GEnQXN01l4+3xAbRoFN2xetzCc7C/9/0YRRcJ gcdsK0XQKs5XFv2754B25M4gh8TS9wwhnn5qdfEQMvmfCUvF0cf0rkjn76Oa7NwVPKdk NKG/XrcbmGjQpPeNmlDUgeACEggt/AmgEz+tPVnwyiBr1OrBFfCl9lgljK1ZqlYqqP1z aAr2biaFfeVAbhUTFc5x4e2O/LvNoUlHiUx7UVxzmXL/g2mXm3CQudUo23MMF2n16ZT0 t0DA== X-Received: by 10.66.121.234 with SMTP id ln10mr302463pab.20.1392279127546; Thu, 13 Feb 2014 00:12:07 -0800 (PST) Received: from [192.168.1.7] (ppp59-167-128-11.static.internode.on.net. [59.167.128.11]) by mx.google.com with ESMTPSA id sy10sm8612380pac.15.2014.02.13.00.12.05 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 13 Feb 2014 00:12:06 -0800 (PST) Message-ID: <52FC7E4E.4020801@FreeBSD.org> Date: Thu, 13 Feb 2014 19:11:58 +1100 From: Kubilay Kocak User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Thunderbird/27.0 MIME-Version: 1.0 To: python@FreeBSD.org Subject: HEADS-UP and RFC - Adding setuptools as default RUN_DEPENDS X-Enigmail-Version: 1.6 Content-Type: multipart/mixed; boundary="------------020707070007010608050805" Cc: Scott Sturdivant X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: koobs@FreeBSD.org List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Feb 2014 08:12:08 -0000 This is a multi-part message in MIME format. --------------020707070007010608050805 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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 --------------020707070007010608050805 Content-Type: text/plain; charset=windows-1252; name="setuptools-is-run-depends-too.diff" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="setuptools-is-run-depends-too.diff" SW5kZXg6IGJzZC5weXRob24ubWsKPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gYnNkLnB5dGhvbi5tawko cmV2aXNpb24gMzQzODIxKQorKysgYnNkLnB5dGhvbi5tawkod29ya2luZyBjb3B5KQpAQCAt NDE0LDExICs0MTQsMTEgQEAKIF9DVVJSRU5UUE9SVDo9CSR7UEtHTkFNRVBSRUZJWH0ke1BP UlROQU1FfQogLmlmIGRlZmluZWQoVVNFX1BZRElTVFVUSUxTKSAmJiAke19DVVJSRU5UUE9S VH0gIT0gJHtQWVRIT05fUEtHTkFNRVBSRUZJWH1zZXR1cHRvb2xzCiBCVUlMRF9ERVBFTkRT Kz0JCSR7UFlUSE9OX1BLR05BTUVQUkVGSVh9c2V0dXB0b29scz4wOiR7UE9SVFNESVJ9L2Rl dmVsL3B5LXNldHVwdG9vbHMKK1JVTl9ERVBFTkRTKz0JCSR7UFlUSE9OX1BLR05BTUVQUkVG SVh9c2V0dXB0b29scz4wOiR7UE9SVFNESVJ9L2RldmVsL3B5LXNldHVwdG9vbHMKIC5lbmRp ZgogCiAjIHNldHVwdG9vbHMgc3VwcG9ydAogLmlmIGRlZmluZWQoVVNFX1BZRElTVFVUSUxT KSAmJiAke1VTRV9QWURJU1RVVElMU30gPT0gImVhc3lfaW5zdGFsbCIKLVJVTl9ERVBFTkRT Kz0JCSR7UFlFQVNZSU5TVEFMTF9DTUR9OiR7UE9SVFNESVJ9L2RldmVsL3B5LXNldHVwdG9v bHMKIAogUFlESVNUVVRJTFNfQlVJTERfVEFSR0VUPz0JCWJkaXN0X2VnZwogUFlESVNUVVRJ TFNfSU5TVEFMTF9UQVJHRVQ/PQllYXN5X2luc3RhbGwK --------------020707070007010608050805--