Repository navigation
fix windows conda based detection - #653
Merged
Merged
Conversation
tramora
approved these changes
Nov 19, 2026
tramora
left a comment
Collaborator
There was a problem hiding this comment.
Seems then that python3.15 under conda introduced an unexpected "python" parent in the folders hierarchy.
The PR looks good to me.
The automated test covers thoroughly the cases
popescu-v
force-pushed
the
fix-windows-conda-based-detection
branch
from
November 20, 2026 10:59
3ee59fe to
6dde084
Compare
Collaborator
|
The real Conda package tests on the |
popescu-v
force-pushed
the
fix-windows-conda-based-detection
branch
from
November 23, 2026 12:29
31ad9a8 to
79e46b8
Compare
Previous implementations were OS-dependent and brittle, requiring periodic maintenance according to Python and / or Conda ecosystem evolutions, as shown by issue #649. The implementation proposed in this commit only assumes that either "site-packages" or "dist-packages" must be present on the Khiops runner module's path, and that "Lib" or "lib" are also present on this path, before "site-packages" or "dist-packages". Then, the environment path is the directory one level above "Lib" or "lib". Also add tests for conda-based installations, on Windows and Linux / macOS: - test that the base directory is correctly inferred when not in a genuine Conda environment (no `CONDA_PREFIX`) is defined; - test that the conda-based installation is correctly detected, on Windows and Linux / macOS (POSIX paths), thus tackling issue #649. closes #649 Co-authored-by: Luc-Aurélien <133773992+lucaurelien@users.noreply.github.com>
popescu-v
force-pushed
the
fix-windows-conda-based-detection
branch
from
November 24, 2026 12:04
79e46b8 to
cefa220
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fix detection of non-activated Windows Conda installations using the new conda-forge Python 3.15 package layout.
Scope and implementation
Validation
Add focused regression tests covering root inference, installation classification, environment-script selection and errors, environment isolation, and fresh-process Pip fallback.
All nine focused tests pass locally on macOS. Native Windows acceptance against an installed candidate, including sample and MPI checks, remains pending.