[SciPy-user] how to import umfpack?

Robin robince@gmail....
Tue Feb 12 13:15:32 CST 2008


Hi,

I've made some progress...
I was able to get umfpack scikit to build properly. I found the -v
option to setup.py which gave more information about the command it's
running. Then by adding -lgfortran and appropriate -L option and
running the command again by hand, the resulting __umfpack.so didn't
have the unresolved symbols and scikits.umfpack could be installed
successfully. The command distutils runs is:

gcc -pthread -shared -Wl,-O1
build/temp.linux-x86_64-2.5/build/src.linux-x86_64-2.5/scikits/umfpack/_umfpack_wrap.o
-L/home/robince/scipy_build/UMFPACK/Lib
-L/home/robince/scipy_build/AMD/Lib -L/home/robince/scipy_build/lib
-lumfpack -lamd -llapack -lf77blas -lcblas -latlas -o
build/lib.linux-x86_64-2.5/scikits/umfpack/__umfpack.so

However to get it work I needed to add
-L/usr/lib/gcc/x86_64-linux-gnu/4.2.1 and  -lgfortran:

gcc -pthread -shared -Wl,-O1
build/temp.linux-x86_64-2.5/build/src.linux-x86_64-2.5/scikits/umfpack/_umfpack_wrap.o
-L/home/robince/scipy_build/UMFPACK/Lib
-L/home/robince/scipy_build/AMD/Lib -L/home/robince/scipy_build/lib
-L/usr/lib/gcc/x86_64-linux-gnu/4.2.1 -lumfpack -lamd -llapack
-lf77blas -lcblas -latlas -lgfortran -o
build/lib.linux-x86_64-2.5/scikits/umfpack/__umfpack.so

Is there any way I can get distutils to add these commands so I don't
have to run the command by hand?

Thanks

Robin


More information about the SciPy-user mailing list