[Python-modules-commits] [python-axiom] 04/16: Remove post-install plugin cache regeneration.

Tristan Seligmann mithrandi at moszumanska.debian.org
Sat Sep 10 15:25:43 UTC 2016


This is an automated email from the git hooks/post-receive script.

mithrandi pushed a commit to branch master
in repository python-axiom.

commit 71163374b01a6c24653d6e7fa646a9c95dfb3e23
Author: Tristan Seligmann <mithrandi at debian.org>
Date:   Sat Sep 10 16:37:07 2016 +0200

    Remove post-install plugin cache regeneration.
    
    This does not do anything useful during a Debian package build, and
    causes some cruft to be introduced into the unpacked source.
    
    Author: Tristan Seligmann <mithrandi at debian.org>
    Forwarded: not-needed
---
 setup.py | 21 ---------------------
 1 file changed, 21 deletions(-)

diff --git a/setup.py b/setup.py
index 772fa0e..283dac0 100644
--- a/setup.py
+++ b/setup.py
@@ -1,5 +1,4 @@
 from setuptools import setup, find_packages
-from setuptools.command.install import install as Install
 import re
 
 versionPattern = re.compile(r"""^__version__ = ['"](.*?)['"]$""", re.M)
@@ -8,23 +7,6 @@ with open("axiom/_version.py", "rt") as f:
 
 
 
-class InstallAndRegenerate(Install):
-    def run(self):
-        """
-        Runs the usual install logic, then regenerates the plugin cache.
-        """
-        Install.run(self)
-        _regenerateCache()
-
-
-
-def _regenerateCache():
-    from twisted import plugin
-    from axiom import plugins
-    list(plugin.getPlugins(plugin.IPlugin)) # Twisted
-    list(plugin.getPlugins(plugin.IPlugin, plugins)) # Axiom
-
-
 setup(
     name="Axiom",
     version=version,
@@ -40,9 +22,6 @@ setup(
     ],
     packages=find_packages() + ['twisted.plugins'],
     scripts=['bin/axiomatic'],
-    cmdclass={
-        "install": InstallAndRegenerate,
-    },
     include_package_data=True,
 
     license="MIT",

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-axiom.git



More information about the Python-modules-commits mailing list