R
Railwayβ€’8mo ago
Faolain

What is the latest Python version installed?

Quick question, when a .python-version file is provided and is set to 3.11 what is the version that is installed? Can the patch version be modified or set? For example 3.11.6 or 3.11.5?
Solution:
add
nixpkgsArchive = 'bc2d5988780f02c26daea44016df56a1dc4fb8e2'
nixpkgsArchive = 'bc2d5988780f02c26daea44016df56a1dc4fb8e2'
to the setup phase, untested...
Jump to solution
27 Replies
Percy
Percyβ€’8mo ago
Project ID: N/A
Faolain
Faolainβ€’8mo ago
N/A
Fragly
Fraglyβ€’8mo ago
3.11
Faolain
Faolainβ€’8mo ago
is that 3.11.0?
Fragly
Fraglyβ€’8mo ago
Faolain
Faolainβ€’8mo ago
Indeed I already looked there but appreciate it, I want to know what the patch version installed is and if this can be specified
Fragly
Fraglyβ€’8mo ago
oh my bad, I didn't read your whole question no clue what the patch is, even tried checking commit history on nixpacks and railway
Brody
Brodyβ€’8mo ago
what version of python 3.11 is installed
3.11.4
Can the patch version be modified or set?
there is no straight forward way with nixpacks, but lets try something
Fragly
Fraglyβ€’8mo ago
Brody!! where'd you find that information for future reference
Brody
Brodyβ€’8mo ago
python --version
Fragly
Fraglyβ€’8mo ago
oh wow πŸ’€
Brody
Brodyβ€’8mo ago
what minor version of python 3.11 do you want?
Faolain
Faolainβ€’8mo ago
thinking latest aka 3.11.6 Brody (the reason I mention it is that I think the python interpreter may have a memory leak on an older version so looking to try latest to see if that resolves it)
Brody
Brodyβ€’8mo ago
what version would that be?
Faolain
Faolainβ€’8mo ago
just updated the above text as you were typing haha, 3.11.6
Brody
Brodyβ€’8mo ago
do you have a nixpacks.toml file right now?
Faolain
Faolainβ€’8mo ago
yep
Brody
Brodyβ€’8mo ago
the one from litestar?
Faolain
Faolainβ€’8mo ago
yep
Brody
Brodyβ€’8mo ago
i forget, does it have a setup phase?
Faolain
Faolainβ€’8mo ago
just this
[phases.setup]
nixPkgs = ['...']
[phases.setup]
nixPkgs = ['...']
Brody
Brodyβ€’8mo ago
odd
Solution
Brody
Brodyβ€’8mo ago
add
nixpkgsArchive = 'bc2d5988780f02c26daea44016df56a1dc4fb8e2'
nixpkgsArchive = 'bc2d5988780f02c26daea44016df56a1dc4fb8e2'
to the setup phase, untested
Faolain
Faolainβ€’8mo ago
thanks will try tomorrow as it's late for me, I guess a better question is any idea on the update cycle/how easy this will be in the future?
Brody
Brodyβ€’8mo ago
it wont be easy with nixpacks anytime soon, but railway does know that setting specific versions is a massive pain point and they will look to improve this at some point, but either way, a dockerfile will always be able to get your app on the newest version before nix packages can, on account of the automated image releases a lot of software companies do, in contrast nix packages works on user commits to set up and make available new versions
Faolain
Faolainβ€’8mo ago
really appreciate it as always Brody!
Brody
Brodyβ€’8mo ago
of course!