From e92d1e3f4eb6aa745f54b5528b6d26f6872b1864 Mon Sep 17 00:00:00 2001 From: Antoine Weisrock Date: Fri, 20 Aug 2021 11:39:43 +0200 Subject: [PATCH] [upd] Added the docs, Examples, impact and util files to the installation via pip --- setup.py | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index 02895a5c..21f271af 100755 --- a/setup.py +++ b/setup.py @@ -96,10 +96,13 @@ print("Can't find microEnable4 Device driver, clModule will not be " "compiled") +docs_files = [('crappy/' + path, [path + '/' + name for name in paths]) for + (path, _, paths) in walk('docs/source')] + setup( name='crappy', - version='1.4.1', + version='1.4.2', description='Command and Real-time Acquisition Parallelized in Python', @@ -137,6 +140,19 @@ install_requires=['numpy'], - data_files=[('crappy/data', ['data/'+s for s in listdir('data')]), - ('crappy/docs/source', ['docs/source/whatiscrappy.rst'])] + data_files=[('crappy/data', + ['data/' + filename for filename in listdir('data')]), + + ('crappy/docs', ['docs/Makefile']), + + ('crappy/Examples', + ['Examples/' + filename for filename in listdir('Examples')]), + + ('crappy/impact', + ['impact/' + filename for filename in listdir('impact')]), + + ('crappy/util', + ['util/' + filename for filename in listdir('util')]) + + ] + docs_files )