Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork39
Generic Python package discovery#824
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:main
Are you sure you want to change the base?
Conversation
codecovbot commentedFeb 5, 2023 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Codecov Report
@@ Coverage Diff @@## main #824 +/- ##===========================================- Coverage 83.64% 70.89% -12.75%=========================================== Files 12 16 +4 Lines 2311 2783 +472 Branches 205 208 +3 ===========================================+ Hits 1933 1973 +40- Misses 373 805 +432 Partials 5 5
|
michaelkonecny commentedAug 7, 2023
Any way I can help with this? |
I have a more advanced version of this branch staged locally, that wraps all existing Python functionality and some additional features into a Python class. However the challenges I am facing are the following. I can't seem to be able to find a good SOLID approach to share a single instance of the Python class with all the different parts of the extension. Specifically the Single Responsibility Principle appears to be violated repeatedly with my proposed design. The second part is that all of this Python work feels somewhat redundant given that we could save ourselves a lot of grief just by using
I would be fine using As you can tell, my mind is not entirely set with the design or even approach that should be followed to solve the Python issues. Let me know what you think. |
michaelkonecny commentedAug 10, 2023 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Yeah that seems strange to me as well. I'm not sure I quite understand the motivation for this PR. The way I look at it now is there are basically two use cases:
Is this correct? For the user override, do we have any idea on how often people actually use it? |
The motivation is to be able to interact with Python in a standardised and abstract manner. Manually specifying the paths, although well documented and trivial to do, seems to be a blocker for many users. Modern Fortran, as an extension that integrates with Python packages needs to:
This PR aims to address all of the above bullet points. |
michaelkonecny commentedAug 10, 2023
I see. Regarding the point:
Not with multiple ones at a time, though, right? If your local code isn't too much of a mess, maybe you can push it to a separate branch and I could have a look at it? Maybe I'll have some ideas. (It doesn't have to work, just to give me an idea...) |
dnwillia-work commentedSep 20, 2023 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Honestly, I think you could probably abandon this PR. Virtual environments seem to work totally fine as far as I can tell and this is the standard way to setup non-default Python environments. See my comment in#957 |
Uh oh!
There was an error while loading.Please reload this page.
This PR should add support to allow for the discovery of:
ms-python.pythonTODO: