-
Notifications
You must be signed in to change notification settings - Fork 68
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
Missing requirements: psutil
#226
Comments
IMHO there is no reason to not use software besides the 'standard'. psutil is a well developed, cross-platform library which exactly addresses one need of the 'conditional PyCell compilation' feature. |
-updated documentation Signed-off-by: ThomasZecha <[email protected]>
@dnltz @ThomasZecha can we close this issue ? |
From my pov it can be closed. |
I'm not complaining about The problem is you should not install a Python package system-wide on your Linux machine. Actually Ubuntu24 kind-of blocks that now...
I have multiple Python projects on my machine installed with each different tool requirements. Installing them all system-wide would end in a mess. You also want to make sure everyone is using the same version to lower support. In my opinion: there should be a |
Pleae make a proposal for 'there should be a requirements.txt file in the project root directory and documentation how to create and use a virtualenv in the documentation' |
Sure, @ThomasZecha can you explain when |
psutils will be used if one of the PyCells loaded by https://github.com/IHP-GmbH/IHP-Open-PDK/blob/dev/ihp-sg13g2/libs.tech/klayout/python/sg13g2_pycell_lib/__init__.py uses the #ifdef name instruction for conditional compilation, see also https://github.com/IHP-GmbH/IHP-Open-PDK/tree/dev/ihp-sg13g2/libs.tech/klayout/#readme |
@ThomasZecha thanks for clarification! |
This PDK now has a dependency to
psutil
, which is not part of the standard Python library.Packages shouldn't be installed directly into a system. I would suggest to introduce https://virtualenv.pypa.io/en/latest/ with a requirements file for this. Alternative, drop
psutil
and find a better alternative, for exampleps
inside a subprocess call.The text was updated successfully, but these errors were encountered: