Skip to content

Allow tuning of build command in PythonPackage#1299

Merged
boegel merged 3 commits intoeasybuilders:developfrom
wpoely86:python-build
Nov 29, 2017
Merged

Allow tuning of build command in PythonPackage#1299
boegel merged 3 commits intoeasybuilders:developfrom
wpoely86:python-build

Conversation

@wpoely86
Copy link
Copy Markdown
Member

Most often, you need to run setup.py build but some software needs
setup.py build_ext. We now have an option to do this. The default is
still build

Most often, you need to run `setup.py build` but some software needs
`setup.py build_ext`. We now have an option to do this. The default is
still `build`
"""Build Python package using setup.py"""
if self.use_setup_py:
cmd = "%s %s setup.py build %s" % (self.cfg['prebuildopts'], self.python_cmd, self.cfg['buildopts'])
cmd = "%s %s setup.py %s %s" % (self.cfg['prebuildopts'], self.python_cmd, self.cfg['buildcmd'], self.cfg['buildopts'])
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

line too long now...

I'd suggest this:

cmd = ' '.join([self.['prebuildopts'], self.python_cmd, 'setup.py', self.cfg['buildcmd'], self.cfg['buildopts']])

@boegel boegel added this to the 3.5.0 milestone Nov 27, 2017
@boegel boegel merged commit 7462a57 into easybuilders:develop Nov 29, 2017
@wpoely86 wpoely86 deleted the python-build branch November 29, 2017 19:56
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.

2 participants