Bug 11116 - Buildroot should set PYTHON_EGG_CACHE instead of writing files to ~/.python-eggs
Summary: Buildroot should set PYTHON_EGG_CACHE instead of writing files to ~/.python-eggs
Status: CLOSED INVALID
Alias: None
Product: buildroot
Classification: Unclassified
Component: Other (show other bugs)
Version: 2015.08
Hardware: All Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-06-27 18:36 UTC by Vitaliy Lotorev
Modified: 2018-09-07 19:26 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vitaliy Lotorev 2018-06-27 18:36:57 UTC
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.
Comment 1 Arnout Vandecappelle 2018-07-03 22:24:03 UTC
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?
Comment 2 Vitaliy Lotorev 2018-09-07 19:25:13 UTC
> 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.