Flag to install all extras
See original GitHub issue- I have searched the issues of this repo and believe that this is not a duplicate.
- I have searched the documentation and believe that my question is not covered.
Feature Request
It would be handy to have a flag like --all-extras to install every package listed in any of the extras.
The specific use case is that I want the IDE to index the packages for every subsystem (AWS Lambda jobs in this case) for easier development.
Workarounds:
- Creating a separate “extra” section with all the packages from all the other extras (example). This means duplication, which means it would be really easy for the sections to get out of sync.
- Listing each extra specifically in the developer instructions.
- This ugly code, used in anger here:
poetry install --extras="$(sed --quiet '/\[tool\.poetry\.extras\]/,/^\[/{s/^\(.*\) = \[/\1/p}' pyproject.toml | sed --null-data 's/\n/ /g;s/ $//')" --remove-untracked
Issue Analytics
- State:
- Created 3 years ago
- Reactions:24
- Comments:11 (4 by maintainers)
Top Results From Across the Web
Specify extras_require with pip install -e - Stack Overflow
This should work, per example #6. For remote repos: pip install -e git+https://github.com/user/project.git#egg=project[extra].
Read more >Install Software From the Extras Library on an Amazon Linux 2 ...
To install a software package from the Extras Library, first confirm that the amazon-linux-extras repository is installed on your instance.
Read more >Commands | Documentation | Poetry - Python dependency ...
Pass --all-extras to install all defined extras for a project. ... By default poetry will install your project's package every time you run...
Read more >pip install - pip documentation v22.3.1
The pip install command also supports a --pre flag that enables installation of pre-releases and development releases. VCS Support. This is now covered...
Read more >Installing Packages - Python Packaging User Guide - Python.org
This section covers the basics of how to install Python packages. ... the --user flag has no effect when inside a virtual environment...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I don’t have an opinion either way, but I’d like to use this feature to make dev testing somewhat easier. I posted a PR for
--all-extras: #5452--all-extraswould be more explicit, and would avoid a) a special value or b) supporting any kind of regex, which would be another can of worms.