Adding custom operations on pip install <my_package>[<extra>] #7869
-
When the user installs my package via I have looked into the docu and code and have not seen how to do that. Because setup.py is not called any more, I don't know, where even to put a workaround, e.g. re.match sys.argv for [triggering_extra]. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hey @dboeckenhoff, "post install" script are discourage because they are usually unexpected and can be dangerous. So this is not supported by Poetry. Instead your package should provide a command that must be run by the user explicit after installing. fin swimmer |
Beta Was this translation helpful? Give feedback.
-
If I use my_package as a dependency in another library, how would I trigger the script without cloning the source? |
Beta Was this translation helpful? Give feedback.
Hey @dboeckenhoff,
"post install" script are discourage because they are usually unexpected and can be dangerous. So this is not supported by Poetry.
Instead your package should provide a command that must be run by the user explicit after installing.
fin swimmer