Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix missing symbol in sql-py on osx-arm64 #22

14 changes: 14 additions & 0 deletions recipe/build.sh
Expand Up @@ -9,4 +9,18 @@ if [[ $target_platform == osx-arm64 ]]; then
export CXXFLAGS="${CXXFLAGS-} ${FLAGS_NEEDED}"
fi

echo '++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++';
pwd;
echo '=================================================================================';
ls -l;

# debug
sed -i -e 's/#include "mysql.h"/#if __has_include(<mysql\/mysql.h>)\n#include <mysql\/mysql.h>\n#endif/g' tiledb/sql/_mysql.c
sed -i -e 's/#include "mysqld_error.h"/#include <mysql\/mysqld_error.h>/g' tiledb/sql/_mysql.c
sed -i -e 's/#include "errmsg.h"/#include <mysql\/errmsg.h>/g' tiledb/sql/_mysql.c

echo "Replacement complete."

cat tiledb/sql/_mysql.c;

$PYTHON setup.py install --single-version-externally-managed --record record.txt
3 changes: 1 addition & 2 deletions recipe/meta.yaml
Expand Up @@ -12,7 +12,7 @@ source:
sha256: {{ sha256 }}

build:
number: 5
number: 6
skip: true # [win]
skip: true # [py2k]

Expand All @@ -21,7 +21,6 @@ requirements:
- {{ compiler('cxx') }}
- python # [build_platform != target_platform]
- cross-python_{{ target_platform }} # [build_platform != target_platform]
- mysql # [build_platform != target_platform]
host:
- python
- wheel
Expand Down