File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22"""Templateflow's setup script."""
33import sys
44from 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
1816# This enables setuptools to install wheel on-the-fly
1917SETUP_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-
4619if __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 )
You can’t perform that action at this time.
0 commit comments