tmolomby / pyodbc

Automatically exported from code.google.com/p/pyodbc
MIT No Attribution
0 stars 0 forks source link

Compilation fail on freebsd #280

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. easy_install pyodbc

Fail at compile time

What version of the product are you using? On what operating system?
2.1.12, 3.0.6 on FreeBSD

Please provide any additional information below.

I add the patch, most of it is in FreeBSD ports

Original issue reported on code.google.com by marc.vin...@corp.nerim.fr on 3 Aug 2012 at 10:25

Attachments:

GoogleCodeExporter commented 9 years ago
I've added the change for the header file, but I'm not sure about the setup.py 
patch.  I know PREFIX is normal when compile C code, but distutils does provide 
-I and -L for this and setup.cfg can be used to provide them.

Thoughts on the setup patch?

Original comment by mkleehammer on 26 Sep 2012 at 9:12

GoogleCodeExporter commented 9 years ago

Original comment by mkleehammer on 27 Sep 2012 at 11:10

GoogleCodeExporter commented 9 years ago
I'm not an expert in distutils but it doesn't work with default settings for 
FreeBSD.

Here a new patch that i think will integrate better in the distutils philosophy.

Original comment by marc.vin...@corp.nerim.fr on 28 Sep 2012 at 1:31

Attachments:

GoogleCodeExporter commented 9 years ago
oops sorry forgot possible PREFIX env
This one will be better

Original comment by marc.vin...@corp.nerim.fr on 28 Sep 2012 at 1:38

Attachments:

GoogleCodeExporter commented 9 years ago
Those patches for setup.py work fine for standard installs but to properly 
respect the PREFIX variable it is a bit trickier (as in testing an install to 
/var/tmp/...)
This one seems to work well for me when using the PORTS framework.  There 
currently is a py-odbc port (2.1.5) in FreeBSD and I will submit an update 
Makefile and patches for the 3.0.6 version.

Original comment by rob.kr...@gmail.com on 6 Dec 2012 at 6:09

Attachments: