Catalyst Python script pipelines are generating pyc files

Hi,

Using ParaView master as of April 24, 2020, it seems as if Catalyst is again generating .pyc files for the Catalyst Python scripts during simulation runs. I’m fairly certain that we intentionally prevented this from happening previously so I’m wondering if this was a conscious decision or not, or if this is just my memory playing tricks on me. I can disable this behavior by setting the PYTHONDONTWRITEBYTECODE environment variable to 1 but I think that this should be the default behavior as others have found that when running at scale and having many MPI processes trying to do simultaneously create the .pyc file can cause some serious file IO issues at startup. Note that I’m linking with Python 2.7, if that matters.

Thoughts?

Thanks,
Andy

@utkarsh.ayachit

I don’t think this has changed. Makes sense to add such a mode to avoid generation of pyc for Catalyst.

Ok, I wrote code to do that and here’s the MR. I would just do it instead of having it be a mode though.