How to set Python minor version?

8 months ago

I set NIXPACKSPYTHONVERSION 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

8 months ago

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


nikhilraj6692
FREE

8 months ago

do you have a dockerfile


8 months 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?


8 months 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"]

4 months ago

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


Status changed to Open brody 4 months ago


Status changed to Solved tooru 4 months ago


irazvan2745
FREE

4 months ago

switch to railpack


4 months ago

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


4 months ago

That's the first time Railway deprecates a build system


4 months ago

Heroku


4 months ago

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


irazvan2745
FREE

4 months ago

When?


irazvan2745
FREE

4 months ago

When did it get removed


4 months ago

somewhere between 2022-2023


irazvan2745
FREE

4 months ago

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


irazvan2745
FREE

4 months ago

Lmao


Loading...