From: Michael B. <bo...@mi...> - 2003-04-06 19:46:52
|
Could 'setup.py' be changed so it doesn't have to be modified for use on a Mandrake Linux system? I've installed a couple versions of pyPgSQL (2.2, 2.3) on a couple of Mandrake systems (9.0, 9.1) and found it frustrating. If the include and library directories are wrong you get a gcc error message which is misleading. A fix to the problem would be much appreciated... a proposal is below. Thanks, Michael Proposed changes in 'setup.py': ------ SNIP import string SNIP if USE_CUSTOM: include_dirs = YOUR_LIST_HERE library_dirs = YOUR_LIST_HERE elif(string.find(sys.version, "Mandrake Linux")!=-1): include_dirs = ["/usr/include/pgsql"] library_dirs = ["/usr/lib/pgsql"] SNIP ------ NOTE: "sys.version" returns: '2.2.2 (#2, Feb 5 2003, 10:40:08) \n[GCC 3.2.1 (Mandrake Linux 9.1 3.2.1-5mdk)]' |