From 2d6c46d7075a769a7abffa3e1c43c5db7dcbfe39 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Thu, 31 Oct 2019 09:49:34 +0100 Subject: [PATCH] list the LICENSE as a license_file Data files are installed in the wrong directory when packaging this, and it is very uncommon to do so. data files should be files needed for the runtime only. --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index c5d3e1c27..ee7393176 100755 --- a/setup.py +++ b/setup.py @@ -83,7 +83,7 @@ def get_install_requirements(path): ext_modules=[module], packages=find_packages('src'), package_dir={'': 'src'}, - data_files=[('', [os.path.join(work_dir, 'LICENSE.txt')])], + license_files=('LICENSE.txt', ), install_requires=INSTALL_REQUIRES, classifiers=trove_classifiers, extras_require={