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

--- Comment #4 from Jan Beich <jbe...@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.
_______________________________________________
freebsd-python@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-python
To unsubscribe, send any mail to "freebsd-python-unsubscr...@freebsd.org"

Reply via email to