pypa / pip

The Python package installer
https://pip.pypa.io/
MIT License
9.55k stars 3.04k forks source link

Which bootstrap.py should be the "canonical/official"? #2887

Closed idgserpro closed 9 years ago

idgserpro commented 9 years ago

I don't know if this is the correct repository to ask for this, but here it goes (after searching for bootstrap in pypa I think it fits here).

We have right now pypa bootstrap.py, and a bootstrap.py inside buildout, and least as I'm writing this down they're different.

91c91,95
<             sys.path[:] = [x for x in sys.path if sitepackage_path not in x]

---
>             # Strip all site-packages directories from sys.path that
>             # are not sys.prefix; this is because on Windows
>             # sys.prefix is a site-package directory.
>             if sitepackage_path != sys.prefix:
>                 sys.path[:] = [x for x in sys.path if sitepackage_path not in x]

I know buildout is a completely different beast from pip repository, but this situation brings too much confusion to a beginner when trying to search for the bootstrap.py file.

How is the lifecycle management of pypa's bootstrap.py? Which of these both bootstrap's should be always the most recent one?

dstufft commented 9 years ago

You probably want to ask this question in bootstrap's repo at https://github.com/buildout/buildout, we're just hosting their bootstrap file so they don't have to deal with TLS and CDN and such.

idgserpro commented 9 years ago

But who decides when it's time to update it in https://bootstrap.pypa.io/bootstrap-buildout.py? Who decided to host it in https://bootstrap.pypa.io, both pypa and buildout folks? Why not just use https://raw.githubusercontent.com/buildout/buildout/master/bootstrap/bootstrap.py? Having these answers, I can ask a more focused question to https://github.com/buildout/buildout.

I think I should have asked for "real bootstrap.py lifecycle in https://bootstrap.pypa.io/"...

idgserpro commented 9 years ago

Related: https://github.com/buildout/buildout/issues/86

dstufft commented 9 years ago

It depends on the project, bootstrap.pypa.io just pulls from whatever source each project picked. It's preferred over Github or whatever because it's host independent and it's behind a CDN. If a project ever moves off Github the github link will break but bootstrap.pypa.io won't.

idgserpro commented 9 years ago

Thank you @dstufft. We will keep the discussion at https://github.com/buildout/buildout/issues/86.