sergiocorreia / panflute

An Pythonic alternative to John MacFarlane's pandocfilters, with extra helper functions
http://scorreia.com/software/panflute/
BSD 3-Clause "New" or "Revised" License
500 stars 59 forks source link

Installing globally on Ubuntu #235

Open twsh opened 1 year ago

twsh commented 1 year ago

Using the latest version of Ubuntu, installing packages globally with pip is discouraged. Some packages are available using apt. Would it be possible for panflute to be made available in this way?

mfhepp commented 1 year ago

I know that some Linux admins prefer installing Python packages via apt, but IMHO and from a Python perspective, this is not a very good approach, because it means that it will become a nightmare running multiple Python applications that have (or will have) conflicts in their dependencies.

I would recommend using either

a) virtual environments (e.g. via virtualenv or conda) or b) putting everything for the application into a single Docker container and installing all Python modules only therein, either by apt, pip, or conda.

Installing Python dependencies into your base systems is calling for trouble, unless you are doing a fresh start for a small, dedicated system. Option b) would be my preferred choice.

PS: Here is a page that may be helpful: https://www.makeuseof.com/create-python-virtual-environment-on-ubuntu/

twsh commented 1 year ago

Thanks. That's very reasonable. I do find that for my use of panflute, to make a filter which I use to process my own documents, a virtual environment is an annoying extra step.

On Fri, 11 Aug 2023, at 17:01, Martin Hepp wrote:

I now that some Linux admins prefer installing Python packages via apt, but IMHO and from a Python perspective, this is not a very good approach, because it means that it is a nightmare running multiple Python applications that have conflicts in their dependencies.

I would recommend using either

a) virtual environments (e.g. via virtualenv or conda) or b) putting everything for the application into a single Docker container and installing all Python modules only therein, either by apt, pip, or conda.

Installing Python dependencies into your base systems is calling for trouble, unless you are doing a fresh start for a small, dedicated system.

— Reply to this email directly, view it on GitHub https://github.com/sergiocorreia/panflute/issues/235#issuecomment-1674931257, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABI745IRT4BLN7GSPS6MPLXUZCLTANCNFSM6AAAAAA3M2RBVY. You are receiving this because you authored the thread.Message ID: @.***>