Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enhance Qt easyblock to support Qt3 #944

Merged
merged 1 commit into from
May 31, 2016
Merged

Conversation

boegel
Copy link
Member

@boegel boegel commented May 31, 2016

No description provided.

platform = 'linux-icc'
# fix -fPIC flag (-KPIC is not correct for recent Intel compilers)
qmake_conf = os.path.join('mkspecs', platform, 'qmake.conf')
apply_regex_substitutions(qmake_conf, [('-KPIC', '-fPIC')])
Copy link
Member

Choose a reason for hiding this comment

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

does this have a clean error is the file does not exist?

Copy link
Member Author

Choose a reason for hiding this comment

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

@wpoely86

>>> from easybuild.tools.filetools import apply_regex_substitutions
>>> apply_regex_substitutions('/tmp/sadfghmythergsdfdadgh', [])
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "easybuild/tools/filetools.py", line 747, in apply_regex_substitutions
    for line in fileinput.input(path, inplace=1, backup='.orig.eb'):
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/fileinput.py", line 254, in next
    line = self.readline()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/fileinput.py", line 325, in readline
    os.rename(self._filename, self._backupfilename)
OSError: [Errno 2] No such file or directory

If you want to change that, it should be tackled in apply_regex_substitutions itself imho, not in this easyblock.

Copy link
Member

Choose a reason for hiding this comment

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

true, open a PR for it 😁
The error should tell which file it's not finding.

Copy link
Member Author

Choose a reason for hiding this comment

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

@boegel
Copy link
Member Author

boegel commented May 31, 2016

Thanks for the review @wpoely86!

@boegel boegel merged commit 9062b5a into easybuilders:develop May 31, 2016
@boegel boegel deleted the Qt3 branch May 31, 2016 12:13
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.

None yet

2 participants