[go: nahoru, domu]

Skip to content

Commit

Permalink
Merge pull request cantools#279 from AxelVoitier/259-matplotlib-dep
Browse files Browse the repository at this point in the history
Adds "plot" extra in setup.py
  • Loading branch information
eerimoq committed Mar 2, 2021
2 parents fa02f5b + aebdcf5 commit 87d1ec2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,13 @@ For more information see
$ python3 -m cantools plot --help
Note that by default matplotlib is not installed with cantools. But it can be by specifying an extra
at installation:

.. code-block:: python
$ python3 -m pip install cantools[plot]
The dump subcommand
^^^^^^^^^^^^^^^^^^^

Expand Down
3 changes: 3 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ def find_version():
'diskcache',
'argparse_addons',
],
extras_require=dict(
plot=['matplotlib'],
),
test_suite="tests",
entry_points = {
'console_scripts': ['cantools=cantools.__init__:_main']
Expand Down

0 comments on commit 87d1ec2

Please sign in to comment.