-
-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add: python cosmopolitan #31
Comments
Packaging all of python seems a bit overkill, but it's a simple approach. Problem is, I can't get any cosmopolitan binaries to run anymore. For example, getting the most recent wget https://github.com/ahgamut/superconfigure/releases/download/z0.0.49/datasette.zip
chmod +x datasette.zip
./datasette.zip -V
# => invalid file (bad magic number): Exec format error |
Submitted an issue: ahgamut/superconfigure#50 |
So it turns out that the APE is inside the first level of zip file.
|
wget -O ds https://cosmo.zip/pub/cosmos/bin/python
chmod +x ds # make executable
mkdir -p Lib/site-packages # create structure
cp ../src/ds Lib/site-packages # copy to structure
zip -qr ./ds ./Lib # added |
wget -N https://github.com/metaist/ds/releases/latest/download/ds
chmod +x ds
sudo install ds /usr/bin |
This seems to work. Now the trick is to prune the file size down a bit. I wonder how much of python I actually need. Maybe I could do some analysis of all the python modules I use and their full set of dependencies. Or I could start with some low-hanging fruit: probably don't need |
Something to consider for a truly download-run-anywhere solution.
The text was updated successfully, but these errors were encountered: