Skip to content

Commit 06e63d9

Browse files
committed
debugging arch related things
1 parent a906869 commit 06e63d9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

setup.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def has_ext_modules(self):
1414
# Determine the architecture and platform tag for the wheel
1515
if sys.platform.startswith('win'):
1616
# Get architecture from environment variable or default to x64
17-
arch = os.environ.get('ARCH', 'x64')
17+
arch = os.environ.get('ARCHITECTURE', 'x64')
1818

1919
# Normalize architecture values
2020
if arch in ['x86', 'win32']:
@@ -25,7 +25,9 @@ def has_ext_modules(self):
2525
else: # Default to x64/amd64
2626
arch = 'x64'
2727
platform_tag = 'win_amd64'
28-
28+
29+
print(f"Detected architecture: {arch} (platform tag: {platform_tag})")
30+
2931
# Add architecture-specific packages
3032
packages.extend([
3133
f'mssql_python.libs.{arch}',

0 commit comments

Comments
 (0)