From 2860e033b23b1aeae2dece3e1e067f47de87ce9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filipe=20La=C3=ADns?= Date: Wed, 28 Aug 2024 03:47:28 +0100 Subject: [PATCH] rinfo: remove release_info file in the package data MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Filipe LaĆ­ns --- pdm_build.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/pdm_build.py b/pdm_build.py index 882760cff..3108f0ab0 100644 --- a/pdm_build.py +++ b/pdm_build.py @@ -48,7 +48,6 @@ def pdm_build_initialize(context: Context) -> None: context.ensure_build_dir() proj_name: str = context.config.metadata['name'] build_dir = pathlib.Path(context.build_dir) - data_path = context.root.joinpath(f"share/{proj_name}") pkg_path = build_dir.joinpath(__package_name__) pkg_path.mkdir(parents=True, exist_ok=True) rinfo_path: pathlib.Path = pkg_path.joinpath("release_info") @@ -80,9 +79,6 @@ def pdm_build_initialize(context: Context) -> None: rinfo_data = rinfo_path.read_text() else: rinfo_data = "" - data_path.mkdir(parents=True, exist_ok=True) - if rinfo_data: - data_path.joinpath("release_info").write_text(rinfo_data) git_ignore = build_dir.joinpath(".gitignore") if git_ignore.is_file(): git_ignore.unlink()