Date: Thu, 14 Jul 2016 12:44:29 +0000 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 Message-ID: <bug-205308-21822-OWFjy9xiG3@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-205308-21822@https.bugs.freebsd.org/bugzilla/> References: <bug-205308-21822@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D205308 --- Comment #4 from Jan Beich <jbeich@FreeBSD.org> --- 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.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-205308-21822-OWFjy9xiG3>