do only rely on cmdclass

This commit is contained in:
Mukundan314 2021-11-30 19:51:20 +05:30 committed by nick black
parent 34936d5f25
commit 96148a8dd9

View File

@ -37,19 +37,10 @@ class ManPageGenerator(install):
super().run()
class SdistCommand(sdist):
def run(self):
copy_include_dir()
super().run()
copy_include_dir()
class BuildCommand(build):
def run(self):
copy_include_dir()
super().run()
cmdclass = {"sdist": SdistCommand, "build": BuildCommand}
cmdclass = {}
try:
import pypandoc
cmdclass["install"] = ManPageGenerator