[MacPorts] #62578: py-scipy/py-numpy: opportunistic linking to py-mkl breaks both of these ports
MacPorts
noreply at macports.org
Fri Oct 29 21:37:46 UTC 2021
#62578: py-scipy/py-numpy: opportunistic linking to py-mkl breaks both of these
ports
--------------------------------+-----------------------
Reporter: essandess | Owner: michaelld
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.7.1
Resolution: | Keywords: rpath
Port: py-scipy py-numpy |
--------------------------------+-----------------------
Comment (by mascguy):
Replying to [comment:24 reneeotten]:
> I don't see this issue myself; nothing links to {{{py-mkl}}} for
scipy/numpy. If needed, it
[https://github.com/numpy/numpy/blob/v1.21.3/doc/source/user/building.rst
seems] one can supply `NPY_LAPACK_ORDER='!MKL'` as an environment variable
to avoid using MKL. So that could be added to a variant and/or switched
off by default. I'll leave it to Michael to decide what to do with it.
When I tried building with that env var set, it failed with the following:
{{{
ValueError: Environment variable 'NPY_LAPACK_ORDER' may not mix negated an
non-negated items: '!mkl'
}}}
As for the linking to `py-mkl`, this is what I see in the NumPy build log,
when the former is active. (And without using trace mode.)
{{{
:info:build Processing numpy/random/mtrand.pyx
:info:build Cythonizing sources
:info:build blas_opt_info:
:info:build blas_mkl_info:
:info:build customize UnixCCompiler
:info:build FOUND:
:info:build libraries = ['mkl_rt', 'pthread']
:info:build library_dirs =
['/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib']
:info:build define_macros = [('SCIPY_MKL_H', None), ('HAVE_CBLAS',
None)]
:info:build include_dirs = ['/usr/local/include',
'/opt/local/include',
'/opt/local/Library/Frameworks/Python.framework/Versions/3.9/include']
:info:build FOUND:
:info:build libraries = ['mkl_rt', 'pthread']
:info:build library_dirs =
['/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib']
:info:build define_macros = [('SCIPY_MKL_H', None), ('HAVE_CBLAS',
None)]
:info:build include_dirs = ['/usr/local/include',
'/opt/local/include',
'/opt/local/Library/Frameworks/Python.framework/Versions/3.9/include']
:info:build non-existing path in 'numpy/distutils': 'site.cfg'
:info:build lapack_opt_info:
:info:build lapack_mkl_info:
:info:build FOUND:
:info:build libraries = ['mkl_rt', 'pthread']
:info:build library_dirs =
['/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib']
:info:build define_macros = [('SCIPY_MKL_H', None), ('HAVE_CBLAS',
None)]
:info:build include_dirs = ['/usr/local/include',
'/opt/local/include',
'/opt/local/Library/Frameworks/Python.framework/Versions/3.9/include']
:info:build FOUND:
:info:build libraries = ['mkl_rt', 'pthread']
:info:build library_dirs =
['/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib']
:info:build define_macros = [('SCIPY_MKL_H', None), ('HAVE_CBLAS',
None)]
:info:build include_dirs = ['/usr/local/include',
'/opt/local/include',
'/opt/local/Library/Frameworks/Python.framework/Versions/3.9/include']
:info:build Warning: attempted relative import with no known parent
package
:info:build
/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py:274:
UserWarning: Unknown distribution option: 'define_macros'
:info:build warnings.warn(msg)
:info:build running build
}}}
--
Ticket URL: <https://trac.macports.org/ticket/62578#comment:25>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list