9

I am trying to follow local setup for contributing to flask. Here is the link to contribution guide. Here, i am confused with what the following line does

pip install -e ".[dev]"

it mentioned that it install's flask in editable mode with development dependencies. so, this will show changes made in the code immediately in the local python version.(Please correct me if i am wrong). What i don't understand is ".[dev]" . What does this mean? does dev has special behaviour here or i can use anything like ".[hello]" .

davidism
  • 121,510
  • 29
  • 395
  • 339
rawwar
  • 4,834
  • 9
  • 32
  • 57
  • 2
    `".[dev]"` adds the optional installs [for `dev`](https://github.com/pallets/flask/blob/d5665e4ba6cf4f7eabdc0be047952a27965a455f/setup.py#L44). See #6 in https://pip.pypa.io/en/stable/reference/pip_install/#examples. `-e` means editable mode. Hence the description *"Install Flask in editable mode with development dependencies"*. – jonrsharpe Nov 29 '18 at 14:28
  • @jonrsharpe, can you help me with how this works? – rawwar Nov 29 '18 at 14:29
  • What exactly do you mean by *"how this works"*? – jonrsharpe Nov 29 '18 at 14:30
  • 1
    @InAFlash, ...as the documentation jonrsharpe linked indicates, you can use `[hello]` *if* the package you're installing were written to have that name be meaningful. – Charles Duffy Nov 29 '18 at 14:38
  • https://stackoverflow.com/search?q=%5Bpip%5D+what+do+mean+in+%22pip+install%22 – phd Nov 29 '18 at 14:50

0 Answers0