From owner-freebsd-python@freebsd.org Thu Jul 14 12:44:29 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 D7636B980A9 for ; Thu, 14 Jul 2016 12:44:29 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id C086A11B8 for ; Thu, 14 Jul 2016 12:44:29 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id BFDC0B980A8; Thu, 14 Jul 2016 12:44:29 +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 BF7C9B980A7 for ; Thu, 14 Jul 2016 12:44:29 +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 949EF11B5 for ; Thu, 14 Jul 2016 12:44:29 +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 u6ECiTMA016480 for ; Thu, 14 Jul 2016 12:44:29 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 12:44:29 +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: jbeich@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 12:44:29 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D205308 --- Comment #4 from Jan Beich --- During build Servo installs a few python 2.x modules via virtualenv. Not knowing which version suffix is used by the distribution it tries to figure= it out using PATH. However, the build breaks as virtualenv activation leaks sy= stem pip through PATH. This worked fine before ports r390183 and I don't think S= ervo logic is wrong. # Possible names of executables, sorted from most to least specific PYTHON_NAMES =3D ["python-2.7", "python2.7", "python2", "python"] VIRTUALENV_NAMES =3D ["virtualenv-2.7", "virtualenv2.7", "virtualenv2", "virtualenv"] PIP_NAMES =3D ["pip-2.7", "pip2.7", "pip2", "pip"] https://github.com/servo/servo/blob/master/python/mach_bootstrap.py As pip bundled in virtualenv doesn't support pip-X.Y variant the following patch has no effect. The issue has to be fixed in devel/py-pip. --- pip/wheel.py 2016-01-21 23:48:28 UTC +++ pip/wheel.py @@ -465,6 +465,9 @@ if __name__ =3D=3D '__main__': spec =3D 'pip%s =3D %s' % (sys.version[:3], pip_script) generated.extend(maker.make(spec)) + # Also shadow pip-X.Y variant used by FreeBSD package + spec =3D 'pip-%s =3D %s' % (sys.version[:3], pip_script) + generated.extend(maker.make(spec)) # Delete any other versioned pip entry points pip_ep =3D [k for k in console if re.match(r'pip(\d(\.\d)?)?$', = k)] --=20 You are receiving this mail because: You are on the CC list for the bug. You are the assignee for the bug.=