[Pythonmac-SIG] kinterbasd 3.1. pre 7 on Panther

Piet van Oostrum piet at cs.uu.nl
Sat May 8 06:06:15 EDT 2004


>>>>> Tim Jarman <tim.jarman at lineone.net> (TJ) wrote:

TJ> Anyone had any joy getting this to build? Running setup.py gives me a
TJ> dark warning that "The kinterbasd setup code was not specifically
TJ> written to support your platform (darwin) and may not work properly"
TJ> and true to its word it doesn't - I get a ton of errors. While I have
TJ> done C in a previous life I have no C experience on OS X and would like
TJ> some indication that it is at least feasible to build this thing... or
TJ> ideally (pointers to) an idiot's guide.

Yes, I have it running on MacOSX 10.3 (Panther). The patch was really
simple and I have submitted it to the maintainer. It supposes that you
have a Framework build of Firebird. I tested it against 1.5.

diff -c /Users/piet/Projects/kinterbasdb-3.1_pre7/setup.py.\~1\~ /Users/piet/Projects/kinterbasdb-3.1_pre7/setup.py
*** /Users/piet/Projects/kinterbasdb-3.1_pre7/setup.py.~1~	Tue Nov 11 06:17:34 2003
--- /Users/piet/Projects/kinterbasdb-3.1_pre7/setup.py	Thu Mar  4 16:56:03 2004
***************
*** 734,739 ****
--- 734,743 ----
      assert os.path.isfile(libUltimateDest)
      print '  *** CYGWIN LIBRARY GENERATION : end ***\n'
  
+ elif sys.platform == 'darwin':
+     PLATFORM_SPECIFIC_EXTRA_LINKER_ARGS = ['-framework', 'Firebird']
+     DATABASE_INCLUDE_DIR = '/Library/Frameworks/Firebird.framework/Headers'
+     
  else: # not win32 or cygwin
      # If the platform isn't Linux, issue a warning.
      if not sys.platform.lower().startswith('linux'):

-- 
Piet van Oostrum <piet at cs.uu.nl>
URL: http://www.cs.uu.nl/~piet [PGP]
Private email: P.van.Oostrum at hccnet.nl



More information about the Pythonmac-SIG mailing list