| Store | Cart

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

From: Olivier Grisel <oliv...@ensta.org>
Wed, 12 Aug 2015 23:06:23 -0400
2015-08-12 20:51 GMT-04:00 Nathaniel Smith <n...@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
_______________________________________________
Distutils-SIG maillist  -  Dist...@python.org
https://mail.python.org/mailman/listinfo/distutils-sig

Recent Messages in this Thread
Nathaniel Smith Aug 13, 2015 12:51 am
James Polley Aug 13, 2015 01:02 am
Olivier Grisel Aug 13, 2015 03:06 am
Robert Collins Aug 13, 2015 03:10 am
Nathaniel Smith Aug 13, 2015 06:08 am
David Cournapeau Aug 14, 2015 09:59 am
Reinout van Rees Aug 17, 2015 02:07 pm
Donald Stufft Aug 17, 2015 02:15 pm
Reinout van Rees Aug 17, 2015 08:56 pm
Nick Coghlan Aug 20, 2015 10:05 am
Wes Turner Aug 20, 2015 05:15 pm
Brett Cannon Aug 21, 2015 05:41 pm
Wes Turner Aug 21, 2015 06:30 pm
Wes Turner Aug 21, 2015 07:27 pm
Wes Turner Aug 21, 2015 07:34 pm
Wes Turner Aug 21, 2015 08:28 pm
Nick Coghlan Aug 22, 2015 10:33 am
Antoine Pitrou Aug 22, 2015 07:22 pm
Messages in this thread