[SciPy-Dev] New subpackage: scipy.data

Pauli Virtanen pav at iki.fi
Sun Apr 29 15:25:17 EDT 2018


su, 2018-04-29 kello 11:21 -0700, Ralf Gommers kirjoitti:
> $ ls -l cython_special.cpython-35m-x86_64-linux-gnu.so
> ... 10694424 Apr 15 15:04 cython_special.cpython-35m-x86_64-linux-
> gnu.so
> $ strip cython_special.cpython-35m-x86_64-linux-gnu.so
> $ ls -l cython_special.cpython-35m-x86_64-linux-gnu.so
> ... 3065680 Apr 29 11:16 cython_special.cpython-35m-x86_64-linux-
> gnu.so
> $ cd ../linalg
> $ ls -l _flapack.cpython-35m-x86_64-linux-gnu.so
> ... 3445392 Apr 15 15:04 _flapack.cpython-35m-x86_64-linux-gnu.so
> $ strip _flapack.cpython-35m-x86_64-linux-gnu.so
> $ ls -l _flapack.cpython-35m-x86_64-linux-gnu.so
> ... 1333960 Apr 29 11:17 _flapack.cpython-35m-x86_64-linux-gnu.so
> 
> I'll open an issue for that.

Right, the link commands appear different:

  /opt/rh/devtoolset-2/root/usr/bin/gfortran -Wall -g -Wall -g -shared build/temp.linux-x86_64-3.6/scipy/special/cython_special.o build/temp.linux-x86_64-3.6/scipy/special/sf_error.o build/temp.linux-x86_64-3.6/build/src.linux-x86_64-3.6/scipy/special/_logit.o build/temp.linux-x86_64-3.6/scipy/special/amos_wrappers.o build/temp.linux-x86_64-3.6/scipy/special/cdf_wrappers.o build/temp.linux-x86_64-3.6/scipy/special/specfun_wrappers.o -L/usr/local/lib -L/opt/_internal/cpython-3.6.4/lib/python3.6/site-packages/numpy/core/lib -Lbuild/temp.linux-x86_64-3.6 -lopenblas -lopenblas -lsc_amos -lsc_c_misc -lsc_cephes -lsc_mach -lsc_cdf -lsc_specfun -lnpymath -lm -lgfortran -o build/lib.linux-x86_64-3.6/scipy/special/cython_special.cpython-36m-x86_64-linux-gnu.so -Wl,--version-script=build/temp.linux-x86_64-3.6/link-version-scipy.special.cython_special.map

vs.

  gcc -pthread -shared -Wl,-strip-all -L/usr/local/include build/temp.linux-x86_64-3.6/scipy/special/_comb.o -Lbuild/temp.linux-x86_64-3.6 -o build/lib.linux-x86_64-3.6/scipy/special/_comb.cpython-36m-x86_64-linux-gnu.so -Wl,--version-script=build/temp.linux-x86_64-3.6/link-version-scipy.special._comb.map

I guess this is some setuptools issue, with fortran and c/c++ handled
differently. FFLAGS is supposed to be set in config.sh, but maybe they
are not used for linking. Maybe the strip flags should be added to
LDFLAGS too.

	Pauli



More information about the SciPy-Dev mailing list