diff --git a/macros.hpc b/macros.hpc index 84d66a3..746c1b3 100644 --- a/macros.hpc +++ b/macros.hpc @@ -168,7 +168,7 @@ EOF\ %global tmp %__elflib_exclude_path \ %global __elflib_exclude_path (%tmp)|(^%hpc_base) \ %undefine tmp \ - %{expand:%([ 0%{?sle_version} -ge 150000 ] && echo %%global _hpc_python3 1)} \ + %{expand:%([ 0%{?sle_version} -ge 150000 -o 0%{?suse_version} -gt 1500 ] && echo %%global _hpc_python3 1)} \ %global _hpc_init_done 1 %hpc_init(Cc:Mm:v:V:e:) %{expand:%%_hpc_init %{**}} @@ -604,17 +604,17 @@ When this package gets updated it installs the latest version of %name. \ fi \ done -# %hpc_python_mv_to_sitearch +# %hpc_python_mv_to_sitearch [] # -# move to python sitearch, remove shebang lines and -# remove any excecute permissions. +# move to python sitearch subdir if set, remove shebang +# lines and remove any excecute permissions. # This should be done on any python files that do not contain # any executable code. %hpc_python_mv_to_sitearch() \ - _hpc_pydir=%hpc_python_sitearch_no_singlespec \ + _hpc_pydir=%{hpc_python_sitearch_no_singlespec}%{?2:/%{2}} \ _hpc_base=$(basename %{1}) \ - [ -d %{buildroot}/$_hpc_pydir ] || mkdir -p %{buildroot}/$_hpc_pydir \ - mv %{buildroot}%{1} %{buildroot}/$_hpc_pydir \ + [ -d %{buildroot}/$_hpc_pydir ] || mkdir -p %{buildroot}/${_hpc_pydir} \ + mv %{buildroot}%{1} %{buildroot}/${_hpc_pydir} \ chmod a-x %{buildroot}/$_hpc_pydir/$_hpc_base \ %{hpc_shebang_remove %{buildroot}/$_hpc_pydir/$_hpc_base} diff --git a/suse-hpc.changes b/suse-hpc.changes index 2111fcd..4e3569b 100644 --- a/suse-hpc.changes +++ b/suse-hpc.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Mon Nov 19 01:19:05 UTC 2018 - eich@suse.com + +- Improve python handling: + * set python3 as default for Factory + * allow to specify subdir to HPC pyton path + ------------------------------------------------------------------- Sun Nov 18 10:19:22 UTC 2018 - eich@suse.com