Replies: 3 comments 2 replies
-
It is not clear to me exactly what you are looking to achieve. Maybe you are referring to a non-user specific case for a virtualenv install? There is a package rpm/deb install that will be a part of the next release, which maybe helps you. It would default to installing core into a virtualenv at |
Beta Was this translation helpful? Give feedback.
-
You can also technically use the local install option |
Beta Was this translation helpful? Give feedback.
-
It may also be worthwhile to make the changes noted to have the automated/dev install case, since I will keep it for that purpose and to not break prior behavior at some level, to install to /opt/core/venv as well to be consistent with the package install virtualenv. I think this would be in line with your desires. |
Beta Was this translation helpful? Give feedback.
-
We have a use case where we want different users to be able to run CORE on the same machine. If they don't run simultaneously, they can both install CORE and run the core-daemon by hand when they want to run an experiment. Not ideal, but doable.
I think I've picked apart the install though to get this to work. Wanted some feedback and discussion around whether this could be a standard option. My install target is Ubuntu 20.04 LTS. I'm testing against 8.2.0 release.
20.04 comes with a package for invoke (only 1.3.0, but seems to work fine) and one for pipx, so for system package install from setup.sh, I instead use:
There's no Ubuntu package for poetry, so I still use pipx, but create a system-shared directory for pipx, install poetry there, and tell pipx to create "bin" entries in /usr/local.
If I'm understanding the install correctly, the places where I need to get poetry to install to a different directory are the daemon install tasks.py line 207 and the optional emane python bindings install tasks.py line 417.
According to the poetry docs, we can change the install location with the cache-dir config setting. So first,
to configure what directory to use. But since the user can't write to that directory (you'll get permission denied), I added a "sudo" to the above referenced two poetry invocations.
Basic testing is working and my users will be putting it through the paces. Does this seem reasonable? Is this perhaps an option we can make available in the installation?
Thanks,
-Shawn
Beta Was this translation helpful? Give feedback.
All reactions