Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-enable codegen tests on windows #18

Merged
merged 1 commit into from
Mar 12, 2021

Conversation

h-vetinari
Copy link
Member

Checklist

  • Used a fork of the feedstock to propose changes
  • Bumped the build number (if the version is unchanged)
  • Reset the build number to 0 (if the version changed)
  • Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
  • Ensured the license file is being packaged.

Second part of replacing #12 - re-enabling the codegen tests on windows. Note this is based on #17 and only contains one extra commit on top of that.

@conda-forge-linter
Copy link

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.

@bstellato
Copy link
Contributor

Thanks for this! I think it would be best to keep using cmake as in the other interfaces for consistency and ease of maintenance. I know it caused issues as in #10 (comment) but I hope we can solve them.

@h-vetinari h-vetinari mentioned this pull request Sep 16, 2019
5 tasks
@h-vetinari
Copy link
Member Author

@bstellato: Thanks for this! I think it would be best to keep using cmake as in the other interfaces for consistency and ease of maintenance. I know it caused issues as in #10 but I hope we can solve them.

Unfortunately, I believe this will not be possible. I didn't know the inner workings of the whole azure vs. make vs. MVSC, but I consider the following statement from one of the core conda folks in #12 to be definite:

@isuruf: In azure, CMake with Visual Studio generator doesn't work. You need to use NMake Makefiles or Ninja generator.

That doesn't mean it can't be solved, of course, but I believe we're gonna have to be patient for people from conda-forge who know the compiler infrastructure to help us there (or figure out what's so special about codegen vs. windows).

Incidentially, the original author of the conda-forge feedstock-recipe for osqp, @dougalsutherland, is in both @conda-forge/help-python-c and @conda-forge/core, but has been very busy recently (although sometimes seen by the odd emoji here and there ;-)).

@h-vetinari
Copy link
Member Author

I can see that the log contains

%SRC_DIR%>SET "CMAKE_GENERATOR=Visual Studio 14 2015 Win64"  

just before the codegen tests fail, which seems to contradict the recommendation to use NMake. However, I can't find in the source code (nor the conda setup) where this variable is set...?

@bstellato
Copy link
Contributor

@h-vetinari
Copy link
Member Author

@bstellato
Unfortunately not, as that occurrence is already being taken care of by patch 0001...

@h-vetinari h-vetinari force-pushed the win_codegen branch 2 times, most recently from e5975c8 to 725c296 Compare March 12, 2021 09:46
@h-vetinari h-vetinari changed the title WIP: re-enable codegen tests on windows Re-enable codegen tests on windows Mar 12, 2021
@h-vetinari h-vetinari merged commit 65da94a into conda-forge:master Mar 12, 2021
@h-vetinari
Copy link
Member Author

At long last, this now magically passed again. 🥳

@h-vetinari h-vetinari deleted the win_codegen branch March 12, 2021 12:54
@bstellato
Copy link
Contributor

That's great. The mysteries of CI... Glad it is working now!

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.

3 participants