-
Notifications
You must be signed in to change notification settings - Fork 645
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
[DYN-8392] Python dependencies in workspace references. #15948
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.
See the ticket for this pull request: https://jira.autodesk.com/browse/DYN-8392
@@ -804,6 +805,18 @@ private List<INodeLibraryDependencyInfo> ComputeNodeLibraryDependencies() | |||
{ | |||
var collected = GetNodePackage(node); | |||
|
|||
// Handle python nodes explicitly and use the collected node package for those node type. | |||
if (node.ToString().Equals(pythonNodeNamespace) && collected != null) |
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.
Checking this instead of the node type because the core cannot have dependency reference with PythonNodeModels project.
@@ -187,10 +187,6 @@ internal void DependencyRegen(WorkspaceModel ws, bool forceCompute = false) | |||
HasDependencyIssue = string.IsNullOrEmpty(info.Path); | |||
} | |||
|
|||
var pythonPackageDependencies = ws.OnRequestPackageDependencies(); |
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.
Removed this as the OnRequestPackageDependencies was just setting the ironpython package details with a fixed version if the workspace has a ironpython2 node. Now, we will compute the dependency package directly when the engine is changed and the script is saved. Should handle Cpython and pythonnet3 cases as well.
Worth adding a test? |
@zeusongit There is a already a similar test and I modified that to verify the dependency change when the python engine is modified. |
There are some test failures, let's retry merging master into your branch |
Purpose
https://jira.autodesk.com/browse/DYN-8392
Python engine dependency in workspace references should update when the user changes the python engine and saves it.
Declarations
Check these if you believe they are true
*.resx
filesRelease Notes
(FILL ME IN) Brief description of the fix / enhancement. Use N/A to indicate that the changes in this pull request do not apply to Release Notes. Mandatory section
Reviewers
@zeusongit @aparajit-pratap