question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:

  1. 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.
  2. Listing each extra specifically in the developer instructions.
  3. 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:closed
  • Created 3 years ago
  • Reactions:24
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

6reactions
kroeschlcommented, Apr 15, 2022

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

1reaction
l0b0commented, Apr 10, 2022

--all-extras would be more explicit, and would avoid a) a special value or b) supporting any kind of regex, which would be another can of worms.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found