Is Python support for FreeBSD as good as, for example, CentOS / Ubuntu / other Linux accessories?

In the development environment, we use FreeBSD. We are evaluating Python for developing some tools / utilities. I am trying to find out if all / most python packages are available for FreeBSD.

I tried using CentOS / Ubuntu and it was pretty easy to install python as well as packages (using pip). On FreeBSD, this was not so simple, but maybe I am not using the right steps or something is missing.

We have some FreeBSD tools / utilities that run locally, and I want Python to interact with them - hence, FreeBSD.

Any inputs / pointers would be really appreciated.

Charade relationship

+5
source share
2 answers

The assumption that powerful and high-profile existing python tools use many different python packages is almost always fulfilled. We have been using FreeBSD in our company for quite some time, along with many python-based tools (web frameworks, py-supervisor, etc.), and we have never encountered the problem that a particular tool will not work on FreeBSD or not will be available for FREEBSD.

So, to answer your question:

  • Yes, all / most python packages are available on FreeBSD

One warning:

  • The FreeBSD port system is really great and will handle all compatibility and dependency issues. If you use it (you probably should), then you may need to avoid pip. We had a problem in the past when the package manager for ruby ​​did not play very well with the ports database and installed many incompatible gems. It was a temporary problem with rubigems, but we had a real headache. Since then, we have been trying to install everything from ports, and try to avoid third-party package managers such as composer, pip, gems, etc. Often, ports call package managers, but with some additional arguments, so they guarantee that they will not break dependencies.
+2
source

Is Python support for FreeBSD just as good as, for example, for CentOS / Ubuntu / other linux accessories?

This is probably better than other operating systems, but I'm a FreeBSD fanatic.

But! As Freitags says, you don't want to use pip (and gem , I could add). All of these language-specific packaging systems were born out of frustration with various inadequate OS-specific packages.

If the world used BSD, pip (or gem) would be unnecessary.

Why sing this town here? To warn you, you may not find some obscure Python package already ported - even though it is available through pip. Packets of any prominence are carried over (here is the current list ), but something less well-known may not be.

Do not despair - create a port yourself, using any of the existing examples, and the FreeBSD Handbook . This is very easy to do, and if you send it to FreeBSD, it will already be there the next time you need it.

Good luck.

0
source

Source: https://habr.com/ru/post/1243642/


All Articles