There is PYTHON_EGG_CACHE variable for overriding directory for eggs files. Buildroot should not use $HOME/.python-eggs directory and should set PYTHON_EGG_CACHE internally to be independent on extra directories as less as possible. Existing packages in default $HOME/.python-eggs can influence on build reproducibility. Think of multiple Jenkins jobs building in parallel and using the same $HOME/.python-eggs directory.
If I understand correctly, the problem is not that building a Python package will write something to $HOME/.python-eggs (because as far as I can see, it doesn't), but rather, that packages installed in $HOME/.python-eggs would influence the build result when you run host-python, is that correct?
> If I understand correctly, the problem is not that building a Python package will write something to $HOME/.python-eggs (because as far as I can see, it doesn't), It does on my side, it appears I was using custom python-serial package that used distutils instead of setuptools (which is used in recent Buildroot versions). After switching to stock Buildroot package no writing is done to $HOME/.python-egss directory anymore.