python setup.py build fails on Mac OS X

Bug #778147 reported by Alex
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ImageP
Fix Released
Medium
Tomio

Bug Description

ImageP-0.293b alex$ python setup.py build
Calling the C compiler on the sources:
Done.
Calling the linker
ld: unknown option: -soname
collect2: ld returned 1 exit status
Building the C extension failed.
Building without the C module:
dynamic lib: None
running build
running build_py

Tomio (tomio2009)
Changed in imagep:
importance: Undecided → Medium
assignee: nobody → Tomio (tomio2009)
Revision history for this message
Tomio (tomio2009) wrote :

Confirmed.
The C compiler (gcc) on Mac requires different options, therefore the problem. I have some temporary solution, but I am no Mac developer, so it is not a nice one.

I upload a modified setup.py scrip, which should be used to build the source.

First do a python setup.py build.

For some reason I get an .so file as an output, so copy the generated libCsources.so to libCsources.dynlib. (I do not know why the program spits this out, but whatever.)

Then do the sudo python setup.py install and it should work.

I have tested it on an older G5 with python 2.7, and it worked.

Revision history for this message
Alex (alex-liberzon) wrote :

Thanks, it works now.

Do you have documentation of API somewhere?

Thanks
Alex

Revision history for this message
Tomio (tomio2009) wrote :

There is a hopefully better solution for it now. I have tested on G5, OS X Panther and python 2.7.1.

Documentation: at the moment only the examples and the pydoc built in. Please ask questions, this may help get one written 8).

Changed in imagep:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.