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 macOS Installation #434

Closed

Conversation

akuhnregnier
Copy link

Apply the same "-bundle" linker flag truncation across both "LDSHARED" and "LDCXXSHARED".

I found this to be required to install the turbodbc-4.14.0.tar.gz archive from https://pypi.org/project/turbodbc/#files.

Specifically, I followed these steps (in the turbodbc git repo root):

brew install unixodbc boost simdutf
export LDFLAGS
export CPPFLAGS
for brewlib in "simdutf/5.4.15" "boost/1.86.0"; do
  LDFLAGS+="-L/opt/homebrew/Cellar/${brewlib}/lib "
  CPPFLAGS+="-I/opt/homebrew/Cellar/${brewlib}/include "
done
export UNIXODBC_LIBRARY_DIR=/opt/homebrew/Cellar/unixodbc/2.3.12/lib
export UNIXODBC_INCLUDE_DIR=/opt/homebrew/Cellar/unixodbc/2.3.12/include
pip wheel .

System info (python installed using pyenv):

❯ which clang++
/usr/bin/clang++
❯ clang++ --version
Apple clang version 15.0.0 (clang-1500.3.9.4)
Target: arm64-apple-darwin23.6.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
❯ uname -a
Darwin AlexandersMBP2.localdomain 23.6.0 Darwin Kernel Version 23.6.0: Mon Jul 29 21:16:46 PDT 2024; root:xnu-10063.141.2~1/RELEASE_ARM64_T8112 arm64
❯ python -V
Python 3.12.5

Apply the same `"-bundle"` linker flag truncation across both
`"LDSHARED"` and `"LDCXXSHARED"`.
@xhochy
Copy link
Collaborator

xhochy commented Oct 6, 2024

Fixed this in #433 by moving to meson as a build system.

@xhochy xhochy closed this Oct 6, 2024
@akuhnregnier akuhnregnier deleted the fix/macos-install branch October 14, 2024 09:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants