[CONPY-191] Unable to cross-compile wheel Created: 2022-01-13  Updated: 2022-04-11

Status: Open
Project: MariaDB Connector/Python
Component/s: Build
Affects Version/s: 1.0.9
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Vincent Fortier Assignee: Georg Richter
Resolution: Unresolved Votes: 0
Labels: None
Environment:

SynoCommunity spksrc environment based on Synology Linux DSM toolchain


Python Version: python 3.10

 Description   

In simple, when cross-compiling the bin/mariadb_config binary file format is target based and as such will not necessarily run on the host where cross-compiling occurs (ex: a cross-compiled armv7 binary target will not run on the x86_64 host).

I was trying to find out documentation similar to the mysqlclient==2.1.0 python wheel where I can pass in parameter the lib & include directories (MYSQLCLIENT_CFLAGS and MYSQLCLIENT_LDFLAGS making it able to find its dependencies and build properly).

Is there anything similar? I might just have overlooked documentation. Thnx in advance.



 Comments   
Comment by Vincent Fortier [ 2022-01-13 ]

I've been looking at the code in mariadb_posix.py and there doesn't seems to be any way of using environment variables instead of using the mariadb_config nor pip --global-options= arguments.

This bug might then need to become a request for change where options would be:

  1. change the mariadb_config binary to be platform agnostic (e.g. such as using a shell script)
  2. change the mariadb_posix.py so that if mariadb_config binary is "unavailable" (e.g. cross-compile use-cases) to allow environment auto-detection + using environment variables and/or allow pip --global-options= flags
Generated at Thu Feb 08 03:30:56 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.