My favorites | Sign in
Project Home Downloads Wiki
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions

Issue 280 attachment: setup.py.patch (626 bytes)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/setup.py b/setup.py
index b92666f..d6f9e24 100755
--- a/setup.py
+++ b/setup.py
@@ -163,6 +163,12 @@ def get_compiler_settings(version_str):

# What is the proper way to detect iODBC, MyODBC, unixODBC, etc.?
settings['libraries'].append('odbc')
+ if sys.platform.startswith('freebsd'):
+ freebsd_prefix = '/usr/local'
+ if 'PREFIX' in os.environ:
+ freebsd_prefix = os.environ['PREFIX']
+ settings['library_dirs'] = [freebsd_prefix + '/lib/']
+ settings['include_dirs'] = [freebsd_prefix + '/include/']

return settings

Powered by Google Project Hosting