我正在尝试将安装后步骤添加到设置.py。安装工作正常,但是运行(self)中的代码从未执行。在
我尝试过的事情(没有结果):
版本:
玩具示例:
from setuptools import setup
from setuptools.command.install import install
class MyCommand(install):
def run(self):
print("Hello, developer, how are you? :)")
install.run(self)
if __name__ == '__main__':
setup(
cmdclass={
'install': MyCommand,
}
)
目前没有回答
相关问题 更多 >
编程相关推荐