Closed nikhiljohn10 closed 2 years ago
Now, with PEP517 and PEP518, I think you should not look for the solution in setup.py, which is a builder IIUC. You should take a look at PEP518 and its implementation to find whatever mecanism they provide.
Please share yours results in here, as I did not take the time to investigate those myself and would love to see a nice solution to your issue :-).
In clk, we provide a bash script that automatize this, but this may not be ideal https://github.com/clk-project/clk/blob/main/install.sh
I believe that finding a PEP518 solution would be more elegant.
Question
How to run
click_completion.core.install()
command afterpip install
complete installing package?Expected result
Current situation
Since I could not find a way to run
myapp --completion
withinpip install
, I have to run it manually to enable completion. I'm looking for a way to install completion the setup.py of the project.Current click app code