From 7a945eaa9d8f7aa9a608324f60bc624c1168e7f5 Mon Sep 17 00:00:00 2001 From: Jahnvi Thakkar Date: Wed, 22 Jul 2026 16:03:54 +0530 Subject: [PATCH 1/2] CHORE: Couple mssql-python to mssql-python-odbc==18.6.2 Add exact-pinned mssql-python-odbc==18.6.2 to install_requires so mssql-python pulls the standalone ODBC Driver 18 package. Loader remains fallback-safe (uses bundled libs when the external package is absent/incomplete). AB#46586 --- setup.py | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.py b/setup.py index da248a53..47b06314 100644 --- a/setup.py +++ b/setup.py @@ -191,6 +191,7 @@ def run(self): # Add dependencies install_requires=[ "azure-identity>=1.12.0", # Azure authentication library + "mssql-python-odbc==18.6.2", # ODBC Driver 18 binaries (standalone package) ], extras_require={ "pyarrow": ["pyarrow>=14.0.0"], From fee5d8c2478516fe63f35d2bd61d657b47e6dd78 Mon Sep 17 00:00:00 2001 From: Jahnvi Thakkar Date: Wed, 22 Jul 2026 16:17:37 +0530 Subject: [PATCH 2/2] CHORE: Exclude mssql_python_odbc from mssql-python wheel --- setup.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 47b06314..4a04d7ea 100644 --- a/setup.py +++ b/setup.py @@ -122,8 +122,13 @@ def run(self): # Package discovery # --------------------------------------------------------------------------- -# Find all packages in the current directory -packages = find_packages() +# Find all packages in the current directory. +# Exclude mssql_python_odbc: it is shipped exclusively by the standalone +# mssql-python-odbc distribution (see setup_odbc.py) and pulled in via +# install_requires. Shipping it here too would make two distributions own the +# same import directory (install-order file overwrites; uninstall of one can +# remove files the other needs). +packages = find_packages(exclude=["mssql_python_odbc", "mssql_python_odbc.*"]) # Get platform info using consolidated function arch, platform_tag = get_platform_info()