diff --git a/MANIFEST.in b/MANIFEST.in deleted file mode 100644 index 4dd323e..0000000 --- a/MANIFEST.in +++ /dev/null @@ -1 +0,0 @@ -recursive-include lib/lg_linter/config/ * diff --git a/setup.py b/setup.py index 76a0867..ddf081f 100644 --- a/setup.py +++ b/setup.py @@ -1,9 +1,8 @@ import os -import pathlib import setuptools -HOME_PATH = pathlib.Path.home -CONFIG_PATH = pathlib.Path('lib/lg_linter/config') +HOME_PATH = os.path.expanduser('~') +CONFIG_PATH = 'lib/lg_linter/config' with open("README.md", "r") as fh: LONG_DESCRIPTION = fh.read() @@ -28,9 +27,11 @@ package_dir={'': 'lib'}, packages=setuptools.find_packages('lib'), include_package_data=True, - data_files=[ - HOME_PATH, [CONFIG_PATH / '.clang-format', CONFIG_PATH / 'pylint.rc', CONFIG_PATH / 'cpplint.py'] - ], + data_files=[('/' + HOME_PATH, [ + os.path.join(CONFIG_PATH, '.clang-format'), + os.path.join(CONFIG_PATH, 'pylint.rc'), + os.path.join(CONFIG_PATH, 'cpplint.py') + ])], scripts=[ 'lib/lg_linter/scripts/init-lg-linter', 'lib/lg_linter/scripts/deinit-lg-linter'