Skip to content

Commit b6d2281

Browse files
committed
Removed unused function from setup.py
1 parent 82d85a5 commit b6d2281

1 file changed

Lines changed: 0 additions & 26 deletions

File tree

setup.py

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -193,32 +193,6 @@ def get_compiler_settings(version_str):
193193
return settings
194194

195195

196-
def add_to_path():
197-
"""
198-
Prepends the build directory to the path so pyodbcconf can be imported without installing it.
199-
"""
200-
# Now run the utility
201-
202-
import imp
203-
library_exts = [ t[0] for t in imp.get_suffixes() if t[-1] == imp.C_EXTENSION ]
204-
library_names = [ 'pyodbcconf%s' % ext for ext in library_exts ]
205-
206-
# Only go into directories that match our version number.
207-
208-
dir_suffix = '-%s.%s' % (sys.version_info[0], sys.version_info[1])
209-
210-
build = join(dirname(abspath(__file__)), 'build')
211-
212-
for top, dirs, files in os.walk(build):
213-
dirs = [ d for d in dirs if d.endswith(dir_suffix) ]
214-
for name in library_names:
215-
if name in files:
216-
sys.path.insert(0, top)
217-
return
218-
219-
raise SystemExit('Did not find pyodbcconf')
220-
221-
222196
def get_version():
223197
"""
224198
Returns the version of the product as (description, [major,minor,micro,beta]).

0 commit comments

Comments
 (0)