From a73cec478e8a8048e579e2c6dd2c680c7645a4fd Mon Sep 17 00:00:00 2001 From: Kenneth Hoste Date: Tue, 8 Nov 2016 20:57:35 +0100 Subject: [PATCH] add comments on why $EB_VERSION and $PYTHON_VERSION are being defined --- components/dev-tools/easybuild/SPECS/easybuild.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/dev-tools/easybuild/SPECS/easybuild.spec b/components/dev-tools/easybuild/SPECS/easybuild.spec index 373e685299..152ccba707 100644 --- a/components/dev-tools/easybuild/SPECS/easybuild.spec +++ b/components/dev-tools/easybuild/SPECS/easybuild.spec @@ -74,8 +74,9 @@ export EASYBUILD_BOOTSTRAP_SOURCEPATH=%{_sourcedir} export EASYBUILD_BOOTSTRAP_DEBUG=1 export DEBUG_EASYBUILD_OPTIONS=1 export EASYBUILD_INSTALLPATH=%{install_path} -export EB_VERSION=%{version} export PATH=${LMOD_DIR}:${PATH} +# note: $EB_VERSION and $PYTHON_VERSION are only required because of bootstrap_eb.py-apply-patch.patch +export EB_VERSION=%{version} export PYTHON_VERSION=`python -c 'print ".".join(map(str, __import__("sys").version_info[:2]))'` MODULEPATH= python ./bootstrap_eb.py %{buildroot}/%{install_path}