Skip to content

Commit

Permalink
Added directory Build/ mainly intended for platform-specific
Browse files Browse the repository at this point in the history
examples of setup.cfg.
  • Loading branch information
stroeder committed Aug 20, 2003
1 parent 3b6d52f commit f8ac88e
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 0 deletions.
33 changes: 33 additions & 0 deletions Build/setup.cfg.suse-linux
Original file line number Diff line number Diff line change
@@ -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 changes: 33 additions & 0 deletions Build/setup.cfg.win32
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit f8ac88e

Please sign in to comment.