Skip to content

Commit

Permalink
Merge pull request #5323 from cms-sw/py2-py3-tools-name-cleanup
Browse files Browse the repository at this point in the history
make sure that py3/bin do not override py2/bin tools
  • Loading branch information
smuzaffar committed Nov 2, 2019
2 parents f9c9e30 + 4fb7d32 commit 0a29e57
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
3 changes: 1 addition & 2 deletions pip/ipython.file
@@ -1,3 +1,2 @@
Requires: py2-traitlets py2-pickleshare py2-Pygments py2-prompt_toolkit py2-pexpect py2-simplegeneric py2-backports
%define RelocatePython %{i}/bin/*
%define RelocatePython3 %{i}/bin/*3
%define PipPostBuildPy3 rm -f %{i}/bin/iptest %{i}/bin/ipython
2 changes: 1 addition & 1 deletion pip/jupyter_console.file
@@ -1,2 +1,2 @@
Requires: py2-ipykernel
%define RelocatePython %{i}/bin/jupyter-console
%define PipPostBuildPy3 mv %{i}/bin/jupyter-console %{i}/bin/jupyter-console3
2 changes: 1 addition & 1 deletion pip/notebook.file
@@ -1,2 +1,2 @@
Requires: py2-terminado py2-nbconvert py2-ipykernel py2-Send2Trash py2-ipaddress py2-prometheus_client
%define RelocatePython %{i}/bin/*
%define PipPostBuildPy3 for x in $(ls %{i}/bin/*) ; do mv $x ${x}3; done
2 changes: 2 additions & 0 deletions pip/numpy.file
Expand Up @@ -29,3 +29,5 @@ EOF
%{relocateConfig}lib/python*/site-packages/numpy/__config__.py \
%{relocateConfig}lib/python*/site-packages/numpy/distutils/__config__.py \
%{relocateConfig}lib/python*/site-packages/numpy/distutils/site.cfg

%define PipPostBuildPy3 rm -f %{i}/bin/f2py
2 changes: 1 addition & 1 deletion pip/py2-tensorflow.file
@@ -1,4 +1,4 @@
Requires: py2-enum34 py2-tensorboard
BuildRequires: tensorflow-sources
%define PipPreBuildPy2 PIPFILE=${TENSORFLOW_SOURCES_ROOT}/tensorflow-%{realversion}-cp27-cp27mu-linux_%{_arch}.whl
%define PipPostBuild ls %{i}/bin/* | xargs -i cp '{}' '{}2'
%define PipPostBuild rm -f %{i}/bin/tensorboard* ; ls %{i}/bin/* | xargs -i cp '{}' '{}2'
2 changes: 1 addition & 1 deletion pip/py3-tensorflow.file
@@ -1,4 +1,4 @@
BuildRequires: tensorflow-python3-sources
Requires: py3-tensorboard
%define PipPreBuildPy3 PIPFILE=${TENSORFLOW_PYTHON3_SOURCES_ROOT}/tensorflow-%{realversion}-cp36-cp36m-linux_%{_arch}.whl
%define PipPostBuild ls %{i}/bin/* | xargs -i mv '{}' '{}3'
%define PipPostBuild rm -f %{i}/bin/tensorboard* ; ls %{i}/bin/* | xargs -i mv '{}' '{}3'
1 change: 0 additions & 1 deletion pip/pylint.file
@@ -1,3 +1,2 @@
Requires: py2-astroid py2-six py2-isort py2-mccabe py2-configparser
%define RelocatePython %{i}/bin/*
%define PipPostBuildPy3 for x in $(ls %{i}/bin/*) ; do mv $x ${x}3; done
2 changes: 1 addition & 1 deletion pip/pytest.file
@@ -1,3 +1,3 @@
Requires: py2-more-itertools py2-atomicwrites py2-attrs py2-funcsigs py2-pathlib2 py2-pluggy py2-py py2-scandir
Requires: py2-packaging py2-wcwidth
%define RelocatePython %{i}/bin/*
%define PipPostBuildPy3 for x in $(ls %{i}/bin/*) ; do mv $x ${x}3; done

0 comments on commit 0a29e57

Please sign in to comment.