Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]: support installing browsers as extras #2502

Open
DetachHead opened this issue Jul 30, 2024 · 2 comments
Open

[Feature]: support installing browsers as extras #2502

DetachHead opened this issue Jul 30, 2024 · 2 comments

Comments

@DetachHead
Copy link

🚀 Feature Request

python packages can define extras, which are additional optional parts of the package. more info here

it would be nice if playwright defined each browser as an optional extra, so that they can be installed like so:

pip install playwright[chromium,firefox]

Example

No response

Motivation

this prevents the user from having to manually run playwright install after installing all of their dependencies. in my project, we have an "install dependencies" script which basically just runs both poetry install and playwright install. it would be nice if we could just specify the browsers as extras in pyproject.toml so we don't need the additional script.

@danphenderson
Copy link
Contributor

Great! So, if a browser isn't specified, do you propose that nothing changes? For example, if the user installs Playwright as pip install playwright, then they will still have to use the playwright install script.

@DetachHead
Copy link
Author

yeah

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants