python setup.py build fails on Mac OS X
Bug #778147 reported by
Alex
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
Changed in imagep: | |
importance: | Undecided → Medium |
assignee: | nobody → Tomio (tomio2009) |
To post a comment you must log in.
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.