Skip to content

Conversation

@jfgrimm
Copy link
Member

@jfgrimm jfgrimm commented Jan 20, 2022

(created using eb --new-pr)

@boegel boegel changed the title Add support for optional build options enhance Geant4 easyblock: add support for optional build options Feb 1, 2022
@boegel boegel added this to the next release (4.5.3?) milestone Feb 1, 2022
@boegel boegel modified the milestones: 4.5.3, release after 4.5.3 Feb 9, 2022
# map software requirements and corresponding configopts to custom options
custom_options_map = {
# option: ([dep_names], configopt)
'enable_freetype': (['freetype'], "-DGEANT4_USE_FREETYPE=ON"),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We would normally do this the other way around.
I.e., if the easyconfig has freetype as a dependency, turn on GEANT4_USE_FREETYPE
That makes for less things to tinker with in the easyconfig.
The same of course goes for everything else with simple dep(s) -> enable-something

self.cfg.update('configopts', cfg_opt)

# cannot enable both OpenInventor and OpenInventorQt
if self.cfg['enable_inventor'] and self.cfg['enable_inventorqt']:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So this would then become a check if both SoXt and SoQt are included as deps.

Comment on lines +78 to +79
'install_data': [False, "Download and install Geant4 datasests", CUSTOM],
'install_data_dir': [False, "Custom directory for Geant4 data files", CUSTOM],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is already a Geant4-data easyconfig that Geant4 should depend on that handles the data.
I suggest using that instead.

That way there is a consistent version of data installed for each version of Geant4

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good point, I somehow missed that

@akesandgren
Copy link
Contributor

@jfgrimm any updates on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants