[MacPorts] #62561: python package "has the following notes" with port select boilerplate should be more adaptive
MacPorts
noreply at macports.org
Thu Mar 25 17:42:54 UTC 2021
#62561: python package "has the following notes" with port select boilerplate
should be more adaptive
-------------------------+--------------------
Reporter: hmeine | Owner: (none)
Type: enhancement | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Keywords: | Port:
-------------------------+--------------------
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
}}}
--
Ticket URL: <https://trac.macports.org/ticket/62561>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list