Suggestion to slightly simplify pypi ports

Joshua Root jmr at macports.org
Sun Jun 23 08:43:13 UTC 2019


On 2019-6-23 17:52 , Mojca Miklavec wrote:
> Hi,
> 
> I would like to suggest providing simplification for the following four lines:
> 
> name                py-foo
> version             1.2.3
> master_sites        pypi:[string index ${python.rootname} 0]/${python.rootname}
> distname            ${python.rootname}-${version}
> 
> which could read like the following, for example to set all four lines:
> 
> pypi.setup          foo 2.3.1

Please, no. Setup procs like this are an anti-pattern IMO, since they
make what's actually happening much more opaque.

The portgroup could easily set defaults for master_sites and distname
without a setup proc.

- Josh


More information about the macports-dev mailing list