Skip to content

make PythonPackage easyblock compatible with --module-only#884

Merged
boegel merged 3 commits intoeasybuilders:developfrom
boegel:pypkg_compat_module_only
Apr 27, 2016
Merged

make PythonPackage easyblock compatible with --module-only#884
boegel merged 3 commits intoeasybuilders:developfrom
boegel:pypkg_compat_module_only

Conversation

@boegel
Copy link
Copy Markdown
Member

@boegel boegel commented Apr 9, 2016

When using --module-only, the configure_step is skipped, resulting in self.python_cmd not being defined.

This leads to an error like:

== temporary log file in case of crash /tmp/eb-D0fij6/easybuild-zoU8DE.log
== processing EasyBuild easyconfig /vscmnt/gent_vulpix/_/user/data/gent/gvo000/gvo00002/vsc40023/wxPython-3.0.2.0-intel-2016-Python-2.7.11.eb
== building and installing wxPython/3.0.2.0-intel-2016a-Python-2.7.11...
== fetching files [skipped]
== creating build dir, resetting environment...
== unpacking [skipped]
== patching [skipped]
== preparing...
== configuring [skipped]
== building [skipped]
== testing [skipped]
== installing [skipped]
== taking care of extensions [skipped]
== postprocessing [skipped]
== sanity checking...
ERROR: Traceback (most recent call last):
  File "/user/scratchdelcatty/gent/gvo000/gvo00002/vsc40023/easybuild_easy_installed/lib/python2.6/site-packages/easybuild_framework-2.8.0dev0-py2.6.egg/easybuild/main.py", line 113
, in build_and_install_software                                                                                                                                                      
    (ec_res['success'], app_log, err) = build_and_install_one(ec, init_env)
  File "/user/scratch/gent/vsc400/vsc40023/easybuild_easy_installed/lib/python2.6/site-packages/easybuild_framework-2.8.0dev0-py2.6.egg/easybuild/framework/easyblock.py", line 2292,
 in build_and_install_one                                                                                                                                                            
    result = app.run_all_steps(run_test_cases=run_test_cases)
  File "/user/scratch/gent/vsc400/vsc40023/easybuild_easy_installed/lib/python2.6/site-packages/easybuild_framework-2.8.0dev0-py2.6.egg/easybuild/framework/easyblock.py", line 2208,
 in run_all_steps                                                                                                                                                                    
    self.run_step(step_name, step_methods)
  File "/user/scratch/gent/vsc400/vsc40023/easybuild_easy_installed/lib/python2.6/site-packages/easybuild_framework-2.8.0dev0-py2.6.egg/easybuild/framework/easyblock.py", line 2087,
 in run_step                                                                                                                                                                         
    step_method(self)()
  File "/tmp/eb-D0fij6/included-easyblocks/easybuild/easyblocks/wxpython.py", line 64, in sanity_check_step
    super(EB_wxPython, self).sanity_check_step(custom_paths=custom_paths)
  File "/user/scratch/gent/vsc400/vsc40023/easybuild_easy_installed/lib/python2.6/site-packages/easybuild_easyblocks-2.8.0dev0-py2.6.egg/easybuild/easyblocks/generic/pythonpackage.p
y", line 471, in sanity_check_step                                                                                                                                                   
    exts_filter = (orig_exts_filter[0].replace('python', self.python_cmd), orig_exts_filter[1])
TypeError: expected a character buffer object

This patch fixes the issue.

@boegel boegel added this to the v2.8.0 milestone Apr 9, 2016
@boegel
Copy link
Copy Markdown
Member Author

boegel commented Apr 9, 2016

@wpoely86 please review

@hpcugentbot
Copy link
Copy Markdown

Easyblocks unit test suite PASSed (see https://jenkins1.ugent.be/job/easybuild-easyblocks-pr-builder/1878/console for more details).

This pull request is now ready for review/testing.

Please try and find someone who can tackle this; contact @boegel if you're not sure what to do.

@wpoely86
Copy link
Copy Markdown
Member

👍

@boegel boegel closed this Apr 27, 2016
@boegel boegel reopened this Apr 27, 2016
@boegel
Copy link
Copy Markdown
Member Author

boegel commented Apr 27, 2016

(open/close to trigger Travis testing this too, apparently that's one of the go-to ways... :-/)

@hpcugentbot
Copy link
Copy Markdown

Easyblocks unit test suite FAILed.

See https://jenkins1.ugent.be/job/easybuild-easyblocks-pr-builder/1938/console for more details.

Please fix the reported issues by pushing additional commits to the branch corresponding with this pull request; contact @boegel if you're not sure what to do.

@hpcugentbot
Copy link
Copy Markdown

Easyblocks unit test suite FAILed.

See https://jenkins1.ugent.be/job/easybuild-easyblocks-pr-builder/1939/console for more details.

Please fix the reported issues by pushing additional commits to the branch corresponding with this pull request; contact @boegel if you're not sure what to do.

@hpcugentbot
Copy link
Copy Markdown

Easyblocks unit test suite PASSed (see https://jenkins1.ugent.be/job/easybuild-easyblocks-pr-builder/1943/console for more details).

This pull request is now ready for review/testing.

Please try and find someone who can tackle this; contact @boegel if you're not sure what to do.

@boegel
Copy link
Copy Markdown
Member Author

boegel commented Apr 27, 2016

updated PR was tested by Travis (cfr. https://travis-ci.org/hpcugent/easybuild-easyblocks/builds/126192549), but 'notification' is not making it back for some reason...

anyway, going in :)

@boegel boegel merged commit df4547c into easybuilders:develop Apr 27, 2016
@boegel boegel deleted the pypkg_compat_module_only branch April 27, 2016 19: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.

3 participants