From 8178eaa720e18dadc733c17d2c9a83893076a45e Mon Sep 17 00:00:00 2001 From: Mattias Josefsson Date: Thu, 30 Mar 2017 00:02:45 +0200 Subject: [PATCH] Include all files under wafo/data in installation Without this, wafo/data in the installation folder contains only the py files, and the following code gives a FileNotFoundError for wafo/data/sea.dat: import wafo.data wafo.data.sea() --- setup.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/setup.py b/setup.py index 796e9be..79eee61 100644 --- a/setup.py +++ b/setup.py @@ -96,6 +96,8 @@ def setup_package_pyscaffold(): include_dirs=['wafo/source/mreg/'], depends=(lib_rindmod_src)) + config.add_data_dir(('data', 'wafo/data')) + needs_sphinx = {'build_sphinx', 'upload_docs'}.intersection(sys.argv) sphinx = ['sphinx'] if needs_sphinx else [] setup(setup_requires=['six', 'pyscaffold>=2.4rc1,<2.5a0'] + sphinx,