File: packaging.rst

package info (click to toggle)
cloud-init 25.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 12,412 kB
  • sloc: python: 135,894; sh: 3,883; makefile: 141; javascript: 30; xml: 22
file content (58 lines) | stat: -rw-r--r-- 1,534 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
.. _downstream_packaging:

Downstream packaging
********************

This page is intended to support operating system packagers of ``cloud-init``
and is not intended for other audiences to generate their own custom cloud-init
packages.

``Cloud-init`` is not published to PyPI as it is not intended to be consumed
as a pure-python package or run from virtual environments or python paths that
are not system-wide.

Guidelines
==========

Build Dependencies
------------------
The following build dependencies must be available on the system:

- ``python3``
- ``meson >= 0.63.0``
- ``pkgconf``
- ``bash-completion``

Additional dependencies for systemd environments:

- ``systemd-devel``
- ``udev``

The full list of all package build dependencies for a given distribution can
be obtained by the following command:

.. code-block:: bash

   ./tools/read-dependencies --requirements-file requirements.txt --requirements-file test-requirements.txt --system-pkg-names --system-pkg-names --distro=<your_distro_name>


Manual build procedure
----------------------

Meson install directory locations may be set with
``meson setup -D<option_name>=<option_value>``.

Steps to validate ``cloud-init`` package builds in a development environment:

.. code-block:: bash

   meson setup builddir
   meson test -C builddir -v
   meson install -C builddir --destdir=testinstall
   # List installed files
   find builddir/testinstall/

See :ref:`package_testing` for more information package testing.

.. LINKS:
.. _meson: https://mesonbuild.com/