setup.py 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. ##
  2. # Copyright (c) 2006-2008 Apple Inc. All rights reserved.
  3. #
  4. # Licensed under the Apache License, Version 2.0 (the "License");
  5. # you may not use this file except in compliance with the License.
  6. # You may obtain a copy of the License at
  7. #
  8. # http://www.apache.org/licenses/LICENSE-2.0
  9. #
  10. # Unless required by applicable law or agreed to in writing, software
  11. # distributed under the License is distributed on an "AS IS" BASIS,
  12. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. # See the License for the specific language governing permissions and
  14. # limitations under the License.
  15. ##
  16. from distutils.core import setup, Extension
  17. import sys
  18. import commands
  19. long_description = """
  20. This Python package is a high-level wrapper for Kerberos (GSSAPI) operations.
  21. The goal is to avoid having to build a module that wraps the entire Kerberos.framework,
  22. and instead offer a limited set of functions that do what is needed for client/server
  23. Kerberos authentication based on <http://www.ietf.org/rfc/rfc4559.txt>.
  24. """
  25. setup (
  26. name = "kerberos",
  27. version = "1.1.1",
  28. description = "Kerberos high-level interface",
  29. long_description=long_description,
  30. classifiers = [
  31. "License :: OSI Approved :: Apache Software License",
  32. "Programming Language :: Python :: 2",
  33. "Topic :: Software Development :: Libraries :: Python Modules",
  34. "Topic :: System :: Systems Administration :: Authentication/Directory"
  35. ],
  36. ext_modules = [
  37. Extension(
  38. "kerberos",
  39. extra_link_args = commands.getoutput("krb5-config --libs gssapi").split(),
  40. extra_compile_args = commands.getoutput("krb5-config --cflags gssapi").split(),
  41. sources = [
  42. "src/kerberos.c",
  43. "src/kerberosbasic.c",
  44. "src/kerberosgss.c",
  45. "src/kerberospw.c",
  46. "src/base64.c"
  47. ],
  48. ),
  49. ],
  50. )