-
Notifications
You must be signed in to change notification settings - Fork 27
FEAT: Linux SUSE Support #210
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This pull request adds support for SUSE and openSUSE Linux distributions to the mssql-python project. The changes update platform detection logic, driver path selection, and documentation to properly handle these distributions alongside existing supported platforms.
- Updated Linux distribution detection to recognize SUSE/openSUSE via system files
- Modified driver path selection logic in both Python and C++ code to include SUSE platform
- Enhanced documentation to include SUSE installation instructions and directory structure
Reviewed Changes
Copilot reviewed 4 out of 7 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| tests/test_000_dependencies.py | Updated Linux distribution detection to recognize SUSE and changed default from "debian_ubuntu" to "ubuntu" |
| mssql_python/pybind/ddbc_bindings.cpp | Added SUSE detection logic in C++ driver path selection function |
| mssql_python/pybind/README.md | Expanded documentation to include SUSE and Alpine directory structures and required libraries |
| README.md | Added SUSE installation instructions and updated supported platforms list |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Work Item / Issue Reference
Summary
This pull request adds support for SUSE and openSUSE Linux distributions to the project, updating both documentation and code to correctly detect and handle these platforms. It also clarifies and expands the supported platforms list, and ensures the correct driver paths are selected for SUSE in both C++ and Python code.
Platform support and documentation updates:
README.md, removing the previous note about pending SUSE support.mssql_python/pybind/README.mdto include SUSE and Alpine builds for both x86_64 and ARM64 architectures, and listed required libraries for these platforms. [1] [2]Driver path selection logic:
GetDriverPathCppinddbc_bindings.cppto detect SUSE/openSUSE via/etc/SuSE-releaseor/etc/SUSE-brandand select the correct driver path.test_000_dependencies.pyto recognize SUSE/openSUSE and assign the appropriate driver path, with clearer default handling for other distributions. [1] [2]