Skip site navigation (1)Skip section navigation (2)
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/>

index | next in thread | previous in thread | raw e-mail

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=205308

--- 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 system
pip through PATH. This worked fine before ports r390183 and I don't think Servo
logic is wrong.

  # Possible names of executables, sorted from most to least specific
  PYTHON_NAMES = ["python-2.7", "python2.7", "python2", "python"]
  VIRTUALENV_NAMES = ["virtualenv-2.7", "virtualenv2.7", "virtualenv2",
"virtualenv"]
  PIP_NAMES = ["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__ == '__main__':

           spec = 'pip%s = %s' % (sys.version[:3], pip_script)
           generated.extend(maker.make(spec))
  +        # Also shadow pip-X.Y variant used by FreeBSD package
  +        spec = 'pip-%s = %s' % (sys.version[:3], pip_script)
  +        generated.extend(maker.make(spec))
           # Delete any other versioned pip entry points
           pip_ep = [k for k in console if re.match(r'pip(\d(\.\d)?)?$', k)]

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.

help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-205308-21822-OWFjy9xiG3>