From a803de3f54f74b279627245610388f7b919e3aac Mon Sep 17 00:00:00 2001 From: Scott Kitterman Date: Sat, 17 Feb 2018 05:05:17 -0500 Subject: [PATCH] Update setup.py so that data files are installed --- README | 9 ++++++++- setup.py | 9 ++++----- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/README b/README index 576ed3c..6859689 100644 --- a/README +++ b/README @@ -6,6 +6,13 @@ The configuration file is designed to be compatible with OpenDKIM, but only a subset of OpenDKIM options are supported. If an unsupported option is specified, an error will be raised. +This package includes a default configuration file and man pages. For those +to be installed when installing using setup.py, the following incantation is +required because setuptools developers decided not being able to do this by +default is a feature: + +python setup.py install --single-version-externally-managed --record=/dev/null + WARNING: This is an alpha grade release to support interoperability testing with Ed25519 signatures and basic functionality. It is known to be incomplete and -not suitable for general use. \ No newline at end of file +not suitable for general use. diff --git a/setup.py b/setup.py index c4509bc..9351a82 100644 --- a/setup.py +++ b/setup.py @@ -17,6 +17,7 @@ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.""" from setuptools import setup +import os description = "Domain Keys Identified Mail (DKIM) signing/verifying milter for Postfix/Sendmail." @@ -46,12 +47,10 @@ setup( 'dkimpy-milter = dkimpy_milter.__init__:main', ], }, - package_data={'dkimpy_milter': [ - 'etc/*', - 'man/*', - ]}, + include_package_data=True, + data_files=[(os.path.join('share', 'man', 'man5'), + ['man/dkimpy-milter.conf.5']), ('etc', ['etc/dkimpy-milter.conf'])], install_requires = ['dkimpy', 'pymilter', 'authres>=1.0.2'], - zip_safe = False, )