[Distutils] PEP for dependencies on libraries like BLAS (was: Re: Working toward Linux wheel support)

Olivier Grisel olivier.grisel at ensta.org
Thu Aug 13 05:06:23 CEST 2015


2015-08-12 20:51 GMT-04:00 Nathaniel Smith <njs at pobox.com>:
>
> I'm a bit surprised to hear that such a PEP is needed. We (= numpy devs)
> have actively been making plans to ship a BLAS wheel on windows, and AFAICT
> this is totally doable now -- the blocker is windows toolchain issues, not
> pypa-related infrastructure.
>
> Specifically the idea is to have a wheel that contains the shared library as
> a regular old data file, plus a stub python package that knows how to find
> this data file and how to make it accessible to the linker. So
> numpy/__init__.py would start by calling:
>
> import pyopenblas1
> # on Linux modifies LD_LIBRARY_PATH,
> # on Windows uses ctypes to preload... whatever
> pyopenblas1.enable()
>
> and then get on with things, or the build system might do:
>
> import pyopenblas1
> pyopenblas1.get_header_directories()
> pyopenblas1.get_linker_directories()
>
> This doesn't help if you want to declare dependencies on external, system
> managed libraries and have those be automatically somehow provided or
> checked for, but to me that sounds like an impossible boil-the-ocean project
> anyway, while the above is trivial and should just work.

+1

-- 
Olivier
http://twitter.com/ogrisel - http://github.com/ogrisel


More information about the Distutils-SIG mailing list