[issue1322] platform.dist() has unpredictable result under Linux

2007-10-24 Thread Yann Cointepas
New submission from Yann Cointepas: The distribution name returned by platform.dist() depends on the order of os.path.listdir( '/etc' ). It selects the first file matching the regex r'(\w+)[-_](release|version)' and takes part of the file name (i.e. matchResult.groups()[0])

[issue1322] platform.dist() has unpredictable result under Linux

2007-10-25 Thread Yann Cointepas
Yann Cointepas added the comment: I can easily do the patch to ignore symlinks and /etc/lsb-release but I am not sure of the appropriate way to look for lsb_update command, is distutils.spawn.find_executable( 'lsb_release' ) ok ? If you need the patch earlier than begining of next

[issue1322] platform.dist() has unpredictable result under Linux

2007-10-26 Thread Yann Cointepas
Yann Cointepas added the comment: I am writing a patch but I have a few questions: 1) There are at most three places where the distribution name can be found. What is the priority order to select only one name ? The three places are: a) Inside the /etc/lsb-release file b) In the name of the