Open Hack-Hut opened 5 years ago
my compilation machine has no access to the internet and will not be able to to download the dependencies.
This appears to be the core problem, and I suspect that it has a large audience. The musl part of the description is a bit misleading about what the problem is, IMO.
If I was packaging PyOxidizer for a distro, I would need to pre-fetch all of the resources it needs so that the built package was complete, and able to be tested in an isolated VM without network access.
Also when I create two projects with an identical target platform, the prebuilt cpython tarball is fetched twice, and cached inside of the project, rather than in some common area so that it can be re-used.
I think the request here is for a pre-built distribution of PyOxidizer that can be easily installed. This will come in time.
But I doubt PyOxidizer will ever bundle a full Python distribution with itself: that is something you will need to download from the Internet. Same for all the Rust dependencies. And the Python applications you compile.
Maybe things will change eventually. But supporting machines without Internet connectivity is not a high priority for me because I suspect not many people have that constraint. There are far more important things to work on first.
@indygreg Do you think it'd make sense to have pre-built binaries of PyOxy linked with musl instead of glibc?
I want to run python3.10
scripts on boxes that have very old GLIBC.
I would like to compile a statically linked version of PyOxidizer with musl instead of glibc. I read in your documentation the following.
And that you can build said binary with the following.
I want to be able to do this, but my compilation machine has no access to the internet and will not be able to to download the dependencies. So the following, will not work.
This means that I cannot install PyOxidizer. I would like to pre-compile a version of PyOxidizer on a machine at home with internet with musl so that I can import it into the offline machine.
I have tried the following:
Giving me the following error.
I know that this is probably not an issue with PyOxidizer, but there is a small audience out there that could really use relocatable PyOxidizer binary. I really do think this project is great.