-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
Disable building C++ unittests, convert to rattler-build, remove pytorch dependency #29
Conversation
…nda-forge-pinning 2024.11.25.17.21.37
Disable building C++ unittests, since they are not run. Furthermore, they cause googletest to be implicitly git cloned (which breaks building with rattler-build).
Converted using `conda-recipe-manager convert`, with a few hand fixes afterwards.
…onda-forge-pinning 2024.12.15.16.05.58
Hi! This is the friendly automated conda-forge-linting service. I wanted to let you know that I linted all conda-recipes in your PR ( Here's what I've got... For recipe/recipe.yaml:
This message was generated by GitHub Actions workflow run https://github.com/conda-forge/conda-forge-webservices/actions/runs/12359371824. Examine the logs at this URL for more detail. |
No clue why `conda-recipe-manager convert` adds that, but the linter does not like it.
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 ( |
rattler-build uses `${{ hash }}` instead of `${{ PKG_HASH }}`, requires you to pass build number explicitly and construct Python version directly. It also provides a version_to_buildstring filter that replaces the inline substitutions.
I don't mind the change to rattler, but for now CI is red, so I haven't looked more closely yet... ;-) |
Hmm, CI says it ran out of space. I wonder if rattler actually uses more space during the build, or it is just incidental. |
In either case you can add azure:
free_disk_space: true to (it's not enabled by default because it takes ~2-10minutes, which would be wasted time on the large majority of feedstocks where this isn't necessary) |
Done, thanks! I've also filed #30 prior to reading your comment, if anything I think it's worth reporting if rattler indeed consumes more space. |
@conda-forge-admin, please rerender |
…onda-forge-pinning 2024.12.20.00.45.05
Per the discussion on pytorch-cpu-feedstock: conda-forge/pytorch-cpu-feedstock#166 (comment) (and below)
I've removed the pytorch dependency per conda-forge/pytorch-cpu-feedstock#166 (comment) (and below). |
Seems like you'll need a run-dep on
|
lit is only used for the C++ test suite.
Hmm, it seems to be used in all Python versions, so I guess it's just 3.13 not pulling it implicitly. I've also noticed that the dependency on |
Hmm, now that the PyTorch dep is eliminated/reversed, should I try enabling Windows build as well? I don't have a Windows system, so the best I can do is guess work and seeing whether CI works. |
Sounds like we could give it a shot with windows! |
Converting back to draft while I experiment with Windows builds. I'm going to also limit CI targets to avoid wasting resources while I try to get it initially working. |
Also limiting CI to a single target while I try to get it working.
…onda-forge-pinning 2024.12.27.18.01.51
This reverts commit e13f21a.
…onda-forge-pinning 2024.12.27.18.01.51
No strong preference. If you're reasonably sure that this doesn't get used or imported anywhere, then we can patch it out, but not necessary from my POV either. |
Okay, I'm out of ideas.
Plus flags passed seem to indicate upstream didn't expect MSVC there. Building with clang fails too:
which seems to indicate it expected to use shared libzstd, but found static library instead. |
…onda-forge-pinning 2024.12.27.18.01.51
Confirmed that the last filelock use was removed in 2023, and backported an upstream commit removing the dep. Switched Windows back off, but left the progress so far in, so it can be reused in the future. |
…onda-forge-pinning 2024.12.27.18.01.51
This was for the very mundane reason that the recipe does not specify a dependency on |
Hmm, please correct me if I'm missing something obvious, but FWICS
Particularly, the same package does contain |
Hmm, interesting is that
while with clang, it prefers libraries with
Now, this is all my best guess since I don't have a Windows system to test, and I haven't been able to get a Conda environment working correctly with wine, but note the CMake code: When MSVC is used Now, since LLVM in Conda is built with MSVC, it uses shared zstd library and includes references to the dependency on this library in the installed CMake files. However, these files don't include the zstd library target itself — instead, they're triggering another lookup in reverse dependencies. Since the lookup is now performed with Clang and it doesn't find the shared library, the dependencies are unsatisfied. And perhaps the worst part, it is possible that I've actually broken it there. I specifically see the shared library logic for MSVC has been added in llvm/llvm-project@e7fc754 — perhaps the condition there should check for Windows rather than MSVC. But it's outside my expertise to change that. Either way, I'm going to report a bug for our LLVM feedstock and upstream bug tracker. |
Thanks for chasing this down and filing the issues! Let's get this in then! |
Checklist
0
(if the version changed)conda-smithy
(Use the phrase@conda-forge-admin, please rerender
in a comment in this PR for automated rerendering)This is primarily for the purpose of testing rattler-build, so I'm fine with you rejecting it. However, the first commit also makes sense for conda-build:
The package build has been implicitly enabling building unittests. Besides being unnecessary (as
setup.py
does not run them), it caused googletest to be implicitly downloaded.Note that I had to change deps per prefix-dev/rattler-build#1265.