You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
brew tap microsoft/mssql-release https://github.com/Microsoft/homebrew-mssql-release
ACCEPT_EULA=Y brew install msodbcsql18
✅ Why this step is important: This package provides development headers (sql.h, sqlext.h) and the dynamic library (libmsodbcsql.18.dylib) required for building ddbc_bindings.
We are evaluating bundling these headers in future versions, as a developer SDK inside the mssql-python package itself. This will allow full cross-platform compatibility and remove the need for system-level ODBC driver installations during development builds.
Navigate to the pybind directory & run the build script:
./build.sh
What happens inside the build script?
The script will:
Clean any existing build artifacts
Detect system architecture
Configure CMake with appropriate include/library paths
Compile mssql_python/pybind/ddbc_bindings.cpp using CMake
Generate the .so file (e.g., ddbc_bindings.cp313-universal2.so)
Copy the output SO file to the parent mssql_python directory
Built module will be placed in mssql_python/ directory