Snapcraft a conda environment

155
April 03, 2022, at 06:00 AM

I have a project that uses a conda environment for dependencies management. For now, the user can activate the environment and use it (it's exposed to the command line through an entry_point). Right now, the "installing" process is (and myscript is the main executable):

$ conda env create -f environment.yml
$ conda activate MyProgram
(MyProgram) $ myscript

So far, so good. Now I want to create a snap to distribute my program. I know I could use the conda snap plugin. And, indeed, I defined the command accordingly in my snapcraft.yaml. However, I don't know how to tell snapcraft to activate the environment, so snapcraft says:

Failed to generate snap metadata: 
The specified command 'myscript' defined in the app 'myscript' does not exist.
Ensure that 'myscript' is installed with the correct path.

Of course, that command only exists when the environment is activated. How can I fix that?

Rent Charter Buses Company
READ ALSO
How to add bounding box coordinates to find depth from Monodepth2 model

How to add bounding box coordinates to find depth from Monodepth2 model

BACKGROUND The Monodepth2 code finds disparity map of an imageAnd from the disparity map it predicts min and max depth values

104
how to make changes to a existing column based on multiple conditions in python csv

how to make changes to a existing column based on multiple conditions in python csv

So I am working on data processing and I want to make changes to a column called "temp_coil" based on the condition in other columns

133
How do I display role members separately from online members?

How do I display role members separately from online members?

I searched for my problem in the API Reference, but I didn't find anything

120