full-author-61014
02/12/2024, 11:02 AMpyoxidizer which only supports Python up to Python 3.10 which means I am unable to move on to Python 3.11 or 3.12. That's the only reason I need multiple Python resolves in our monorepo. This introduces complexity and it affects also other parts of my toolchain.
There is an issue https://github.com/indygreg/PyOxidizer/issues/716 by @bitter-ability-32190 that is open since August 2023, but the mentioned PR is unmerged. The last commit to main in https://github.com/indygreg/PyOxidizer is more than a year ago and the last pyoxidizer release was on Dec 30, 2022 (v0.24). While I greatly appreciate any efforts that people put into open source projects (especially in their free time), I'm interested whether someone has insights into the maintenance status of pyoxidizer.wide-midnight-78598
02/12/2024, 1:10 PMpyoxidizer specifically, but if you're looking for something to sorta package up a Python with your code - you could also investigate https://github.com/indygreg/python-build-standalone
We use it in Pants, and you can build `scie`s with it as well (PBS + PEX + a bit of code to put the two into a zip, unpackage it all, and run it) - https://github.com/a-scie
This is how scie-pants (https://github.com/pantsbuild/scie-pants) works under the hood basicallywide-midnight-78598
02/12/2024, 1:10 PMfull-author-61014
02/12/2024, 1:40 PMfull-author-61014
02/12/2024, 1:45 PMwide-midnight-78598
02/12/2024, 1:47 PMwide-midnight-78598
02/12/2024, 1:49 PMscie approach is what i use outside of dockerized solutions - it unpacks everything on first run (using basically the same commands)
[[lift.files]]
name = ":apigateway-pex"
[[lift.commands]]
exe = "{scie.bindings.venv}/venv/bin/uvicorn"
args = ["apigateway.main:app", "--port", "7999"]
description = "The FastAPI executable."
[[lift.commands]]
name = "seed"
exe = "#{cpython:python}"
args = ["{:apigateway-pex}", "-m", "seeder.main"]
description = "The command to create a sqlite database from multiple input files"
[[lift.bindings]]
name = "venv"
description = "Installs the APIGateway into a venv and pre-compiles .pyc"
exe = "#{cpython:python}"
args = [
"{:apigateway-pex}",
"venv",
"--bin-path",
"prepend",
"--compile",
"--rm",
"all",
"{scie.bindings}/venv",
]bitter-ability-32190
02/12/2024, 1:49 PMfull-author-61014
02/12/2024, 2:02 PMwide-midnight-78598
02/12/2024, 2:04 PMscie plugin here: https://github.com/sureshjoshi/pants-plugins/tree/main/pants-plugins/experimental/scie
I haven't touched it in a while, but it's what I am using in a few other projects. I have time allocated in March to ... better-ify it, so it's more generic for (e.g. multiple pexes)bitter-ability-32190
02/12/2024, 2:05 PMwide-midnight-78598
02/12/2024, 2:08 PMbitter-ability-32190
02/12/2024, 2:10 PMwide-midnight-78598
02/12/2024, 2:10 PMfull-author-61014
02/12/2024, 2:11 PMscie also work on Windows?wide-midnight-78598
02/12/2024, 2:12 PMfull-author-61014
02/12/2024, 2:16 PMwide-midnight-78598
02/12/2024, 2:17 PMfull-author-61014
02/12/2024, 2:22 PMbitter-ability-32190
02/12/2024, 2:23 PMwide-midnight-78598
02/12/2024, 3:09 PMwide-midnight-78598
02/12/2024, 3:19 PMwide-midnight-78598
02/12/2024, 3:21 PMcppfront and some of the "typescript for C++" style ideas, but man - solve the whole problem (<--- hyper trivializing a very hard problem here). Dev experience is what helps with uptick.
Bahh
/ranthappy-kitchen-89482
02/12/2024, 4:18 PMwide-midnight-78598
02/12/2024, 4:19 PMscie with Python pexes on Windows?wide-midnight-78598
02/12/2024, 4:22 PMfull-author-61014
02/12/2024, 4:23 PMfull-author-61014
02/12/2024, 4:24 PMwide-midnight-78598
02/12/2024, 4:40 PMwide-midnight-78598
02/12/2024, 4:42 PMscie stuff and see if it could work for you. Unfortunately, I abandoned Windows development a long time ago. I still have some colleagues who insist on it, but end up using WSL - so I've never really had need to find a fully cross-platform, all-in solutionwide-midnight-78598
02/12/2024, 4:43 PMshiv or something? And then run that in a scie?wide-midnight-78598
02/12/2024, 4:49 PMfull-author-61014
02/13/2024, 10:07 AMfull-author-61014
02/13/2024, 10:10 AMwide-midnight-78598
02/13/2024, 1:20 PM