From 6b550ae91f166a5c5161ab23c500760a9a155909 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Tue, 4 Jul 2017 09:15:00 +1000 Subject: Allow for missing install_dir in install_data() The documentation doesn't require it and the interpreter code works around the possibility of it being None. The ninja backend code however fails with File "/home/whot/code/meson/mesonbuild/backend/ninjabackend.py", line 796, in generate_data_install dstabs = os.path.join(subdir or None, plain_f) File "/usr/lib64/python3.6/posixpath.py", line 78, in join a = os.fspath(a) TypeError: expected str, bytes or os.PathLike object, not NoneType If install_dir is missing, default to datadir/projectname --- docs/markdown/snippets/installdir.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 docs/markdown/snippets/installdir.md (limited to 'docs/markdown/snippets') diff --git a/docs/markdown/snippets/installdir.md b/docs/markdown/snippets/installdir.md new file mode 100644 index 0000000..c709ffe --- /dev/null +++ b/docs/markdown/snippets/installdir.md @@ -0,0 +1,5 @@ +## `install_data()` defaults to `{datadir}/{projectname}` + +If `install_data()` is not given an `install_dir` keyword argument, the +target directory defaults to `{datadir}/{projectname}` (e.g. +`/usr/share/myproj`). -- cgit v1.1