Changeset View
Changeset View
Standalone View
Standalone View
docs/developer-setup.rst
Show All 23 Lines | |||||
Software Heritage requires some dependencies that are usually packaged by your | Software Heritage requires some dependencies that are usually packaged by your | ||||
package manager [1]. On Debian/Ubuntu-based distributions:: | package manager [1]. On Debian/Ubuntu-based distributions:: | ||||
sudo wget https://www.postgresql.org/media/keys/ACCC4CF8.asc -O /etc/apt/trusted.gpg.d/postgresql.asc | sudo wget https://www.postgresql.org/media/keys/ACCC4CF8.asc -O /etc/apt/trusted.gpg.d/postgresql.asc | ||||
echo "deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg main" | sudo tee -a /etc/apt/sources.list.d/pgdg.list | echo "deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg main" | sudo tee -a /etc/apt/sources.list.d/pgdg.list | ||||
sudo wget https://downloads.apache.org/cassandra/KEYS -O /etc/apt/trusted.gpg.d/cassandra.asc | sudo wget https://downloads.apache.org/cassandra/KEYS -O /etc/apt/trusted.gpg.d/cassandra.asc | ||||
echo "deb https://downloads.apache.org/cassandra/debian 40x main" | sudo tee -a /etc/apt/sources.list.d/cassandra.list | echo "deb https://downloads.apache.org/cassandra/debian 40x main" | sudo tee -a /etc/apt/sources.list.d/cassandra.list | ||||
sudo apt update | sudo apt update | ||||
sudo apt install python3 python3-pip python3-venv libsvn-dev postgresql \ | sudo apt install \ | ||||
libsystemd-dev libpython3-dev graphviz postgresql-autodoc \ | python3 python3-pip python3-venv virtualenvwrapper \ # Python dev tools | ||||
vlorentz: replace `build Python libraries` with `Python library dependencies` or something of the sort | |||||
Not Done Inline Actionsthey are needed only for building (vs. runtime) as they are -dev, right? tenma: they are needed only for building (vs. runtime) as they are -dev, right?
If that so, specify… | |||||
Not Done Inline Actions"build deps" is better, thx vlorentz: "build deps" is better, thx | |||||
postgresql-server-dev-all virtualenvwrapper git build-essential \ | build-essential pkg-config lzip \ # basic system utilities | ||||
pkg-config myrepos lzip cassandra plantuml inkscape | libpython3-dev libsystemd-dev libsvn-dev \ # Python libraries build deps | ||||
git myrepos \ # manage repositories | |||||
postgresql libpq-dev \ # main database | |||||
cassandra \ # alternative main database | |||||
postgresql-autodoc graphviz plantuml inkscape # for documentation | |||||
Not Done Inline Actionscould you add a line break between install and python3? vlorentz: could you add a line break between `install` and `python3`? | |||||
Done Inline Actionsyes, that way I can cut trough the big indent offset tenma: yes, that way I can cut trough the big indent offset | |||||
[1] python3.7 runtime version is the minimum required | [1] python3.7 runtime version is the minimum required | ||||
Cassandra and postgresql will be started by tests when they need it, so you | Cassandra and postgresql will be started by tests when they need it, so you | ||||
don't need them started globally (this will save you some RAM):: | don't need them started globally (this will save you some RAM):: | ||||
sudo systemctl stop postgresql | sudo systemctl stop postgresql | ||||
sudo systemctl disable postgresql | sudo systemctl disable postgresql | ||||
▲ Show 20 Lines • Show All 185 Lines • Show Last 20 Lines |
replace build Python libraries with Python library dependencies or something of the sort