pythonic-emacs / anaconda-mode

Code navigation, documentation lookup and completion for Python.
GNU General Public License v3.0
706 stars 87 forks source link

python: remove implicit pip dependency #422

Open fortaa opened 1 year ago

fortaa commented 1 year ago

Rely on the standard libraries instead in order to install dependencies.

Bug: #421

CeleritasCelery commented 1 year ago

Can you explain more what you are doing here? it looks like you are just running pip in a virtual environment. I don't quite understand how that fixes #421.

fortaa commented 1 year ago

Troy Hinckley @.***> writes:

Can you explain more what you are doing here? it looks like you are just running pip in a virtual environment. I don't quite understand how that fixes

421.

Indeed invoking pip inside a virtual environment is not that interesting. However by a mere creation of the latter the bootstraping code of the installer module is activated [0]. Hence it is not necessary to have this module in the search path of Python runtime that executes anaconda-mode.py.

The main beneficiaries of this change are users of Linux distributions, whose maintainers decided not to ship pip as an integral component of a distribution-specific Python package.

[0] https://docs.python.org/3/library/ensurepip.html