Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
building: limit package import in binary dependency analysis to Windows
Limit the collected package import in the binary dependency analysis subprocess (performed prior to the actual analysis) to Windows. Windows is the only platform where the packages' initialization code can modify shared library search paths (either by modifying `PATH` environment variables, or by calling `os.add_dll_search_path`), so importing the collected packages to initialize the environment makes sense only there. Furthermore, non-deterministic package import order may cause issues with particular package combinations and import orders, so it is better to avoid it where we do not need it (i.e., on non-Windows platforms).
- Loading branch information
Showing
2 changed files
with
26 additions
and
17 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Limit the import of collected packages prior to performing binary | ||
dependency analysis to only Windows, where it is actually useful. | ||
On non-Windows platforms, there is no benefit to it, and it might | ||
cause issues with particular orders of package imports. |
b9ddc35
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how does this code actually do