astral-sh / astral-sh/python-build-standalone

`PYTHON.json` inconsistent when building for armv7-unknown-linux-gnueabihf

Offen
#167 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Python
Sterne
4.4k
Forks
314
Ø Merge
1 T. 9 Std.
Gemergte PRs (30 T.)
27

Beschreibung

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:
```json
{
"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](https://github.com/indygreg/PyOxidizer/discussions/696).

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Führe ./build-linux.py --target armv7-unknown-linux-gnueabihf aus und untersuche die erzeugte PYTHON.json, insbesondere build_info.core.static_lib und python_config_vars. Bestimme, ob die x86_64-Werte kosmetischer Natur oder für den armv7-Build falsch sind; als erledigt gilt die Aufgabe, wenn die Metadaten das Ziel konsistent beschreiben oder das Problem als harmlos dokumentiert ist.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
python
Bereich
build-system
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.