setup.cfg.win32 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. # Section for compiling the C extension module
  2. # for wrapping OpenLDAP 2 libs
  3. # Platform: Win32
  4. # Compile environment: Microsoft Visual Studio .NET 2003
  5. [_ldap]
  6. class = OpenLDAP2
  7. defines = WIN32
  8. # Cannot have SSL/TLS support under Win32 for the moment
  9. # (OpenLDAP 2.x port is incomplete)
  10. libs = olber32 oldap_r ws2_32 libsasl
  11. # Set these to your correct Openldap and Cyrus-sasl paths
  12. library_dirs = ../openldap/openldap-2.1.22/Release ../openldap/cyrus-sasl/lib
  13. include_dirs = ../openldap/openldap-2.1.22/include ../openldap/cyrus-sasl/include
  14. # Needs to compile as /MT ("MS libs to use: multithreaded statically-linked")
  15. # instead of /MD ("MS libs to use: multithreaded DLL") which is distutils' default
  16. # because OpenLDAP libs compile that way, too
  17. # This may change, however
  18. extra_compile_args = /MT
  19. extra_link_args = /NODEFAULTLIB:msvcrt.lib
  20. # Pull in SASL DLL as a convenience to end-user (which almost never will have it)
  21. # Destination path is a rather crude hack, but site-packages would be created anyway
  22. # Set source path to your Cyrus-sasl lib path
  23. extra_files = Lib/site-packages:../openldap/cyrus-sasl/lib/libsasl.dll
  24. # Installation options
  25. [install]
  26. compile = 1
  27. record = python-ldap_install.log