Python 2.7 – allow another db version beside 4.8
hans at stare.cz
Thu Jan 11 08:28:40 UTC 2018
On Dec 27 11:56:53, vince at macports.org wrote:
> On 25 Dec 2017, at 20:30, Jan Stary <hans at stare.cz> wrote:
> > Generally, I tend to let the port/package use any version,
> > unless there is a specific reason for some specific version.
> > For example, if a port requires Python, then I consider
> > _any_ installed python to satsfy this requirement,
> > unless there is a reason it has to be python36 (or whatever).
> > What is the right way to state this in a Portfile?
> I’m not sure. You could use a file dependency instead of a port one, assuming every version installs the same set of files.
> Also, you can write a script that uses the TCL instruction glob to find out what version of a file is installed, given that the filename is composed of a stem and an extension that varies according to the version. If there’s no file, then you can decide to install whatever default version you deem fit.
> But I’m not 110% sure it’s standard practice though.
Does anyone now? If my port requires (say) python (any python),
what is the right way to say that? (In some cases, having
/usr/bin/python is just fine.)
More information about the macports-dev