Opened 10 years ago

Closed 9 years ago

Last modified 9 years ago

#44137 closed enhancement (fixed)

root6: add some python variant by default

Reported by: mojca (Mojca Miklavec) Owned by: cjones051073 (Chris Jones)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: mattiafrancescomoro@…, g5w@…, jfcaron3, petrrr
Port: root5, root6

Description

I suggest to make one of the python variants default in root5 and root6. I don't know much about python support in ROOT, so I leave the details to others, but probably both root versions cannot share the same default variant.

Given the intensive computation time it probably makes sense to make the change at next version update.

I opened this ticket to discuss which version of python to enable with which port.

Another question is whether we could perhaps make something like py27-root6 that would only add a bunch of python files without the need to recompile the whole root for a couple of hours. (I'm not sure if that's feasible or not.)

Change History (4)

comment:1 Changed 10 years ago by jfcaron3

What actually makes the most sense to me is to have the default (non-variant) ROOT include PyROOT with the system python at /usr/bin/python. This is done in the ./configure step with --enable-python. The python2* variants should be used to include PyROOT with a MacPorts-provided python, with the same port name as the variant name.

If there is a compelling argument for a non-python* variant ROOT to NOT include PyROOT support, then I agree that one of the python2* variants should be enabled by default. I've only been on Macs since 10.7, so it seems obvious to me that python27 should be the default variant.

Yet another way: can the root6 port detect if there is already a python port installed (& selected with python_select)? Then root6 could enable python support for whatever the user already had installed. That would make the dependencies pretty strange.

comment:2 Changed 10 years ago by petrrr

Cc: petr@… added

Cc Me!

comment:3 Changed 9 years ago by mojca (Mojca Miklavec)

Resolution: fixed
Status: newclosed

The variant +python27 became the default one in r121662. In reply to jfcaron: ROOT cannot use the system Python because it would have to install files outside of MacPorts (probably inside /Library/Frameworks/Python.framework/). This is generally not acceptable.

In my opinion it would still be nice if there was a way to provide simple/lightweight ports like py27-root5, py35-root6, etc., but this is "left as an exercise to the reader" :).

comment:4 Changed 9 years ago by cjones051073 (Chris Jones)

I don't think upstream provides any of the support that would allow us to supply such lightweight py27-root5, py35-root6, etc. ports. The build is quite monolithic and python support is baked into a number of places.

Note: See TracTickets for help on using tickets.