Skip to content

re-enable pythran on windows; test skip hyghiene#201

Merged
h-vetinari merged 8 commits into
conda-forge:masterfrom
h-vetinari:win-pythran
Feb 8, 2022
Merged

re-enable pythran on windows; test skip hyghiene#201
h-vetinari merged 8 commits into
conda-forge:masterfrom
h-vetinari:win-pythran

Conversation

@h-vetinari

@h-vetinari h-vetinari commented Feb 6, 2022

Copy link
Copy Markdown
Member

Had been disabled to unblock release of 1.8.0

Closes #196

@conda-forge-linter

Copy link
Copy Markdown

Hi! This is the friendly automated conda-forge-linting service.

I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

@h-vetinari

Copy link
Copy Markdown
Member Author

@conda-forge/pythran
SCIPY_USE_PYTHRAN was disabled on windows to unblock the release of 1.8.0. I'd like to re-enable it. Here's the current error (with linebreaks for readability)

  error: Command "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.16.27023\bin\HostX64\x64\cl.exe
    /c /nologo /Ox /W3 /GL /DNDEBUG /MD
    -DENABLE_PYTHON_MODULE
    -D__PYTHRAN__=3
    -DPYTHRAN_BLAS_NONE
    -IC:/bld/scipy_1644121349820/_h_env/Library/include
    -IC:\bld\scipy_1644121349820\_h_env\lib\site-packages/pythran
    -IC:\bld\scipy_1644121349820\_h_env\lib\site-packages\numpy\core\include
    -IC:\bld\scipy_1644121349820\_h_env\lib\site-packages\numpy\core\include
    -IC:\bld\scipy_1644121349820\_h_env\include
    -IC:\bld\scipy_1644121349820\_h_env\include
    -IC:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.16.27023\ATLMFC\include
    -IC:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.16.27023\include
    -IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um
    -IC:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\ucrt
    -IC:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\shared
    -IC:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\um
    -IC:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\winrt
    -IC:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\cppwinrt
    -IC:\bld\scipy_1644121349820\_h_env\Library\include
    -IC:\bld\scipy_1644121349820\_h_env\Library\include
    /EHsc
    /Tpscipy/interpolate/_rbfinterp_pythran.cpp
    /Fobuild\temp.win-amd64-3.9\Release\scipy/interpolate/_rbfinterp_pythran.obj
    /std:c++14 /w /Zm1000" failed with exit status 2
  error: subprocess-exited-with-error

@h-vetinari

Copy link
Copy Markdown
Member Author

OK, so it's not related to the old toolchain. Upon further inspection, the error is:

error C2559: 'std::enable_if<`anonymous-namespace'::pythonic::types::is_numexpr_arg<F>::value&&std::is_same<bool,F::dtype>::value&&F::value==&&!`anonymous-namespace'::pythonic::types::is_pod_array<F>::value,`anonymous-namespace'::pythonic::types::numpy_vexpr<`anonymous-namespace'::pythonic::types::ndarray<T,pS>,`anonymous-namespace'::pythonic::types::ndarray<long,`anonymous-namespace'::pythonic::types::pshape<long>>>>::type `anonymous-namespace'::pythonic::types::ndarray<T,pS>::operator [](const F &) const': cannot overload a member function without ref-qualifier with a member function with ref-qualifier

which I've tried to format below:

error C2559:
  'std::enable_if<
      `anonymous-namespace'::pythonic::types::is_numexpr_arg<F>::value
      &&std::is_same<bool,F::dtype>::value
      &&F::value==&&!`anonymous-namespace'::pythonic::types::is_pod_array<F>::value,
    `anonymous-namespace'::pythonic::types::numpy_vexpr<
      `anonymous-namespace'::pythonic::types::ndarray<T,pS>,
      `anonymous-namespace'::pythonic::types::ndarray<long,
        `anonymous-namespace'::pythonic::types::pshape<long>>
    >
  >::type
  `anonymous-namespace'::pythonic::types::ndarray<T,pS>::operator [](const F &) const':
cannot overload a member function without ref-qualifier with a member function with ref-qualifier

@isuruf

isuruf commented Feb 6, 2022

Copy link
Copy Markdown
Member

See #198 (comment)

@h-vetinari

Copy link
Copy Markdown
Member Author

See #198 (comment)

Thanks. I saw that comment of course, but I'm unfortunately also in the camp of "[...] for a reason we can't figure out".

@isuruf

isuruf commented Feb 6, 2022

Copy link
Copy Markdown
Member

Right. Then the above error messages you posted are not relevant. It's just that cl.exe is used instead of clang-cl.exe.

@h-vetinari h-vetinari marked this pull request as ready for review February 6, 2022 12:13
@h-vetinari h-vetinari changed the title WIP: re-enable pythran on windows re-enable pythran on windows; test skip hyghiene Feb 6, 2022
@h-vetinari

h-vetinari commented Feb 7, 2022

Copy link
Copy Markdown
Member Author

@conda-forge/scipy @rgommers @tylerjereddy

This fixes windows+pythran (backporting scipy/scipy#15531) and cleans up the test skips such that we should be able to expect green CI essentially all the time (e.g. enabling automerge & avoiding restarts). Backporting scipy/scipy#15532 isn't strictly necessary, but I thought it more elegant than skipping test_ldl_type_size_combinations. Opinions welcome.

I'm happy to wait a bit longer so that the upstream PRs have time to receive some feedback, but IMO this would be good to go.

@serge-sans-paille

Copy link
Copy Markdown

thanks!

@rgommers rgommers left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems good to me, and I just merged the upstream fix.

I'm not 100% sure if there's any conda-forge policy on not doing such a rebuild of 1.8.0,
so I'll let someone else merge this. +1 from me though.

@h-vetinari h-vetinari merged commit a12ad0d into conda-forge:master Feb 8, 2022
@h-vetinari h-vetinari deleted the win-pythran branch February 8, 2022 21:52
@h-vetinari

Copy link
Copy Markdown
Member Author

I'm not 100% sure if there's any conda-forge policy on not doing such a rebuild of 1.8.0,

It just gets an incremented build number. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants