# HG changeset patch # User Denis Laxalde # Date 1516790593 -3600 # Node ID 08628d6d57eeb4324289d95bf0dd3cf1b9e1ebe3 # Parent 2060ee44ea9ae6c0ef83de9352bec5c7a235c2aa [pkg] Drop custom "install_data" command Not sure what this is for, the comment mentions "egg" directory, but this is quite likely an old hack that should be unnecessary when using a recent setuptools. diff -r 2060ee44ea9a -r 08628d6d57ee setup.py --- a/setup.py Wed Jan 24 11:40:12 2018 +0100 +++ b/setup.py Wed Jan 24 11:43:13 2018 +0100 @@ -27,7 +27,7 @@ from os.path import dirname, exists, isdir, join from setuptools import setup -from distutils.command import install_data + here = dirname(__file__) @@ -70,16 +70,6 @@ return result -# re-enable copying data files in sys.prefix -# overwrite install_data to use sys.prefix instead of the egg directory -class MyInstallData(install_data.install_data): - """A class that manages data files installation""" - def run(self): - _old_install_dir = self.install_dir - if self.install_dir.endswith('egg'): - self.install_dir = sys.prefix - install_data.install_data.run(self) - self.install_dir = _old_install_dir try: import setuptools.command.easy_install # only if easy_install available # monkey patch: Crack SandboxViolation verification @@ -165,8 +155,5 @@ 'pyzmq', ], }, - cmdclass={ - 'install_data': MyInstallData, - }, zip_safe=False, )