Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make sure that py3/bin do not override py2/bin tools #5323

Merged
merged 1 commit into from Nov 2, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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