Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

pipenv Post-Install Actions

I'm using Python via Pharo/GToolkit's PythonBridge, which uses pipenv under the hood.

Things are kicked off via this built-in PythonBridge script (install_env.sh):

#!/bin/bash
cd "$(dirname "$0")"
export PIPENV_VENV_IN_PROJECT=1
pipenv install
pipenv run pip install debugpy

One of the dependencies in my Pipfile is Playwright. Its docs list two main steps to installation:

pip install playwright
playwright install

My question is: where do I "put" the second playwright install command?

It doesn't seem practical to alter install_env.sh, which is generated at some point by PythonBridge. I was hoping pipenv might have a concept of a "post-install script hook", but DuckDuckGo-ing various combinations of those words, as well as reading the pipenv docs didn't reveal anything seemingly helpful.

like image 691
Sean DeNigris Avatar asked Oct 27 '25 23:10

Sean DeNigris


1 Answers

I think that this feature is not supported now, you can put your needs here https://github.com/pypa/pipenv/issues/2817 in order to try the pipenv develop that feature.

like image 123
Tlaloc-ES Avatar answered Oct 29 '25 13:10

Tlaloc-ES



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!