[CalendarServer-changes] [200] PyKerberos/trunk/setup.py
source_changes at macosforge.org
source_changes at macosforge.org
Tue Sep 26 13:04:06 PDT 2006
Revision: 200
http://trac.macosforge.org/projects/collaboration/changeset/200
Author: wsanchez at apple.com
Date: 2006-09-26 13:04:06 -0700 (Tue, 26 Sep 2006)
Log Message:
-----------
Try a more cross-platform approach to building
Modified Paths:
--------------
PyKerberos/trunk/setup.py
Modified: PyKerberos/trunk/setup.py
===================================================================
--- PyKerberos/trunk/setup.py 2006-09-26 18:03:09 UTC (rev 199)
+++ PyKerberos/trunk/setup.py 2006-09-26 20:04:06 UTC (rev 200)
@@ -18,43 +18,23 @@
from distutils.core import setup, Extension
import sys
+import commands
-if sys.platform in ["darwin", "macosx"]:
-
- """
- On Mac OS X we build the actual Python module linking to the
- Kerberos.framework.
- """
-
- module1 = Extension(
- 'kerberos',
- extra_link_args = ['-framework', 'Kerberos'],
- sources = [
- 'src/kerberos.c',
- 'src/kerberosbasic.c',
- 'src/kerberosgss.c',
- 'src/base64.c'
- ],
- )
-
- setup (
- name = 'kerberos',
- version = '1.0',
- description = 'This is a high-level interface to the Kerberos.framework',
- ext_modules = [module1]
- )
-
-else:
- """
- On other OS's we simply include a stub file of prototypes.
- Eventually we should build the proper Kerberos module and link
- with appropriate local Kerberos libraries.
- """
-
- setup (
- name = 'kerberos',
- version = '1.0',
- description = 'This is a high-level interface to the Kerberos.framework',
- package_dir={'': 'pysrc'},
- packages=['']
- )
+setup (
+ name = "kerberos",
+ version = "1.0",
+ description = "Kerberos high-level interface",
+ ext_modules = [
+ Extension(
+ "kerberos",
+ extra_link_args = commands.getoutput("krb5-config --libs gssapi").split(),
+ extra_compile_args = commands.getoutput("krb5-config --cflags gssapi").split(),
+ sources = [
+ "src/kerberos.c",
+ "src/kerberosbasic.c",
+ "src/kerberosgss.c",
+ "src/base64.c"
+ ],
+ ),
+ ],
+)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20060926/4b0c243d/attachment.html
More information about the calendarserver-changes
mailing list