-
Couldn't load subscription status.
- Fork 4
DYN-7766: Review Python packages shipped with the PythonNet3 engine #7
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
base: master
Are you sure you want to change the base?
Conversation
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.
Pull Request Overview
This PR adds support for six new Python libraries (shapely, alphashape, comtypes, scikit-learn, ifcopenshell, tabulate) to the PythonNet3 engine. It includes proper license documentation and handles comtypes threading requirements.
- Adds six new Python packages to the requirements with appropriate version constraints
- Implements apartment state detection and environment configuration for comtypes compatibility
- Provides comprehensive test coverage for all new libraries
Reviewed Changes
Copilot reviewed 4 out of 45 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| DSPythonNet3Wheels/requirements.txt | Adds version specifications for the six new Python libraries |
| DSPythonNet3/DSPythonNet3Evaluator.cs | Adds comtypes apartment state detection and configuration |
| DSpythonNet3Tests/PythonLibraryTests.cs | Adds unit tests for all new libraries to verify availability and basic functionality |
| DSPythonNet3/THIRD_PARTY_NOTICES.txt | Adds comprehensive license information for new libraries and dependencies |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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.
Looks good! We'll also want Claire to check out these new licenses, but I'm pretty sure it's all ok.
PR addresses DYN-7766
Changes add the required Python libraries:
The wheels were added to the Resources folder in DSPythonNet3Wheels following the existing pattern, and they remain tracked in Git as before.
A small update was made in DSPythonNet3Evaluator to handle comtypes correctly. The evaluator now checks the current .NET thread apartment and sets the COMTYPES_APARTMENT environment variable to match.
The THIRD_PARTY_NOTICES.txt file was updated to include license information for the new libraries and any additional dependencies.
Unit tests were also added.
Total size of wheels resources : 113mb (increased from 89mb)
@zeusongit
@twastvedt