Comments (3)
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.
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.
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)
- One-file .exe can't run on server (network path) with "--disable-console". HOT 7
- How to obtain the directory where the executable file is located HOT 3
- I encountered a problem with file overwriting when using LTO=yes HOT 8
- The exe file is not copied for the command --include-data-dir HOT 2
- TypeError NoneType when importing PySide6 background worker, but working when merged into main script HOT 6
- PkgResourcesPlugin.py not support python3.8?? HOT 5
- Getting stuck at yt_dlp.extractor.lazy_extrac HOT 4
- Blender bpy package compiles but does not run HOT 6
- NameError when case/match dictionaries HOT 6
- Bug: No response with numpy 1.26.4, python 3.12.3, nuitka 2.3rc5 and `--standalone` HOT 2
- pyperf support HOT 3
- Working with setuptools 70.0.0 HOT 1
- crash in onefile.py: assert not os.path.exists(source_dir) HOT 5
- Why is Nuitka sometimes running slower (or not faster) than uncompiled python? HOT 9
- Hyperspy dynamic import fails when packaging an application that contains hyperspy HOT 7
- Actions: Onefile description mismatches default, needs to be easier to specify modes HOT 5
- spacy dependencies failure HOT 1
- How to customize the cached directory HOT 1
- Python 3.12 test failures due to assertions HOT 5
- Failure to delete onefile build folders on Windows HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nuitka.