问题
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