From owner-freebsd-python@freebsd.org Thu Jul 14 10:52:44 2016 Return-Path: Delivered-To: freebsd-python@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A7065B990E8 for ; Thu, 14 Jul 2016 10:52:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 8FCF217AD for ; Thu, 14 Jul 2016 10:52:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 8EFD7B990E7; Thu, 14 Jul 2016 10:52:44 +0000 (UTC) Delivered-To: python@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8EA02B990E6 for ; Thu, 14 Jul 2016 10:52:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7D7A217AC for ; Thu, 14 Jul 2016 10:52:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u6EAqiYj076930 for ; Thu, 14 Jul 2016 10:52:44 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: python@FreeBSD.org Subject: [Bug 205308] devel/py-pip and devel/py-virtualenv don't aggree on version suffix Date: Thu, 14 Jul 2016 10:52:44 +0000 X-Bugzilla-Reason: CC AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: needs-qa, regression X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: koobs@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: python@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? merge-quarterly? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Jul 2016 10:52:44 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D205308 --- Comment #3 from Kubilay Kocak --- (In reply to Jan Beich from comment #2) I didn't run through the steps, I was asking with hat @triage not @python, apologies for not being less ambiguous. A few notes: The prefixes/suffixes set in python.mk are intended to standardize script filenames for all python ports, which is the reason it's not override'able. The pip* scripts provided by devel/py-pip, when invoked (either by the user= , or by blessings in this case), attempt to install the packages in the system site-packages location, which requires root. This is the reason for the permission denied error message. Using pip to manage system site-packages is not supported, as per the devel/py-pip pkg-message. virtualenv (the project) vendors (bundes) setuptools, pip & wheel packages,= and installs those versions when creating new environments. The devel/py-virtua= lenv port does not unbundle them. Once a virtualenv has been created, using the pip that's installed in the virtualenv, correctly installs the desired packages: (_virtualenv) [user@CURRENT-amd64:/usr/home/user/test/python/_virtualenv/bi= n] pip install blessings pip install blessings Collecting blessings Using cached blessings-1.6.tar.gz Building wheels for collected packages: blessings Running setup.py bdist_wheel for blessings ... done Stored in directory: /home/koobs/.cache/pip/wheels/a5/7c/ba/e52b14bbd1b8cdeeb0771b03e1cca9b9d438= c6e0054144a508 Successfully built blessings Installing collected packages: blessings Successfully installed blessings-1.6 You are using pip version 8.0.0, however version 8.1.2 is available. You should consider upgrading via the 'pip install --upgrade pip' command. This also works outside of _virtualenv/bin as virtualenv modifies the PATH = to pick up the scripts from the virtualenv that has been activated, before sys= tem scripts. (_virtualenv) [user@CURRENT-amd64:/usr/home/user/test] pip install requests Collecting requests Downloading requests-2.10.0-py2.py3-none-any.whl (506kB) 100% |=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88= =E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2= =96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96= =88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88= | 507kB 224kB/s Installing collected packages: requests Successfully installed requests-2.10.0 You are using pip version 8.0.0, however version 8.1.2 is available. You should consider upgrading via the 'pip install --upgrade pip' command. While one can acknowledge devel/pip does not use the default script names, = it's not yet clear how blessings finding pip-x.y before others implies that devel/py-pip should change them, given it appears blessings would find=20 "pip2.7", "pip2", "pip" from the system after the change anyway, resulting = in the same permission denied error (as expected), or why virtualenv must foll= ow the same naming as pip, given it bundles and uses its own copies of pip. Lastly, its possible, though in this case I'm not necessarily advocating fo= r, a port to use USES=3Duniquefiles directly, rather than python.mk's 'concurren= t' feature. This is the reason uniquefiles was created separately, to allow for any ports (instead of just python ones) to use it. --=20 You are receiving this mail because: You are on the CC list for the bug. You are the assignee for the bug.=