diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-08-20 21:39:26 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-08-20 21:39:26 (GMT) |
commit | ff3d9399fc79b64b23b60ac9a11fa9009e6333e7 (patch) | |
tree | 81be108c70c19a0f4cab93131f74d19674e17eed /Lib/plat-linux/regen | |
parent | 87f58d828a4bd0cb2fcea4fd9e9c51e615878d1f (diff) | |
download | cpython-ff3d9399fc79b64b23b60ac9a11fa9009e6333e7.zip cpython-ff3d9399fc79b64b23b60ac9a11fa9009e6333e7.tar.gz cpython-ff3d9399fc79b64b23b60ac9a11fa9009e6333e7.tar.bz2 |
Close #12326: sys.platform is now always 'linux' on Linux
On Linux, sys.platform doesn't contain the major version anymore. It is now
always 'linux', instead of 'linux2' or 'linux3' depending on the Linux version
used to build Python.
Diffstat (limited to 'Lib/plat-linux/regen')
-rwxr-xr-x | Lib/plat-linux/regen | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Lib/plat-linux/regen b/Lib/plat-linux/regen new file mode 100755 index 0000000..c76950e --- /dev/null +++ b/Lib/plat-linux/regen @@ -0,0 +1,8 @@ +#! /bin/sh +case `uname` in +Linux*) ;; +*) echo Probably not on a Linux system 1>&2 + exit 1;; +esac +set -v +h2py -i '(u_long)' /usr/include/sys/types.h /usr/include/netinet/in.h /usr/include/dlfcn.h |