def create_cmdclass(data_dirs=None):
"""Create a command class with the given optional wrappers.
Parameters
----------
wrappers: list(str), optional
The cmdclass names to run before running other commands
data_dirs: list(str), optional.
The directories containing static data.
"""
egg = bdist_egg if 'bdist_egg' in sys.argv else bdist_egg_disabled
cmdclass = dict(
build_py=build_py,
sdist=sdist,
bdist_egg=egg,
develop=develop
)
if bdist_wheel:
cmdclass['bdist_wheel'] = bdist_wheel
return cmdclass
评论列表
文章目录