Skip to content

also consider 'python3' in 'eb' script#2932

Merged
vanzod merged 2 commits intoeasybuilders:4.xfrom
boegel:eb_py3
Jun 17, 2019
Merged

also consider 'python3' in 'eb' script#2932
vanzod merged 2 commits intoeasybuilders:4.xfrom
boegel:eb_py3

Conversation

@boegel
Copy link
Copy Markdown
Member

@boegel boegel commented Jun 17, 2019

Before these changes, the eb script was already considering python2 prior to python.

Now it also considers python3, after considering python2 but before considering python.

In addition, you can specify a specific python* command to use via the $EB_PYTHON environment variable.

Verbose output of the procedure to pick a python* command to use can be obtained by setting $EB_VERBOSE:

$ EB_VERBOSE=1 eb --version
>> Considering 'python2'...
>> No 'python2' found in $PATH, skipping...
>> Considering 'python3'...
>> 'python3' version: 3.7.2, which matches Python 3 version requirement (>= 3.5)
>> Selected Python command: python3 (/usr/local/bin/python3)
>> python3 -m easybuild.main --version
This is EasyBuild 4.0.0.dev0 (framework: 4.0.0.dev0, easyblocks: 4.0.0.dev0) on host boegels-MBP.
$ EB_PYTHON=python EB_VERBOSE=1 eb --version
>> Considering 'python'...
>> 'python' version: 2.7.10, which matches Python 2 version requirement (>= 2.6)
>> Selected Python command: python (/usr/bin/python)
>> python -m easybuild.main --version
This is EasyBuild 4.0.0.dev0 (framework: 4.0.0.dev0, easyblocks: 4.0.0.dev0) on host boegels-MBP.
$ EB_PYTHON=/usr/bin/python2.7 EB_VERBOSE=1 eb --version
>> Considering '/usr/bin/python2.7'...
>> '/usr/bin/python2.7' version: 2.7.10, which matches Python 2 version requirement (>= 2.6)
>> Selected Python command: /usr/bin/python2.7 (/usr/bin/python2.7)
>> /usr/bin/python2.7 -m easybuild.main --version
This is EasyBuild 4.0.0.dev0 (framework: 4.0.0.dev0, easyblocks: 4.0.0.dev0) on host boegels-MBP.

@boegel boegel added this to the 4.0 milestone Jun 17, 2019
@vanzod vanzod merged commit f6858ea into easybuilders:4.x Jun 17, 2019
@boegel boegel deleted the eb_py3 branch June 18, 2019 06:48
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