Skip to content
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

ihp-sg13g2: libs.tech: klayout: python: Move getProcessNames() #227

Merged
merged 1 commit into from
Oct 18, 2024

Conversation

dnltz
Copy link
Contributor

@dnltz dnltz commented Oct 18, 2024

This function has a hard depdendency to 'psutil' but is only required when IHP_PYCELL_LIB_PRINT_PROCESS_TREE is set. Move 'getProcessNames' inside the if block to allow using this PDK without 'psutil' installed.

Fixes #226

  • Tests pass
  • Appropriate changes to README are included in PR

This function has a hard depdendency to 'psutil' but is only required
when IHP_PYCELL_LIB_PRINT_PROCESS_TREE is set. Move 'getProcessNames'
inside the if block to allow using this PDK without 'psutil' installed.

Signed-off-by: Daniel Schultz <d.schultz@phytec.de>
@KrzysztofHerman KrzysztofHerman merged commit 7c983da into IHP-GmbH:dev Oct 18, 2024
1 check passed
@ThomasZecha
Copy link
Contributor

The chain of processes via getProcessNames() is needed in any case (for the conditional compilation of PyCells via #ifdef), independent of IHP_PYCELL_LIB_PRINT_PROCESS_TREE, see line
for processName in processNames:
and following lines.

@dnltz
Copy link
Contributor Author

dnltz commented Oct 18, 2024

The chain of processes via getProcessNames() is needed in any case (for the conditional compilation of PyCells via #ifdef), independent of IHP_PYCELL_LIB_PRINT_PROCESS_TREE, see line for processName in processNames: and following lines.

Can you please point me to the location where it's used? This is IMO a huge issue. See #226

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants