This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients neologix, pitrou, vstinner
Date 2011-06-13.14:50:07
SpamBayes Score 0.0017670371
Marked as misclassified No
Message-id <1307976608.63.0.104925996769.issue12326@psf.upfronthosting.co.za>
In-reply-to
Content
sys.platform comes from Py_GetPlatform() which comes from PLATFORM define. On Linux, this define comes from Makefile: MACHDEP variable which comes from configure. Finally, MACHDEP is defined by:

	ac_sys_system=`uname -s`
	if test "$ac_sys_system" = "AIX" \
	-o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
		ac_sys_release=`uname -v`
	else
		ac_sys_release=`uname -r`
	fi
	ac_md_system=`echo $ac_sys_system |
			   tr -d '/ ' | tr '[A-Z]' '[a-z]'`
	ac_md_release=`echo $ac_sys_release |
			   tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'`
	MACHDEP="$ac_md_system$ac_md_release"
History
Date User Action Args
2011-06-13 14:50:08vstinnersetrecipients: + vstinner, pitrou, neologix
2011-06-13 14:50:08vstinnersetmessageid: <1307976608.63.0.104925996769.issue12326@psf.upfronthosting.co.za>
2011-06-13 14:50:08vstinnerlinkissue12326 messages
2011-06-13 14:50:07vstinnercreate