[ENH]: Allow for using venv in queue kind #249

Merged
synchon merged 6 commits from feat/run-venv into main 2024-02-29 08:29:37 +00:00
synchon commented 2024-02-27 16:03:30 +00:00 (Migrated from github.com)

Are you requiring a new dataset or marker?

  • I understand this is not a marker or dataset request

Which feature do you want to include?

Some people do not like to use conda, it would be nice to be able to set the env variable to a path of an environment created using the venv tool to run a junifer pipeline.

How do you imagine this integrated in junifer?

Similar to conda, but with venv.

Do you have a sample code that implements this outside of junifer?

No response

Anything else to say?

No response

### Are you requiring a new dataset or marker? - [X] I understand this is not a marker or dataset request ### Which feature do you want to include? Some people do not like to use conda, it would be nice to be able to set the `env` variable to a path of an environment created using [the venv tool](https://docs.python.org/3/library/venv.html) to run a junifer pipeline. ### How do you imagine this integrated in junifer? Similar to conda, but with venv. ### Do you have a sample code that implements this outside of junifer? _No response_ ### Anything else to say? _No response_
github-actions[bot] commented 2024-02-27 16:11:05 +00:00 (Migrated from github.com)
PR Preview Action v1.4.7
Preview removed because the pull request was closed.
2024-02-29 08:34 UTC
[PR Preview Action](https://github.com/rossjrw/pr-preview-action) v1.4.7 :---: Preview removed because the pull request was closed. 2024-02-29 08:34 UTC <!-- Sticky Pull Request Commentpr-preview -->
fraimondo (Migrated from github.com) approved these changes 2024-02-27 16:37:00 +00:00
fraimondo commented 2024-02-27 16:37:16 +00:00 (Migrated from github.com)

You can ask @LeSasse how does he feel about this one too...

You can ask @LeSasse how does he feel about this one too...
LeSasse (Migrated from github.com) reviewed 2024-02-28 07:55:30 +00:00
LeSasse (Migrated from github.com) left a comment

Overall, this PR is the real MVP. Just a few questions for clarification from my side.

Overall, this PR is the real MVP. Just a few questions for clarification from my side.
@ -0,0 +1 @@
Support ``venv`` as environment kind for queueing jobs by `Synchon Mandal`_
LeSasse (Migrated from github.com) commented 2024-02-28 07:53:19 +00:00

nice!

nice!
@ -52,11 +52,13 @@ The following parameters are available for HTCondor:
* ``kind``: This is the kind of virtual environment to use:
LeSasse (Migrated from github.com) commented 2024-02-28 07:53:00 +00:00

no support for a relative path? What is the main rationale behind this?

no support for a relative path? What is the main rationale behind this?
@ -0,0 +1,22 @@
#!/bin/bash
LeSasse (Migrated from github.com) commented 2024-02-28 07:54:02 +00:00

hard coded shell? I suppose this will change in a separate PR?

hard coded shell? I suppose this will change in a separate PR?
LeSasse (Migrated from github.com) commented 2024-02-28 07:54:38 +00:00

the environment path in this case i suppose, might be worth mentioning here specifically

the environment path in this case i suppose, might be worth mentioning here specifically
fraimondo (Migrated from github.com) reviewed 2024-02-28 08:29:38 +00:00
@ -52,11 +52,13 @@ The following parameters are available for HTCondor:
* ``kind``: This is the kind of virtual environment to use:
fraimondo (Migrated from github.com) commented 2024-02-28 08:29:38 +00:00

The main question is: relative to what? The YAML? the CWD? We had this issue in #224, #127, #191.

If we can answer this, then we can also use a relative path.

The main question is: relative to what? The YAML? the CWD? We had this issue in #224, #127, #191. If we can answer this, then we can also use a relative path.
fraimondo (Migrated from github.com) reviewed 2024-02-28 08:30:31 +00:00
@ -0,0 +1,22 @@
#!/bin/bash
fraimondo (Migrated from github.com) commented 2024-02-28 08:30:31 +00:00

I think this is the case. We need to provide run_venv.zsh, run_conda.zsh, etc.

I think this is the case. We need to provide `run_venv.zsh`, `run_conda.zsh`, etc.
LeSasse (Migrated from github.com) reviewed 2024-02-28 08:30:44 +00:00
@ -52,11 +52,13 @@ The following parameters are available for HTCondor:
* ``kind``: This is the kind of virtual environment to use:
LeSasse (Migrated from github.com) commented 2024-02-28 08:30:44 +00:00

i agree. Absolute will keep it simple.

i agree. Absolute will keep it simple.
fraimondo (Migrated from github.com) reviewed 2024-02-28 08:30:44 +00:00
@ -0,0 +1,22 @@
#!/bin/bash
fraimondo (Migrated from github.com) commented 2024-02-28 08:30:44 +00:00

+1

+1
fraimondo (Migrated from github.com) reviewed 2024-02-28 09:02:58 +00:00
@ -52,11 +52,13 @@ The following parameters are available for HTCondor:
* ``kind``: This is the kind of virtual environment to use:
fraimondo (Migrated from github.com) commented 2024-02-28 09:02:58 +00:00

I think relative paths are simpler, problem is always the same: determining the "relative to" to compute an absolute path and fix it in the yaml.

I think relative paths are simpler, problem is always the same: determining the "relative to" to compute an absolute path and fix it in the yaml.
synchon (Migrated from github.com) reviewed 2024-02-28 10:24:24 +00:00
@ -0,0 +1,22 @@
#!/bin/bash
synchon (Migrated from github.com) commented 2024-02-28 10:24:23 +00:00

Yes this will change in #273 which will require a new option in the YAML.

Yes this will change in #273 which will require a new option in the YAML.
synchon (Migrated from github.com) reviewed 2024-02-28 10:56:22 +00:00
@ -52,11 +52,13 @@ The following parameters are available for HTCondor:
* ``kind``: This is the kind of virtual environment to use:
synchon (Migrated from github.com) commented 2024-02-28 10:56:22 +00:00

We have been following the "relative to YAML" idea and I updated it to reflect that.

We have been following the "relative to YAML" idea and I updated it to reflect that.
synchon (Migrated from github.com) reviewed 2024-02-28 10:57:00 +00:00
@ -0,0 +1,22 @@
#!/bin/bash
synchon (Migrated from github.com) commented 2024-02-28 10:56:59 +00:00

Updated it to make it clear.

Updated it to make it clear.
LeSasse (Migrated from github.com) approved these changes 2024-02-28 11:00:36 +00:00
LeSasse (Migrated from github.com) left a comment

LGTM, merge once tests pass I suppose.

LGTM, merge once tests pass I suppose.
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
juaml/junifer!249
No description provided.