Lines 1-17
Link Here
|
1 |
--- setup.py.orig 2015-04-29 16:10:15 UTC |
1 |
--- setup.py.orig 2017-03-01 17:28:07 UTC |
2 |
+++ setup.py |
2 |
+++ setup.py |
3 |
@@ -187,6 +187,15 @@ def get_compiler_settings(version_str): |
3 |
@@ -189,6 +189,15 @@ def get_compiler_settings(version_str): |
4 |
# What is the proper way to detect iODBC, MyODBC, unixODBC, etc.? |
4 |
# What is the proper way to detect iODBC, MyODBC, unixODBC, etc.? |
5 |
settings['libraries'].append('odbc') |
5 |
settings['libraries'].append('odbc') |
6 |
|
6 |
|
7 |
+ if sys.platform.startswith('freebsd'): |
7 |
+ if sys.platform.startswith('freebsd'): |
8 |
+ settings['library_dirs'] = ['/usr/local/lib/'] |
8 |
+ settings['library_dirs'] = ['/usr/local/lib/'] |
9 |
+ settings['include_dirs'] = ['/usr/local/include/'] |
9 |
+ settings['include_dirs'] = ['/usr/local/include/'] |
10 |
+ freebsd_prefix = '/usr/local' |
10 |
+ freebsd_prefix = '/usr/local' |
11 |
+ if 'PREFIX' in os.environ: |
11 |
+ if 'PREFIX' in os.environ: |
12 |
+ freebsd_prefix = os.environ['PREFIX'] |
12 |
+ freebsd_prefix = os.environ['PREFIX'] |
13 |
+ if 'PYTHONPREFIX_SITELIBDIR' in os.environ: |
13 |
+ if 'PYTHONPREFIX_SITELIBDIR' in os.environ: |
14 |
+ sys.path.append('/'.join(freebsd_prefix, os.environ['PYTHONPREFIX_SITELIBDIR'])) |
14 |
+ sys.path.append('/'.join(freebsd_prefix, os.environ['PYTHONPREFIX_SITELIBDIR'])) |
15 |
+ |
15 |
+ |
16 |
return settings |
16 |
return settings |
17 |
|
17 |
|