Opened 4 years ago

#62561 new enhancement

python package "has the following notes" with port select boilerplate should be more adaptive

Reported by: hmeine (Hans Meine) Owned by:
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port:

Description

Currently, installing python packages leads to a lot of notes at the end pointing to port select.

  py38-codestyle has the following notes:
    To make the Python 3.8 version of pycodestyle the one that is run when you execute the commands without a version suffix, e.g. 'pycodestyle', run:

    port select --set pycodestyle pycodestyle-py38
  py38-flake8 has the following notes:
    To make the Python 3.8 version of flake8 the one that is run when you execute the commands without a version suffix, e.g. 'flake8', run:

    port select --set flake8 flake8-38
  py38-pyflakes has the following notes:
    To make the Python 3.8 version of py-pyflakes the one that is run when you execute the commands without a version suffix, e.g. 'pyflakes', run:

    port select --set pyflakes py38-pyflakes

However, I tend to have the respective ports already selected as the default version. So, I would either run port select --set although it is not necessary, or first do a port select --list to check the current status.

The latter should be possible to automate – it would be great if the output would already indicate the current setting, so that users have all necessary information at hand to determine whether they should take action or not. Something like:

  py38-flake8 has the following notes:
    The Python 3.8 version of flake8 is already port selected to be run when you execute the commands without a version suffix. (Use "port select --list flake8" to change.)
  py38-pyflakes has the following notes:
    To make the Python 3.8 version of py-pyflakes the one that is run when you execute the commands without a version suffix (none selected so far), e.g. 'pyflakes', run:

    port select --set pyflakes py38-pyflakes

Change History (0)

Note: See TracTickets for help on using tickets.