...
Open the Embedded-Base repo, and run
Code Block |
---|
python ner_setup.py |
Info |
---|
This should work for any platform, but as mentioned above, it hasn’t been rigorously tested, so let someone know if it doesn't work |
This script sets up a python virtual environment, installs packages within it, binds the running of the docker container to the opening/closing of this virtual environment, adds some aliases, and a few other small thingsdoes quite a bit behind the scenes. It pull our docker image, it creates a python venv, and installs packages and sets up aliases & entry-points for it. It also installs some other local packages, like probe-rs (an open source debugger written in Rust). For a list of all tools that we use, take a look at the next section.
This script will prompt you to answer ‘yes’ (or simply ‘y') or no (or simply 'n’) quite a bit. For most users, you should select yes to all of the prompts. These options are mostly just there in case you have a really weird linux distro (cough cough jack rubacha), or really know what you are doing and want to go about it manually.
(IF ON LINUX ONLY, ELSE SKIP) Fix Rust-Sudo Dynamic
This step helps alleviate sudo requirements for certain things, especially for our rust commands (rust Rust packages (Rust doesn’t play too nice with sudosuper user privs)
Follow the steps outlined here: https://probe.rs/docs/getting-started/probe-setup/#linux%3A-udev-rules
...