Closed jwokaty closed 3 weeks ago
Hi Jen,
Rust and related tools like Cargo are part of Ubuntu and should preferably be installed with sudo apt-get install rustc cargo
(standard installation method on Ubuntu). Generally speaking the standard method should be the first choice. It has several advantages:
cargo
is not available for the pkgbuild user, only for the biocbuild user (and as a consequence new contributed package rd4 fails to install for the pkgbuild user). Installing with apt-get install cargo
guarantees that things get installed in standard locations that are available for all the users on the machine. sudo
, you can trust that sudo apt-get install ...
won't mess up your system. There's no such guarantee with other installation mechanisms.BBS/Ubuntu-files/20.04/apt_bioc.txt
or other appropriate file under BBS/Ubuntu-files/20.04/
, making it easy to automate installation across machines including Docker images.However, there's actually one important exception to the "install with apt-get first" rule: Python modules. These should preferably be installed via pip3
(as documented in Prepare-Ubuntu-20.04-HOWTO.md
).
Hope this makes sense.
As always, don't hesitate to ask if you have questions.
H.
Thanks for this. This crossed my mind, but I typically pick the recommended way according to the package's documentation since I know that Ubuntu (and Debian) packages can be behind. I'll stick to sudoing in the future. It might be useful to document things like this and as well as criteria/considerations for package inclusion in the future somewhere. I'm closing this issue for now since Rust isn't needed.
It might be useful to document things like this and as well as criteria/considerations for package inclusion in the future somewhere.
You're welcome to copy/paste what I wrote above somewhere in Prepare-Ubuntu-20.04-HOWTO.md
.
I'm closing this issue for now since Rust isn't needed.
hmm.. what about rd4? https://github.com/Bioconductor/Contributions/issues/2732#issuecomment-1225248829
Ah, I thought Rust is only required if rextendr
is required?
No, rd4 still needs Rust + Cargo to install. You can see this when you try to install rd4 with R CMD INSTALL rd4
.
It might be useful to document things like this
Just did that: https://github.com/Bioconductor/BBS/blob/master/Doc/Prepare-Ubuntu-20.04-HOWTO.md#important-notes
Install Rust, depending on acceptance of https://github.com/Bioconductor/Contributions/issues/2732. We may also want to put
rextendr
as a CRAN dependency.I used https://www.rust-lang.org/tools/install to install on nebbiolo2.
If the package is accepted, we may want to consider adding it to the docker if it isn't large.