From c99c2aafd5f9c611d53959ac865453d6675ebb37 Mon Sep 17 00:00:00 2001 From: "Malte J. Ziebarth" Date: Thu, 4 May 2023 12:03:03 +0200 Subject: [PATCH] Be more verbose in destpath error in build_ext.build_extension. --- README.md | 4 ++++ mebuex/build_ext.py | 4 +++- pyproject.toml | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a19a683..9b4fc12 100644 --- a/README.md +++ b/README.md @@ -56,6 +56,10 @@ Mebuex is licensed under the MIT license (see the LICENSE file). The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +### [1.1.4] - 2023-05-04 +#### Changed + - Be more verbose on `destpath` error in `build_ext.build_extension`. + ### [1.1.3] - 2023-04-14 #### Added - Add example project in `example/` subfolder. diff --git a/mebuex/build_ext.py b/mebuex/build_ext.py index 0062183..b3db103 100644 --- a/mebuex/build_ext.py +++ b/mebuex/build_ext.py @@ -72,7 +72,9 @@ def build_extension(self, ext): raise RuntimeError("Cannot copy built extension because the " "target directory does not exist. This " "likely indicates a missing sub-package in " - "the setup configuration.") + "the setup configuration.\nMore info:\n" + " destpath: '" + str(destpath) + "'\n" + " pdir: '" + str(pdir) + "'") destname = (destpath / filename).resolve() copy_file((Path(buildpath) / filename).resolve(), destname, verbose=self.verbose, diff --git a/pyproject.toml b/pyproject.toml index 1ff052b..1fd3cf2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ requires = ["setuptools>=61"] [project] name = "mebuex" -version = "1.1.3" +version = "1.1.4" authors = [ {name = "Malte J. Ziebarth", email = "mjz.science@fmvkb.de"}, ]