From f49a88153bf683a0e064e251cf24f8be1a69967a Mon Sep 17 00:00:00 2001 From: Megan Wilhite Date: Thu, 9 Mar 2023 13:55:52 -0700 Subject: [PATCH] Remove # in bash commands --- doc/topics/packaging/index.rst | 36 +++++++++++++++++----------------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/doc/topics/packaging/index.rst b/doc/topics/packaging/index.rst index ca04d363780..b671aaa6393 100644 --- a/doc/topics/packaging/index.rst +++ b/doc/topics/packaging/index.rst @@ -24,31 +24,31 @@ How to build onedir only .. code-block:: bash - # pip install relenv + pip install relenv #. Fetch toolchain (Only required for linux OSs) .. code-block:: bash - # relenv toolchain fetch + relenv toolchain fetch #. Fetch Native Python Build: .. code-block:: bash - # relenv fetch --python= + relenv fetch --python= #. Create relenv environment: .. code-block:: bash - # relenv create --python=3.10.10 + relenv create --python=3.10.10 #. Add Salt into onedir. .. code-block:: bash - # path/to//bin/pip install /path/to/salt + path/to//bin/pip install /path/to/salt How to build rpm packages @@ -57,35 +57,35 @@ How to build rpm packages .. code-block:: bash - # yum -y install python3 python3-pip openssl git rpmdevtools rpmlint systemd-units libxcrypt-compat git + yum -y install python3 python3-pip openssl git rpmdevtools rpmlint systemd-units libxcrypt-compat git #. (Optional) To build a specific Salt version, you will need to install tools and changelog dependencies: .. code-block:: bash - # pip install -r requirements/static/ci/py{python_version}/tools.txt + pip install -r requirements/static/ci/py{python_version}/tools.txt .. code-block:: bash - # pip install -r requirements/static/ci/py{python_version}/changelog.txt + pip install -r requirements/static/ci/py{python_version}/changelog.txt #. Ensure you are in the current Salt cloned git repo: .. code-block:: bash - # cd salt + cd salt #. (Optional) To build a specific Salt version, run tools and set Salt version: .. code-block:: bash - # tools changelog update-rpm + tools changelog update-rpm #. Run rpmbuild in the Salt repo: .. code-block:: bash - # rpmbuild -bb --define="_salt_src $(pwd)" $(pwd)/pkg/rpm/salt.spec + rpmbuild -bb --define="_salt_src $(pwd)" $(pwd)/pkg/rpm/salt.spec How to build deb packages @@ -95,37 +95,37 @@ How to build deb packages .. code-block:: bash - # apt install -y python3 python3-venv python3-pip build-essential devscripts debhelper bash-completion git + apt install -y python3 python3-venv python3-pip build-essential devscripts debhelper bash-completion git #. (Optional) To build a specific Salt version, you will need to install tools and changelog dependencies: .. code-block:: bash - # pip install -r requirements/static/ci/py{python_version}/tools.txt + pip install -r requirements/static/ci/py{python_version}/tools.txt .. code-block:: bash - # pip install -r requirements/static/ci/py{python_version}/changelog.txt + pip install -r requirements/static/ci/py{python_version}/changelog.txt #. Ensure you are in the current Salt cloned git repo.: .. code-block:: bash - # cd salt + cd salt #. (Optional) To build a specific Salt version, run tools and set Salt version: .. code-block:: bash - # tools changelog update-deb + tools changelog update-deb #. Add a symlink and run debuild in the Salt repo: .. code-block:: bash - # ln -sf pkg/debian/ . - # debuild -uc -us + ln -sf pkg/debian/ . + debuild -uc -us How to access python binary