Skip to content

PYTHONUNBUFFERED=1 not used in Dockerfile? #525

Description

@millsks

Comment:

We always try to reference conda-forge code and internal processes when possible. Why reinvent the wheel? 🙂

We noticed the use of PYTHONDONTWRITEBYTECODE, but was curious if PYTHONUNBUFFERED was also looked at, but in the end was not used for whatever reason?

https://github.com/conda-forge/conda-forge-webservices/blobff4eb46a3ae54b28da199869a4027763ee423287c/Dockerfile#L39

If I understand the use of PYTHONUNBUFFERED=1 t will help to get the stdout and stderr in realtime instead of when the predefined buffer fills up? This is generally good in a containerized environment so we are seeing logs in realtime?

https://docs.docker.com/guides/python/containerize/#initialize-docker-assets (can be seen under manual)

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions