anaconda-mode icon indicating copy to clipboard operation
anaconda-mode copied to clipboard

python: remove implicit pip dependency

Open fortaa opened this issue 3 years ago • 2 comments

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

Bug: #421

fortaa avatar Aug 28 '22 10:08 fortaa

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.

CeleritasCelery avatar Sep 04 '22 03:09 CeleritasCelery

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

fortaa avatar Sep 05 '22 15:09 fortaa