How to set Python minor version?

a year ago

I set NIXPACKS_PYTHON_VERSION to 3.13.5 but it's still using 3.13.0. Is there a way to specify minor version?

Solved$10 Bounty

15 Replies

a year ago

02488d6b-8c14-4f63-a855-4a12942f0aef


nikhilraj6692
FREE

a year ago

do you have a dockerfile


a year ago

Hey, can you try switching the builder to Railpack and set the Python version using one of the ways outlined in the Railpack docs: https://railpack.com/languages/python#versions?


a year ago

  • Use major.minor only In Railway Variables set:
NIXPACKS_PYTHON_VERSION=3.13  

Redeploy and you’ll get the latest 3.13.x (that’s why 3.13.0 fell back).

  • If you really need 3.13.5 Switch to a tiny Dockerfile instead of Nixpacks:
FROM python:3.13.5-slim  
WORKDIR /app  
COPY requirements.txt .  
RUN pip install -r requirements.txt  
COPY . .  
CMD ["gunicorn", "myproject.wsgi:application", "--bind", "0.0.0.0:8000"]  

8 months ago

It doesn't support minor version. Switched to Docker instead.


Status changed to Open brody 8 months ago


Status changed to Solved tooru 8 months ago


irazvan2745
FREE

8 months ago

switch to railpack


8 months ago

I got tired of Railway deprecating every new build system, so I just switched to Docker


8 months ago

That's the first time Railway deprecates a build system


8 months ago

Heroku


8 months ago

Oh, the Heroku build system, forgot about that, then yeah I'm in the wrong here then.


irazvan2745
FREE

8 months ago

When?


irazvan2745
FREE

8 months ago

When did it get removed


8 months ago

somewhere between 2022-2023


irazvan2745
FREE

8 months ago

<:skul:1338966459358904320> <:skul:1338966459358904320>


irazvan2745
FREE

8 months ago

Lmao


Welcome!

Sign in to your Railway account to join the conversation.

Loading...