Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#33144 closed enhancement (wontfix)

Would be nice if py27-rbtools installed post-review instead of post-review-2.7

Reported by: mkae (Marko Käning) Owned by: singingwolfboy@…
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: Cc:
Port: py27-rbtools


Hi singingwolfboy,

I've got several parallel MacPorts installations on my machine and I tripped over the following problem:

On installation 1 I installed port py-rbtools. A necessary dep is py24-rbtools and python24 etc. then.

On installation 2 I installed port py27-rbtools, because I wanted to avoid having to install all the python24 stuff. So far so good.

But when I call post-review on my 2nd installation the executable can't be found since it is named post-review-2.7 in that case.

I'd actually prefer if py27-rbtools could not be installed with py24-rbtools in place.

I understood that py*-rbtools are all handled by the py-rbtools portfile, so I guess it is impossible to mark the versions from 24 to 27 as conflicting with each other.

But I'd prefer if the py27-rbtools port would also create a post-review executable.

That would ease things a bit, since then I would have only one entry for the post-review in my ~/.gitconfig like this:

    post-review = !post-review --guess-summary --guess-description --username=kaning --parent=master --tracking-branch=origin/master --target-groups=kmymoney

Anyway, this is just a thought for improvement of the portfile, since another workaround for me is to get rid of py24-rbtools completely and install py27-rbtools on all my MP installations. :-)

Greets, Marko

Change History (3)

comment:1 Changed 9 years ago by mkae (Marko Käning)

Summary: py-rbtools misses dependency to py-simplejsonWould be nice if py27-rbtools installed post-review instead of post-review-2.7

comment:2 Changed 9 years ago by singingwolfboy@…

Resolution: wontfix
Status: newclosed

Macports is designed to allow installations of Python (for example, 2.4 and 2.7) to exist side-by-side without interfering with each other, including executables installed by modules like rbtools. All these executables get a suffix of the version of Python they use, except for Python 2.4 -- and that exception is only for backwards compatibility reasons. If you want "post-review" executable without a suffix, I suggest you create an executable symbolic link pointing at the version you want, and put that symbolic link on your path. For example, you can have a "local/bin" directory in your home directory, have a "post-review" symlink in that directory that points at /opt/local/bin/post-review-2.7, and put "~/local/bin" in your PATH environment variable.

comment:3 Changed 9 years ago by mkae (Marko Käning)

OK, I expected something like this. Thanks for your response.

I worked around it by just installing rb27-tools on all my MP installations.

No problem.

Note: See TracTickets for help on using tickets.