X-Git-Url: https://pwan.org/git/?p=margebot.git;a=blobdiff_plain;f=setup.py;h=5d091a5409249e213639289e424217c075b896a1;hp=06eac90b5a10e743a37c0ce4a0832be75256c555;hb=HEAD;hpb=ffa092d66bc20fd84d556ae341cc2a60e06d933b diff --git a/setup.py b/setup.py index 06eac90..5d091a5 100644 --- a/setup.py +++ b/setup.py @@ -3,15 +3,13 @@ Setup.py """ # pragma pylint: disable=invalid-name from distutils.errors import DistutilsSetupError -from distutils.filelist import FileList -import os from setuptools import setup import setuptools.command.sdist import setuptools.command.upload import setuptools.command.install -# Errbot plugins aren't distributed as eggs so stub out the sdist, install and upload commands +# Errbot plugins aren't distributed as eggs so stub out the sdist, install and upload commands class ErrbotSdistCommand(setuptools.command.sdist.sdist): """ No sdist command for now. @@ -32,7 +30,7 @@ class ErrbotInstallCommand(setuptools.command.install.install): """ Short circuit the install command """ - def run(self): + def run(self): raise DistutilsSetupError("No install command - copy the ./plugin files to a 'Marge' directory under your Errbot's plugins directory.") @@ -58,9 +56,11 @@ setup( setup_requires=['pytest-runner'], tests_require=tests_required, + zip_safe=False, + cmdclass={ - 'install' : ErrbotInstallCommand, - 'sdist' : ErrbotSdistCommand, - 'upload' : ErrbotUploadCommand, + 'install': ErrbotInstallCommand, + 'sdist': ErrbotSdistCommand, + 'upload': ErrbotUploadCommand, } )