#50288: UPDATE: gpsd-3.16 ---------------------+-------------------------- Reporter: fw@… | Owner: ryandesign@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: haspatch Port: gpsd | ---------------------+-------------------------- Comment (by fw@…): Replying to [comment:8 mojca@…]:
While what you say about `bar.h` is true, depending on `python2_select` doesn't guarantee you in any way that the `python2` command exists.
Hence the (dynamically conditional) `port notes` when it doesn't (and the error if one tries to run `port test` without `python2`).
The package needs to `reinplace` the lines calling `python2` with `${prefix}/bin/python2.7`. You should not ask users to run `port select python2` manually.
While I agree that that would be more convenient for users that haven't previously used `port select python2`, it does have some disadvantages: 1) It requires patching 8 more files that otherwise don't need it. I'm trying to *reduce* the number of MacPorts-specific patches, not increase it. :-) 2) It unnecessarily breaks the ability to use Python 2.6. The only reason I made the port dependency specifically on `python27` is that I didn't want to go to the trouble of creating Python version variants (and also that the required `scons` port depends specifically on `python27`, presumably for a similar reason); the code itself will work just fine if `python2` maps to `python26`. 3) Any user interested in `PEP0394` compliance should run `port select python2`, anyway. -- Ticket URL: <https://trac.macports.org/ticket/50288#comment:9> MacPorts <https://www.macports.org/> Ports system for OS X