setup.py changes

9 views
Skip to first unread message

william opensource4you

unread,
Apr 20, 2011, 11:28:02 AM4/20/11
to fapws
All,

I've changed a little bit the setup.py file to facilitate installation.

I've tested it on my Netbsd, Freebsd, and different recent Linux machines.

Anyhow, I'll appreciate some feedbacks especially from those running it on OSX.

Regards,

William

Jonas Rundberg

unread,
Apr 20, 2011, 5:03:29 PM4/20/11
to Fast Asynchronous Python Web Server
William,
thanks for your efforts.

I can't get it to work however. Don't know why 3 archs are specified
to gcc (-arch i386 -arch ppc -arch x86_64). Unfortunately it's beyond
my knowledge.
I won't spend more time on it now, since I don't need the fapws3
performance in this stage of my hobby project.
I can help you verify future change on my OSX, but I won't be able to
provide the debugging level you probably need.
Below is the trace from running the last version of setup.py, after
your update today. I've unset LD_LIBRARY_PATH.
cheers
/ jonas

~/Downloads/fapws3-0.9.dev$ uname -a
Darwin jonas-mac.local 10.7.0 Darwin Kernel Version 10.7.0: Sat Jan 29
15:17:16 PST 2011; root:xnu-1504.9.37~1/RELEASE_I386 i386
~/Downloads/fapws3-0.9.dev$ echo $LD_LIBRARY_PATH

~/Downloads/fapws3-0.9.dev$ sudo port install libev
---> Fetching libev
---> Verifying checksum(s) for libev
---> Extracting libev
---> Configuring libev
---> Building libev
---> Staging libev into destroot
---> Installing libev @3.9_0
---> Activating libev @3.9_0
---> Cleaning libev

~/Downloads/fapws3-0.9.dev$ ls /usr/lib/libev*
/usr/lib/libev.4.dylib /usr/lib/libev.a /usr/lib/libev.dylib /usr/lib/
libev.la

~/Downloads/fapws3-0.9.dev$ python setup.py install
Find python 2.4 or higher
----------Find ev.h in /usr/include
----------Find Python.h in /System/Library/Frameworks/
Python.framework/Versions/2.6/include/python2.6
----------Find libev.a in /usr/lib
running install
running bdist_egg
running egg_info
writing fapws3.egg-info/PKG-INFO
writing top-level names to fapws3.egg-info/top_level.txt
writing dependency_links to fapws3.egg-info/dependency_links.txt
writing entry points to fapws3.egg-info/entry_points.txt
reading manifest file 'fapws3.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'fapws3.egg-info/SOURCES.txt'
installing library code to build/bdist.macosx-10.6-universal/egg
running install_lib
running build_py
running build_ext
building 'fapws._evwsgi' extension
creating build/temp.macosx-10.6-universal-2.6
creating build/temp.macosx-10.6-universal-2.6/fapws
gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -
Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch ppc -
arch x86_64 -pipe -I/usr/include -I/System/Library/Frameworks/
Python.framework/Versions/2.6/include/python2.6 -I/System/Library/
Frameworks/Python.framework/Versions/2.6/include/python2.6 -c fapws/
extra.c -o build/temp.macosx-10.6-universal-2.6/fapws/extra.o
gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -
Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch ppc -
arch x86_64 -pipe -I/usr/include -I/System/Library/Frameworks/
Python.framework/Versions/2.6/include/python2.6 -I/System/Library/
Frameworks/Python.framework/Versions/2.6/include/python2.6 -c fapws/
wsgi.c -o build/temp.macosx-10.6-universal-2.6/fapws/wsgi.o
fapws/wsgi.c: In function ‘header_to_dict’:
fapws/wsgi.c:222: warning: enumeration value ‘s_stop’ not handled in
switch
fapws/wsgi.c: In function ‘header_to_dict’:
fapws/wsgi.c:222: warning: enumeration value ‘s_stop’ not handled in
switch
fapws/wsgi.c: In function ‘header_to_dict’:
fapws/wsgi.c:222: warning: enumeration value ‘s_stop’ not handled in
switch
gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -
Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch ppc -
arch x86_64 -pipe -I/usr/include -I/System/Library/Frameworks/
Python.framework/Versions/2.6/include/python2.6 -I/System/Library/
Frameworks/Python.framework/Versions/2.6/include/python2.6 -c fapws/
mainloop.c -o build/temp.macosx-10.6-universal-2.6/fapws/mainloop.o
gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -
Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch ppc -
arch x86_64 -pipe -I/usr/include -I/System/Library/Frameworks/
Python.framework/Versions/2.6/include/python2.6 -I/System/Library/
Frameworks/Python.framework/Versions/2.6/include/python2.6 -c fapws/
_evwsgi.c -o build/temp.macosx-10.6-universal-2.6/fapws/_evwsgi.o
gcc-4.2 -Wl,-F. -bundle -undefined dynamic_lookup -arch i386 -arch ppc
-arch x86_64 build/temp.macosx-10.6-universal-2.6/fapws/extra.o build/
temp.macosx-10.6-universal-2.6/fapws/wsgi.o build/temp.macosx-10.6-
universal-2.6/fapws/mainloop.o build/temp.macosx-10.6-universal-2.6/
fapws/_evwsgi.o -L/usr/lib -lev -o build/lib.macosx-10.6-universal-2.6/
fapws/_evwsgi.so -Wl,-R/usr/lib
ld: unknown option: -R/usr/lib
collect2: ld returned 1 exit status
ld: unknown option: -R/usr/lib
collect2: ld returned 1 exit status
ld: unknown option: -R/usr/lib
collect2: ld returned 1 exit status
lipo: can't open input file: /var/folders/D1/D1KQL-O+ExuwdelRCDjWTE++
+TI/-Tmp-//ccTrdf74.out (No such file or directory)
error: command 'gcc-4.2' failed with exit status 1


---


On Apr 20, 5:28 pm, william opensource4you <william.o...@gmail.com>
wrote:
Reply all
Reply to author
Forward
0 new messages