On Wed, Sep 30, 2015 at 10:50 AM, Chris Barker <
chris....@noaa.gov> wrote:
> A few more notes:
>
>> 1. What is the suggested way to build cython extensions under windows with
>> Anaconda?
>
> It's been said, but I'll repeat: use the (correct) MS compiler.
>
>> And after a recent pull request, you can even override that detection and
>> use the Visual Studio compiler you want :-)
>
>
> but no, you don't want to do that -- really.
>
> 3. When building a package with MS Visual studio compiler, is the user
> guaranteed to have all the runtime dependencies?
>>
>>
>> Right now Anaconda provides the runtime dlls for VS 2008, 2010 and 2015.
>
>
> The
python.org builds come with the correct run-times too, so that should
> not be an issue.
>
>> Only if you use a different compiler, you need to pack its respective
>> dlls.
>
>
> But DO NOT DO THAT. YOu really, really want to use the version of teh
> compiler that python itself was built with:
>
> py2.7: VS2008 (The MS compiler for python 2.7)
> py3.3 and 3.4 VS2010 (the SDK for Windows7)
> py3.5: VS2015 (VS2015 community Edition)
I agree, use the right compiler. If you want to use a different
compiler you will have to recompile the entire stack, including Python
itself. Existing C extensions built against the "correct" compiler may
not work.
This feature was added to conda-build because some people wish to do
exactly that, but it's not a simple undertaking, and you should only
do it if you have a good reason and you know what you are getting
into.
Aaron Meurer
>
> (in the future, in theory, MS compilers will be less tied to the run time,
> so that we should be abel to build for py3.5 with future version of VS --
> but that's an issue for the future, only)
>
>> The nice thing about GCC is that it's open source, it's the same on all
>> platforms
>
> it's the same on all platforms, but not all platforms are the some ;-)
> You've just shifted your problems down one level....
>
>>
>> This is not necessary. Using that special shell is just equivalent to
>> calling vcvarsall.bat, which conda-build already does, as I said. Maybe you
>> have a problem with your installation :-)
>
>
> All too easy....and the right vcvarsall.bat needs to be called.
>
> -Chris
>
> --
>
> Christopher Barker, Ph.D.
> Oceanographer
>
> Emergency Response Division
> NOAA/NOS/OR&R
(206) 526-6959 voice
> 7600 Sand Point Way NE
(206) 526-6329 fax
> Seattle, WA 98115
(206) 526-6317 main reception
>
>
Chris....@noaa.gov
>