From f8ac88ea0935e4bcbd0fa5f7b15cd9bff9c6c3f7 Mon Sep 17 00:00:00 2001 From: stroeder Date: Wed, 20 Aug 2003 10:04:34 +0000 Subject: [PATCH] Added directory Build/ mainly intended for platform-specific examples of setup.cfg. --- Build/setup.cfg.suse-linux | 33 +++++++++++++++++++++++++++++++++ Build/setup.cfg.win32 | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 66 insertions(+) create mode 100644 Build/setup.cfg.suse-linux create mode 100644 Build/setup.cfg.win32 diff --git a/Build/setup.cfg.suse-linux b/Build/setup.cfg.suse-linux new file mode 100644 index 0000000..884e57a --- /dev/null +++ b/Build/setup.cfg.suse-linux @@ -0,0 +1,33 @@ +# Example for setup.cfg +# You have to edit this file to reflect your system configuation +# $Id: setup.cfg.suse-linux,v 1.1 2003/08/20 10:04:34 stroeder Exp $ + +[_ldap] +# Section for compiling the C extension module +# for wrapping OpenLDAP 2 libs + +library_dirs = /usr/lib/sasl2 +include_dirs = /usr/include/sasl + +extra_compile_args = +extra_objects = + +# Example for full-featured SuSE build: +# Support for StartTLS/LDAPS, SASL bind and reentrant libldap_r. +# This needs recent OpenLDAP 2.0.26+ or 2.1.3+ built with +# ./configure --with-cyrus-sasl --with-tls +libs = ldap_r lber sasl2 ssl crypto + +[install] +# Installation options +compile = 1 +optimize = 1 + +# For SuSE Linux 8.2 +[bdist_rpm] +provides = python-ldap +requires = python openldap2-client openssl cyrus-sasl2 +distribution_name = SuSE Linux 8.2 +release = 1 +packager = Michael Stroeder +doc_files = CHANGES README INSTALL TODO Demo/ diff --git a/Build/setup.cfg.win32 b/Build/setup.cfg.win32 new file mode 100644 index 0000000..7c5270b --- /dev/null +++ b/Build/setup.cfg.win32 @@ -0,0 +1,33 @@ +# Section for compiling the C extension module +# for wrapping OpenLDAP 2 libs + +# Platform: Win32 +# Compile environment: Microsoft Visual Studio .NET 2003 +[_ldap] +class = OpenLDAP2 +defines = WIN32 + +# Cannot have SSL/TLS support under Win32 for the moment +# (OpenLDAP 2.x port is incomplete) +libs = olber32 oldap_r ws2_32 libsasl + +# Set these to your correct Openldap and Cyrus-sasl paths +library_dirs = ../openldap/openldap-2.1.22/Release ../openldap/cyrus-sasl/lib +include_dirs = ../openldap/openldap-2.1.22/include ../openldap/cyrus-sasl/include + +# Needs to compile as /MT ("MS libs to use: multithreaded statically-linked") +# instead of /MD ("MS libs to use: multithreaded DLL") which is distutils' default +# because OpenLDAP libs compile that way, too +# This may change, however +extra_compile_args = /MT +extra_link_args = /NODEFAULTLIB:msvcrt.lib + +# Pull in SASL DLL as a convenience to end-user (which almost never will have it) +# Destination path is a rather crude hack, but site-packages would be created anyway +# Set source path to your Cyrus-sasl lib path +extra_files = Lib/site-packages:../openldap/cyrus-sasl/lib/libsasl.dll + +# Installation options +[install] +compile = 1 +record = python-ldap_install.log