Git Product home page Git Product logo

Comments (3)

kayhayen avatar kayhayen commented on June 17, 2024

Fedora Python (CentOS/RHEL Python) is among the worst offenders of using system dependencies that make it less portable. Compiling Python yourself will be much better also for portability. I have only really looked at Debian Python to be more minimal, but things are relatively not good there too.

As building on latest Linux is not recommended for many reasons, not the least being that the Python library is not going to like older systems a lot. You are spot on with using CentOS 7. In Nuitka commercial I have a tool to build inside an old container with optimized Python so it works on old systems too: https://nuitka.net/doc/commercial.html which does this automatically. Currently as a benefit, this also works for 3.11 as well.

This is still not described in the commercial docs, but I will add it in the coming months, also Nuitka will gain a CentOS 8 container to use with similar traits, in which you compile transparently too, but I might have to wait for 3.12 support to be solved before actually going there. Then a tier of acceptable portability will be available for everyone, and obviously, hello world will then not use too many system libraries.

from nuitka.

dkdirekt avatar dkdirekt commented on June 17, 2024

Mhh okay, I was using Centos 7 because he has libc 2.17 version so which is a good thing compared to portability. But If you recommend Debian I'll try on Debian, like Debian 9.

Thank's

from nuitka.

kayhayen avatar kayhayen commented on June 17, 2024

I don't actually recommend Debian at all, I just said, it's the only thing I looked at for minimizing DLL intake on. I recommend self built Python in the proper way. However, that way is not really documented at this time publicly. You just need to do it on older OS for libc portability indeed. I found CentOS 7 to be a good platform for that, and expect CentOS 8 to also be one. But old Debian will of course do too. It's just important to use a virtualenv in there and no system packages.

from nuitka.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.