Post-install script with Python Poetry

六月ゝ 毕业季﹏ 提交于 2020-01-25 06:41:59

问题


Post-install script with Python setuptools

Exactly this question, but with Poetry and no Setuptools.

I want to run

print('Installation finished, doing other things...')

when my package is installed. With Setuptools you could just modify setup.py, but in Poetry there specifically is no setup.py.

What I actually want to do is generate a default .mypackage_config file and place it somewhere useful. I don't see how to do this without arbitrary code, but Poetry does not allow arbitrary code for installation. Is there any way to do this?

来源:https://stackoverflow.com/questions/59802468/post-install-script-with-python-poetry

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!