python-build-standalone
python-build-standalone copied to clipboard
`PYTHON.json` inconsistent when building for armv7-unknown-linux-gnueabihf
When building a python distribution for target armv7-unknown-linux-gnueabihf, the resulting file PYTHON.json contains several information indicating it was build for x86_64-unknown-linux-gnu.
How to reproduce:
git clone https://github.com/indygreg/python-build-standalone.git
cd python-build-standalone
./build-linux.py --target armv7-unknown-linux-gnueabihf
The resulting PYTHON.json contains the following:
{
"build_info": {
"core": {
"static_lib": "install/lib/python3.10/config-3.10-x86_64-linux-gnu/libpython3.10.a"
}
},
"python_config_vars": {
"BUILD_GNU_TYPE": "x86_64-unknown-linux-gnu",
"CONFIG_ARGS": "'--build=x86_64-unknown-linux-gnu' '--host=armv7-unknown-linux-gnueabihf' '--prefix=/install' '--with-openssl=/tools/deps' '--with-system-expat' '--with-system-libmpdec' '--without-ensurepip' '--with-readline=editline' '--enable-shared' '--with-dbmliborder=bdb' 'ac_cv_buggy_getaddrinfo=no' 'ac_cv_file__dev_ptc=no' 'ac_cv_file__dev_ptmx=no' 'build_alias=x86_64-unknown-linux-gnu' 'host_alias=armv7-unknown-linux-gnueabihf' 'CC=/usr/bin/arm-linux-gnueabihf-gcc' 'CFLAGS= -fPIC -I/tools/deps/include -I/tools/deps/include/ncursesw -I/tools/deps/libedit/include' 'LDFLAGS= -L/tools/deps/lib -Wl,--exclude-libs,ALL -L/tools/deps/libedit/lib' 'CPPFLAGS= -fPIC -I/tools/deps/include -I/tools/deps/include/ncursesw -I/tools/deps/libedit/include'",
},
}
I don't know whether this is a purely cosmetical or an actual issue, but it might be related to this question.