Question: Mac OS 10.6 and Python 2.6

2010-03-01 Thread John Cody
I was wondering if anyone has been successful building packages for
python-ldap for Mac OS X 10.6 and Python 2.6.

Thanks,
John
--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
Python-LDAP-dev mailing list
Python-LDAP-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/python-ldap-dev


Re: Question: Mac OS 10.6 and Python 2.6

2010-03-02 Thread John Cody
I've got the 2.3.11 release of python-ldap, latest version of XCode, and
Python 2.6.2 installed.

I run: $ sudo python setup.py build
and I get the following output.

extra_compile_args:
extra_objects:
include_dirs: /usr/include /usr/include/sasl
library_dirs: /usr/lib
libs: ldap_r lber sasl2 ssl crypto
running build
running build_py
file Lib/ldap.py (for module ldap) not found
file Lib/ldap/schema.py (for module ldap.schema) not found
creating build/lib.macosx-10.3-fat-2.6
copying Lib/ldapurl.py -> build/lib.macosx-10.3-fat-2.6
copying Lib/ldif.py -> build/lib.macosx-10.3-fat-2.6
copying Lib/dsml.py -> build/lib.macosx-10.3-fat-2.6
creating build/lib.macosx-10.3-fat-2.6/ldap
copying Lib/ldap/__init__.py -> build/lib.macosx-10.3-fat-2.6/ldap
copying Lib/ldap/async.py -> build/lib.macosx-10.3-fat-2.6/ldap
copying Lib/ldap/controls.py -> build/lib.macosx-10.3-fat-2.6/ldap
copying Lib/ldap/cidict.py -> build/lib.macosx-10.3-fat-2.6/ldap
copying Lib/ldap/dn.py -> build/lib.macosx-10.3-fat-2.6/ldap
copying Lib/ldap/filter.py -> build/lib.macosx-10.3-fat-2.6/ldap
copying Lib/ldap/functions.py -> build/lib.macosx-10.3-fat-2.6/ldap
copying Lib/ldap/ldapobject.py -> build/lib.macosx-10.3-fat-2.6/ldap
copying Lib/ldap/modlist.py -> build/lib.macosx-10.3-fat-2.6/ldap
copying Lib/ldap/resiter.py -> build/lib.macosx-10.3-fat-2.6/ldap
copying Lib/ldap/sasl.py -> build/lib.macosx-10.3-fat-2.6/ldap
creating build/lib.macosx-10.3-fat-2.6/ldap/schema
copying Lib/ldap/schema/__init__.py ->
build/lib.macosx-10.3-fat-2.6/ldap/schema
copying Lib/ldap/schema/models.py ->
build/lib.macosx-10.3-fat-2.6/ldap/schema
copying Lib/ldap/schema/subentry.py ->
build/lib.macosx-10.3-fat-2.6/ldap/schema
copying Lib/ldap/schema/tokenizer.py ->
build/lib.macosx-10.3-fat-2.6/ldap/schema
file Lib/ldap.py (for module ldap) not found
file Lib/ldap/schema.py (for module ldap.schema) not found
running egg_info
writing requirements to Lib/python_ldap.egg-info/requires.txt
writing Lib/python_ldap.egg-info/PKG-INFO
writing top-level names to Lib/python_ldap.egg-info/top_level.txt
writing dependency_links to Lib/python_ldap.egg-info/dependency_links.txt
file Lib/ldap.py (for module ldap) not found
file Lib/ldap/schema.py (for module ldap.schema) not found
reading manifest file 'Lib/python_ldap.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'Makefile'
warning: no files found matching 'Modules/LICENSE'
writing manifest file 'Lib/python_ldap.egg-info/SOURCES.txt'
running build_ext
building '_ldap' extension
creating build/temp.macosx-10.3-fat-2.6
creating build/temp.macosx-10.3-fat-2.6/Modules
gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk
-fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -O3 -DHAVE_LIBLDAP_R
-DHAVE_SASL -DHAVE_TLS -DLDAPMODULE_VERSION=2.3.11 -IModules -I/usr/include
-I/usr/include/sasl
-I/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c
Modules/LDAPObject.c -o build/temp.macosx-10.3-fat-2.6/Modules/LDAPObject.o
In file included from /usr/include/math.h:26,
 from
/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6/pyport.h:235,
 from
/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6/Python.h:58,
 from Modules/common.h:10,
 from Modules/LDAPObject.c:4:
/usr/include/architecture/ppc/math.h:666: warning: conflicting types for
built-in function ‘scalb’
In file included from /usr/include/stdarg.h:4,
 from
/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6/unicodeobject.h:4,
 from
/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6/Python.h:85,
 from Modules/common.h:10,
 from Modules/LDAPObject.c:4:
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/stdarg.h:4:25: error: stdarg.h:
No such file or directory
In file included from /usr/include/architecture/i386/math.h:626,
 from /usr/include/math.h:28,
 from
/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6/pyport.h:235,
 from
/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6/Python.h:58,
 from Modules/common.h:10,
 from Modules/LDAPObject.c:4:
/usr/include/AvailabilityMacros.h:108:14: warning: #warning Building for
Intel with Mac OS X Deployment Target < 10.4 is invalid.
In file included from /usr/include/stdarg.h:4,
 from
/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6/unicodeobject.h:4,
 from
/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6/Python.h:85,
 from Modules/common.h:10,
 from Modules/LDAPObject.c:4:
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/stdarg.h:4:25: error: stdarg.h:
No such file or directory
lipo: can't figure out the architecture type of: /var/tmp//cc5IXFBh.out
error: command 'gcc' fa

Re: Question: Mac OS 10.6 and Python 2.6

2010-03-05 Thread John Cody
>
>
>
> This is a known problem when using a non-Apple supplied Python install:
>
> http://bugs.python.org/issue6957
>
> The bug has more details, but the basic workaround is to install the 10.4
> SDK (it's an optional package when installing Xcode) and using GCC 4.0
> instead of the default 4.2.
>
> --
> Ben
>
> I had tried downloading the 10.4 SDK and setting GCC to 4.0, since that is
what worked for  building other python packages, but it didn't seem to work
for this.  In the setup.cfg file I put in this parameter:

extra_compile_args = -isysroot /Developer/SDKs/MacOSX10.6.sdk

and that seemed to do the trick.

John
--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
Python-LDAP-dev mailing list
Python-LDAP-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/python-ldap-dev