Skip to content

fix autosetup.py when OpenMP is turned off#343

Open
lukashergt wants to merge 1 commit into
lesgourg:masterfrom
lukashergt:fix_autosetuppy
Open

fix autosetup.py when OpenMP is turned off#343
lukashergt wants to merge 1 commit into
lesgourg:masterfrom
lukashergt:fix_autosetuppy

Conversation

@lukashergt

Copy link
Copy Markdown

The automatic installation of classy is handled in the Makefile as:

ifdef OMPFLAG
	cp python/setup.py python/autosetup.py
else
	grep -v "lgomp" python/setup.py > python/autosetup.py
endif
	cd python; export CC=$(CC); $(PYTHON) autosetup.py install || $(PYTHON) autosetup.py install --user
	rm python/autosetup.py

If OpenMP is turned off, this deletes the line containing lgomp. However, that line contains a closing bracket which mustn't be deleted. In this PR I moved the closing bracket to a new line such that the line containing lgomp can be safely deleted.

… safely delete the line containing 'lgomp'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant