Skip to content

Commit 1a743d8

Browse files
committed
setup.py: Remove check for __vasprintf_chk in libc because now the
bundled FreeTDS Linux library doesn't need it as of git commit 24cea49
1 parent 33e5564 commit 1a743d8

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

setup.py

+1-8
Original file line numberDiff line numberDiff line change
@@ -134,13 +134,6 @@ def add_dir_if_exists(filtered_dirs, *dirs):
134134

135135
FREETDS = None
136136

137-
with stdchannel_redirected(sys.stderr, os.devnull):
138-
libc_has_vasprintf_chk = compiler.has_function('__vasprintf_chk')
139-
print("setup.py: libc_has_vasprintf_chk = %r" % libc_has_vasprintf_chk)
140-
141-
if not libc_has_vasprintf_chk:
142-
print("setup.py: libc doesn't have __vasprintf_chk - not going to use bundled FreeTDS")
143-
144137
if sys.platform == 'darwin':
145138
FREETDS = osp.join(ROOT, 'freetds', 'darwin_%s' % BITNESS)
146139
print("""setup.py: Detected Darwin/Mac OS X.
@@ -156,7 +149,7 @@ def add_dir_if_exists(filtered_dirs, *dirs):
156149
sudo port install freetds
157150
""")
158151

159-
if libc_has_vasprintf_chk and not os.getenv('PYMSSQL_DONT_BUILD_WITH_BUNDLED_FREETDS'):
152+
if not os.getenv('PYMSSQL_DONT_BUILD_WITH_BUNDLED_FREETDS'):
160153
if SYSTEM == 'Linux':
161154
FREETDS = osp.join(ROOT, 'freetds', 'nix_%s' % BITNESS)
162155
elif SYSTEM == 'FreeBSD':

0 commit comments

Comments
 (0)