From: Billy G. A. <bal...@us...> - 2002-10-07 06:36:39
|
Update of /cvsroot/pypgsql/pypgsql In directory usw-pr-cvs1:/tmp/cvs-serv31238 Modified Files: setup.py Log Message: CT2002 bga Added support for UnixWare 7 and OpenUNIX 8. Index: setup.py =================================================================== RCS file: /cvsroot/pypgsql/pypgsql/setup.py,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** setup.py 16 Sep 2002 05:39:50 -0000 1.17 --- setup.py 7 Oct 2002 06:36:33 -0000 1.18 *************** *** 44,47 **** --- 44,48 ---- # Date Ini Description | # --------- --- ------------------------------------------------------- | + # 06OCT2002 bga Added support for UnixWare7 and OpenUNIX 8. | # 16SEP2002 gh Total rework to make setup.py work out of the box for | # most popular platforms, while still allowing flexibi- | *************** *** 131,134 **** --- 132,140 ---- # XXX: This is an ugly hack to make bdist_rpm find the include files. cfg.include_dirs.append("../" * 5) + elif sys.platform[:8] == "unixware": + LOCALBASE = os.environ.get('LOCALBASE', '/usr/local/pgsql') + cfg.include_dirs = ['%s/include' % LOCALBASE] + cfg.library_dirs = ['%s/lib' % LOCALBASE] + cfg.pypgsql_rt_dirs = cfg.library_dirs elif sys.platform == "freebsd4": LOCALBASE = os.environ.get('LOCALBASE', '/usr/local') |