Added directory Build/ mainly intended for platform-specific

examples of setup.cfg.
This commit is contained in:
stroeder 2003-08-20 10:04:34 +00:00
parent 3b6d52fb1d
commit f8ac88ea09
2 changed files with 66 additions and 0 deletions

View File

@ -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 <michael@stroeder.com>
doc_files = CHANGES README INSTALL TODO Demo/

33
Build/setup.cfg.win32 Normal file
View File

@ -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