Skip to content

Commit 9c38a59

Browse files
committed
MAINT: remove post-installation hook
1 parent a82d691 commit 9c38a59

File tree

1 file changed

+0
-31
lines changed

1 file changed

+0
-31
lines changed

setup.py

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
"""Templateflow's setup script."""
33
import sys
44
from setuptools import setup
5-
from setuptools.command.install import install
6-
from setuptools.command.develop import develop
75

86

97
# Give setuptools a hint to complain if it's too old a version
@@ -18,38 +16,9 @@
1816
# This enables setuptools to install wheel on-the-fly
1917
SETUP_REQUIRES += ["wheel"] if "bdist_wheel" in sys.argv else []
2018

21-
22-
def make_cmdclass(basecmd):
23-
"""Decorate setuptools commands."""
24-
base_run = basecmd.run
25-
26-
def new_run(self):
27-
from templateflow.conf import setup_home
28-
29-
setup_home()
30-
base_run(self)
31-
32-
basecmd.run = new_run
33-
return basecmd
34-
35-
36-
@make_cmdclass
37-
class CheckHomeDevCommand(develop):
38-
"""Setuptools command."""
39-
40-
41-
@make_cmdclass
42-
class CheckHomeProdCommand(install):
43-
"""Setuptools command."""
44-
45-
4619
if __name__ == "__main__":
4720
""" Install entry-point """
4821
setup(
4922
name="templateflow",
5023
setup_requires=SETUP_REQUIRES,
51-
cmdclass={
52-
"develop": CheckHomeDevCommand,
53-
"install": CheckHomeProdCommand,
54-
},
5524
)

0 commit comments

Comments
 (0)