[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:
|