Skip to contentSkip to conversation

package/pkg-python: apply host platform and project base to pep517 env

PATCH Applied James Hilliard 2 participants 2 messages Mar 11, 2022 – Mar 12, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/pkg-python: apply host platform and project base to pep517 env

The _PYTHON_HOST_PLATFORM and _PYTHON_PROJECT_BASE variables should also be set for pep517 builds as they are not setuptools/distutils specific.

---
 package/pkg-python.mk | 2 ++
 1 file changed, 2 insertions(+)
package/pkg-python.mk +2 -0
index f031bc8fae..52ce402281 100644
@@ -113,6 +113,8 @@ HOST_PKG_PYTHON_SETUPTOOLS_INSTALL_OPTS = \
 
 # Target pep517-based packages
 PKG_PYTHON_PEP517_ENV = \
+	_PYTHON_HOST_PLATFORM="$(PKG_PYTHON_HOST_PLATFORM)" \
+	_PYTHON_PROJECT_BASE="$(PYTHON3_DIR)" \
 	_PYTHON_SYSCONFIGDATA_NAME="$(PKG_PYTHON_SYSCONFIGDATA_NAME)" \
 	PATH=$(BR_PATH) \
 	$(TARGET_CONFIGURE_OPTS) \
Signature · 6 lines
2.25.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

Kames, All,

On 2022-03-11 12:27 -0700, James Hilliard spake thusly:

Quoted 5 lines

The _PYTHON_HOST_PLATFORM and _PYTHON_PROJECT_BASE variables should also be set for pep517 builds as they are not setuptools/distutils specific.

Applied to master, thanks.

Regards,
Yann E. MORIN.

Quoted 24 lines
---
 package/pkg-python.mk | 2 ++
 1 file changed, 2 insertions(+)
package/pkg-python.mk +2 -0
index f031bc8fae..52ce402281 100644
@@ -113,6 +113,8 @@ HOST_PKG_PYTHON_SETUPTOOLS_INSTALL_OPTS = \
 
 # Target pep517-based packages
 PKG_PYTHON_PEP517_ENV = \
+	_PYTHON_HOST_PLATFORM="$(PKG_PYTHON_HOST_PLATFORM)" \
+	_PYTHON_PROJECT_BASE="$(PYTHON3_DIR)" \
 	_PYTHON_SYSCONFIGDATA_NAME="$(PKG_PYTHON_SYSCONFIGDATA_NAME)" \
 	PATH=$(BR_PATH) \
 	$(TARGET_CONFIGURE_OPTS) \
Signature · 6 lines
2.25.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Signature · 10 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot