@@ -22,6 +22,15 @@ _common_pkg_metadata = dict(
2222_maintainer = "StackStorm Engineering <[email protected] >" # TODO: update this 2323
2424
25+ def _st2_venv_deps () -> list [str ]:
26+ """Return a list of deps required to build the st2 venv.
27+
28+ The :st2_venv parametrizations depend on parametrizations of :st2.pex,
29+ so, make sure to keep these 3 lists of parametrizations in sync.
30+ """
31+ return [f":st2_venv@parametrize=py3{ m } " for m in ("8" , "9" , "10" , "11" )]
32+
33+
2534def _distro (distro_id : str , ** kwargs ):
2635 return parametrize (
2736 distro_id ,
@@ -38,6 +47,9 @@ nfpm_deb_package(
3847 "./common/systemd:generators" ,
3948 "./common:dirs" ,
4049 "./common:symlinks" ,
50+ * _st2_venv_deps (),
51+ ":default_packs" ,
52+ ":extra_packs" ,
4153 ],
4254 scripts = dict (
4355 preinstall = "deb/scripts/pre-install.sh" ,
@@ -70,6 +82,12 @@ nfpm_rpm_package(
7082 "./common/systemd:generators" ,
7183 "./common:dirs" ,
7284 "./common:symlinks" ,
85+ * _st2_venv_deps (),
86+ ":default_packs" ,
87+ ":extra_packs" ,
88+ ],
89+ ghost_contents = [
90+ "/opt/stackstorm/install/st2.pex" , # a symlink (default in post-install; users may modify)
7391 ],
7492 scripts = dict (
7593 preinstall = "rpm/scripts/pre-install.sh" ,
@@ -83,7 +101,8 @@ nfpm_rpm_package(
83101 vendor = "The StackStorm Project" ,
84102 packager = _maintainer ,
85103 # group="System/Management", # was only useful for EL 5 and earlier
104+ compression = "zstd:best" , # xz and lzma are ~3x slower than gzip or zstd
86105 ** _common_pkg_metadata ,
87- ** _distro ("el8" , compression = "xz" ),
88- ** _distro ("el9" , compression = "zstd:default" ),
106+ ** _distro ("el8" ),
107+ ** _distro ("el9" ),
89108)
0 commit comments