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

More py2/py3 cleanup #7099

Merged
merged 1 commit into from Jul 5, 2021
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
944 changes: 0 additions & 944 deletions das-cache.file

This file was deleted.

1 change: 1 addition & 0 deletions fwlite-tool-conf.spec
Expand Up @@ -43,6 +43,7 @@ Requires: tinyxml2-toolfile
Requires: md5-toolfile
Requires: davix-toolfile
Requires: py2-numpy-toolfile
Requires: py3-numpy-toolfile
Requires: OpenBLAS-toolfile
Requires: py3-pybind11-toolfile
Requires: fwlite_python_tools
Expand Down
3 changes: 2 additions & 1 deletion fwlite_python_tools.spec
Expand Up @@ -4,8 +4,9 @@
Source: none

Requires: py2-six
Requires: py3-six
Requires: py3-scipy
Requires: py2-numpy
Requires: py3-numpy

%prep

Expand Down
2 changes: 1 addition & 1 deletion madgraph5amcatnlo.spec
Expand Up @@ -7,7 +7,7 @@ Patch0: madgraph5amcatnlo-config
# Compile and install internal and external packages
Patch1: madgraph5amcatnlo-compile

Requires: python3 py2-six
Requires: python3 py3-six
Requires: hepmc
# Needed for ExRoot analysis package
Requires: root
Expand Down
2 changes: 1 addition & 1 deletion mxnet-predict.spec
Expand Up @@ -9,7 +9,7 @@ Source: git+https://github.com/%{github_user}/incubator-mxnet.git?obj=%{branch}/

BuildRequires: cmake ninja

Requires: OpenBLAS python3 py2-numpy py3-numpy
Requires: OpenBLAS python3 py3-numpy

%prep
%setup -q -n %{n}-%{realversion}
Expand Down
2 changes: 1 addition & 1 deletion onnxruntime.spec
Expand Up @@ -6,7 +6,7 @@
Source: git+https://github.com/%{github_user}/%{n}.git?obj=%{branch}/%{tag}&export=%{n}-%{realversion}&submodules=1&output=/%{n}-%{realversion}.tgz

BuildRequires: cmake ninja
Requires: protobuf py3-numpy py2-wheel py3-onnx zlib libpng py3-pybind11
Requires: protobuf py3-numpy py3-wheel py3-onnx zlib libpng py3-pybind11
%if "%{cmsos}" != "slc7_aarch64"
Requires: cuda cudnn
%endif
Expand Down
2 changes: 1 addition & 1 deletion opencv.spec
Expand Up @@ -7,7 +7,7 @@
Source0: git+https://github.com/%{github_user}/opencv.git?obj=%{branch}/%{tag}&export=%{n}-%{realversion}&output=/%{n}-%{realversion}-%{tag}.tgz
Source1: https://patch-diff.githubusercontent.com/raw/opencv/opencv/pull/19692.patch
BuildRequires: cmake ninja
Requires: python3 py2-numpy py3-numpy libpng libjpeg-turbo libtiff zlib eigen OpenBLAS
Requires: python3 py3-numpy libpng libjpeg-turbo libtiff zlib eigen OpenBLAS

%prep
%setup -n %{n}-%{realversion}
Expand Down
2 changes: 1 addition & 1 deletion pip/Bottleneck.file
@@ -1 +1 @@
Requires: py2-numpy py3-numpy py2-wheel
Requires: py3-numpy py3-wheel
2 changes: 1 addition & 1 deletion pip/Keras.file
@@ -1,2 +1,2 @@
Requires: py2-PyYAML py2-six py3-Theano
Requires: py3-PyYAML py3-six py3-Theano
Requires: py3-h5py py3-keras-applications py3-keras-preprocessing
2 changes: 1 addition & 1 deletion pip/PyJWT.file
@@ -1 +1 @@
Requires: py2-wheel
Requires: py3-wheel
2 changes: 1 addition & 1 deletion pip/absl-py.file
@@ -1 +1 @@
Requires: py2-six
Requires: py3-six
2 changes: 1 addition & 1 deletion pip/argon2-cffi.file
@@ -1 +1 @@
Requires: py3-cffi py2-six py2-wheel
Requires: py3-cffi py3-six py3-wheel
2 changes: 1 addition & 1 deletion pip/astroid.file
@@ -1,2 +1,2 @@
Requires: py3-lazy-object-proxy py2-six py3-wrapt py3-singledispatch py2-backports-functools_lru_cache
Requires: py3-lazy-object-proxy py3-six py3-wrapt py3-singledispatch
Requires: py3-pytest-runner
2 changes: 1 addition & 1 deletion pip/astunparse.file
@@ -1 +1 @@
Requires: py2-wheel py2-six
Requires: py3-wheel py3-six
2 changes: 1 addition & 1 deletion pip/attrs.file
@@ -1 +1 @@
Requires: py2-wheel
Requires: py3-wheel
2 changes: 1 addition & 1 deletion pip/awkward.file
@@ -1 +1 @@
Requires: py2-numpy py3-numpy py3-pytest-runner
Requires: py3-numpy py3-pytest-runner
2 changes: 1 addition & 1 deletion pip/awkward1.file
@@ -1,2 +1,2 @@
Requires: py2-numpy py3-numpy py3-pytest-runner py3-pybind11 cmake
Requires: py3-numpy py3-pytest-runner py3-pybind11 cmake
%define source0 git+https://github.com/scikit-hep/awkward-1.0?obj=main/%{realversion}&export=%{n}-%{realversion}&submodules=1&output=/source.tar.gz
2 changes: 0 additions & 2 deletions pip/backports-os.file

This file was deleted.

2 changes: 0 additions & 2 deletions pip/backports-weakref.file

This file was deleted.

2 changes: 1 addition & 1 deletion pip/bokeh.file
@@ -1,3 +1,3 @@
Requires: py2-PyYAML py3-python-dateutil py3-Jinja2 py2-numpy py3-packaging
Requires: py3-PyYAML py3-python-dateutil py3-Jinja2 py3-numpy py3-packaging
Requires: py3-tornado py3-numpy py3-pillow
%define RelocatePython %{i}/bin/*
2 changes: 1 addition & 1 deletion pip/boost-histogram.file
@@ -1 +1 @@
Requires: py3-numpy py3-typing py2-wheel
Requires: py3-numpy py3-typing py3-wheel
2 changes: 1 addition & 1 deletion pip/cachy.file
@@ -1 +1 @@
Requires: py2-wheel
Requires: py3-wheel
2 changes: 1 addition & 1 deletion pip/cmsml.file
@@ -1,3 +1,3 @@
Requires: py2-six
Requires: py3-six

%define RelocatePython %{i}/bin/*
4 changes: 2 additions & 2 deletions pip/conan.file
@@ -1,3 +1,3 @@
Requires: py3-python-dateutil py3-requests py3-PyJWT py3-tqdm py2-PyYAML py3-Jinja2 py3-Pygments py3-patch-ng py3-pluginbase
Requires: py3-fasteners py3-patch-ng py3-pluginbase py3-node-semver py3-distro py2-future py3-deprecation py3-bottle py3-colorama
Requires: py3-python-dateutil py3-requests py3-PyJWT py3-tqdm py3-PyYAML py3-Jinja2 py3-Pygments py3-patch-ng py3-pluginbase
Requires: py3-fasteners py3-patch-ng py3-pluginbase py3-node-semver py3-distro py3-future py3-deprecation py3-bottle py3-colorama
%define PipPostBuildPy3 sed -i -e 's| %{cmsroot}/.*python3 | python3 |' %{i}/bin/conan*
2 changes: 1 addition & 1 deletion pip/cycler.file
@@ -1 +1 @@
Requires: py2-six
Requires: py3-six
2 changes: 1 addition & 1 deletion pip/fasteners.file
@@ -1 +1 @@
Requires: py2-six
Requires: py3-six
2 changes: 1 addition & 1 deletion pip/fire.file
@@ -1 +1 @@
Requires: py2-six py3-termcolor
Requires: py3-six py3-termcolor
2 changes: 1 addition & 1 deletion pip/fs.file
@@ -1,2 +1,2 @@
Requires: py2-six py3-typing py3-appdirs py3-pytz
Requires: py3-six py3-typing py3-appdirs py3-pytz
%define RelocatePython %{i}/bin/*
2 changes: 1 addition & 1 deletion pip/google-auth.file
@@ -1 +1 @@
Requires: py3-cachetools py3-pyasn1-modules py3-rsa py2-six
Requires: py3-cachetools py3-pyasn1-modules py3-rsa py3-six
2 changes: 1 addition & 1 deletion pip/google-pasta.file
@@ -1 +1 @@
Requires: py2-six
Requires: py3-six
2 changes: 1 addition & 1 deletion pip/grpcio.file
@@ -1 +1 @@
Requires: py2-six
Requires: py3-six
2 changes: 1 addition & 1 deletion pip/h5py.file
@@ -1,3 +1,3 @@
Requires: py2-numpy py3-numpy hdf5 py2-six
Requires: py3-numpy hdf5 py3-six
Requires: py3-cython py3-pkgconfig openmpi
%define PipPreBuild export HDF5_DIR=${HDF5_ROOT} CC="mpicc"
2 changes: 1 addition & 1 deletion pip/hepdata-lib.file
@@ -1 +1 @@
Requires: root py3-pytest py3-pytest-cov py2-PyYAML py2-future py3-pylint
Requires: root py3-pytest py3-pytest-cov py3-PyYAML py3-future py3-pylint
2 changes: 1 addition & 1 deletion pip/histbook.file
@@ -1 +1 @@
Requires: py2-numpy py3-numpy
Requires: py3-numpy
2 changes: 1 addition & 1 deletion pip/histoprint.file
@@ -1 +1 @@
Requires: py3-numpy py2-setuptools-scm py3-toml py3-Click
Requires: py3-numpy py3-setuptools-scm py3-toml py3-Click
2 changes: 1 addition & 1 deletion pip/html5lib.file
@@ -1 +1 @@
Requires: py2-six py3-packaging py3-webencodings py3-pyparsing py3-appdirs
Requires: py3-six py3-packaging py3-webencodings py3-pyparsing py3-appdirs
2 changes: 1 addition & 1 deletion pip/hyperopt.file
@@ -1,4 +1,4 @@
Requires: py2-six py3-nose py2-future py3-pymongo py3-scipy py3-tqdm
Requires: py3-six py3-nose py3-pymongo py3-scipy py3-tqdm
Requires: py3-scipy py3-networkx py3-cloudpickle
%define patchsrc sed -i -e 's|packages = None|packages = ["hyperopt"]|' setup.py
%define RelocatePython %{i}/bin/*
2 changes: 1 addition & 1 deletion pip/importlib-resources.file
@@ -1,3 +1,3 @@
Requires: py2-wheel
Requires: py3-wheel
Requires: py3-pathlib2 py3-contextlib2 py3-singledispatch py3-typing py3-importlib-metadata py3-zipp

2 changes: 1 addition & 1 deletion pip/iniconfig.file
@@ -1 +1 @@
Requires: py2-wheel
Requires: py3-wheel
2 changes: 0 additions & 2 deletions pip/isort.file
@@ -1,4 +1,2 @@
Requires: py2-backports-functools_lru_cache

%define patchsrc sed -i -e '/.*futures.*/d' isort.egg-info/requires.txt setup.py
%define RelocatePython %{i}/bin/*
2 changes: 1 addition & 1 deletion pip/jsonpickle.file
@@ -1,4 +1,4 @@
Requires: py2-wheel
Requires: py3-wheel
Requires: py3-importlib-metadata


2 changes: 1 addition & 1 deletion pip/jsonschema.file
@@ -1,4 +1,4 @@
Requires: py3-repoze-lru py3-argparse py3-pyrsistent
Requires: py3-attrs py2-six py3-importlib-metadata
Requires: py3-attrs py3-six py3-importlib-metadata
%define RelocatePython %{i}/bin/jsonschema

2 changes: 1 addition & 1 deletion pip/keras-applications.file
@@ -1 +1 @@
Requires: py2-numpy py3-h5py py3-numpy
Requires: py3-h5py py3-numpy
2 changes: 1 addition & 1 deletion pip/keras-preprocessing.file
@@ -1 +1 @@
Requires: py2-numpy py3-numpy py2-six
Requires: py3-numpy py3-six
2 changes: 1 addition & 1 deletion pip/keyring.file
@@ -1 +1 @@
Requires: py2-wheel
Requires: py3-wheel
2 changes: 1 addition & 1 deletion pip/law.file
@@ -1,3 +1,3 @@
Requires: py2-six py3-luigi py3-scinum
Requires: py3-six py3-luigi py3-scinum

%define RelocatePython %{i}/bin/*
2 changes: 1 addition & 1 deletion pip/lazy-object-proxy.file
@@ -1 +1 @@
Requires: py2-setuptools-scm
Requires: py3-setuptools-scm
2 changes: 1 addition & 1 deletion pip/llvmlite.file
@@ -1,4 +1,4 @@
Requires: llvm py2-wheel
Requires: llvm py3-wheel
Patch0: py2-llvmlite-fpic-flag
Patch1: py2-llvmlite-llvm9
Patch2: py2-llvmlite-removeduplicate
Expand Down
2 changes: 1 addition & 1 deletion pip/lockfile.file
@@ -1 +1 @@
Requires: py2-wheel
Requires: py3-wheel
2 changes: 1 addition & 1 deletion pip/lz4.file
@@ -1,4 +1,4 @@
Requires: lz4 py2-future py3-pkgconfig py2-setuptools-scm
Requires: lz4 py3-future py3-pkgconfig py3-setuptools-scm

%define PipBuildOptions --global-option=build_ext --global-option="-L${LZ4_ROOT}/lib" --global-option="-I${LZ4_ROOT}/include"

Expand Down
2 changes: 1 addition & 1 deletion pip/mock.file
@@ -1 +1 @@
Requires: py2-six py3-funcsigs py3-pbr
Requires: py3-six py3-funcsigs py3-pbr
2 changes: 1 addition & 1 deletion pip/more-itertools.file
@@ -1 +1 @@
Requires: py2-six py2-wheel
Requires: py3-six py3-wheel
2 changes: 1 addition & 1 deletion pip/mpmath.file
@@ -1 +1 @@
BuildRequires: py2-wheel
BuildRequires: py3-wheel
2 changes: 1 addition & 1 deletion pip/multidict.file
@@ -1 +1 @@
Requires: py2-wheel
Requires: py3-wheel
2 changes: 1 addition & 1 deletion pip/numexpr.file
@@ -1 +1 @@
Requires: py2-numpy py3-numpy
Requires: py3-numpy
2 changes: 1 addition & 1 deletion pip/onnx.file
@@ -1,4 +1,4 @@
Requires: cmake py2-numpy protobuf py3-protobuf py2-six py3-typing_extensions py3-numpy py3-pytest-runner
Requires: cmake protobuf py3-protobuf py3-six py3-typing_extensions py3-numpy py3-pytest-runner

%define PipPreBuild export ONNX_ML=1
%define RelocatePython %{i}/bin/*
2 changes: 1 addition & 1 deletion pip/packaging.file
@@ -1 +1 @@
Requires: py3-pyparsing py2-six py3-attrs
Requires: py3-pyparsing py3-six py3-attrs
2 changes: 1 addition & 1 deletion pip/pandas.file
@@ -1 +1 @@
Requires: py2-six py3-python-dateutil py3-pytz py2-numpy py3-numpy py3-cython
Requires: py3-six py3-python-dateutil py3-pytz py3-numpy py3-cython
2 changes: 1 addition & 1 deletion pip/parsimonious.file
@@ -1 +1 @@
Requires: py2-six
Requires: py3-six
2 changes: 1 addition & 1 deletion pip/pathlib2.file
@@ -1 +1 @@
Requires: py2-six py3-scandir
Requires: py3-six py3-scandir
2 changes: 1 addition & 1 deletion pip/prompt_toolkit.file
@@ -1 +1 @@
Requires: py2-six py2-wcwidth
Requires: py3-six py3-wcwidth py3-wheel
2 changes: 1 addition & 1 deletion pip/protobuf.file
@@ -1 +1 @@
Requires: py2-six py3-packaging py3-pyparsing py3-appdirs
Requires: py3-six py3-packaging py3-pyparsing py3-appdirs
2 changes: 1 addition & 1 deletion pip/py.file
@@ -1 +1 @@
Requires: py2-setuptools-scm
Requires: py3-setuptools-scm
1 change: 0 additions & 1 deletion pip/py2-Jinja2.file

This file was deleted.

File renamed without changes.
22 changes: 0 additions & 22 deletions pip/py2-matplotlib.file

This file was deleted.

File renamed without changes.
3 changes: 0 additions & 3 deletions pip/py2-scipy.file

This file was deleted.

File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions pip/py3-PyYAML.file
@@ -0,0 +1 @@
BuildRequires: py3-wheel
1 change: 1 addition & 0 deletions pip/py3-future.file
@@ -0,0 +1 @@
%define PipPostBuildPy3 for x in $(ls %{i}/bin/*) ; do mv $x ${x}3; done
1 change: 1 addition & 0 deletions pip/py3-hyperopt.file
@@ -0,0 +1 @@
Requires: py3-future
2 changes: 1 addition & 1 deletion pip/py3-numba.file
@@ -1,2 +1,2 @@
Requires: py3-funcsigs py2-six py3-singledispatch py3-llvmlite py3-numpy python3
Requires: py3-funcsigs py3-six py3-singledispatch py3-llvmlite py3-numpy python3
%define RelocatePython %{i}/bin/*
2 changes: 1 addition & 1 deletion pip/py3-onnxconverter-common.file
@@ -1,2 +1,2 @@
Requires: py2-numpy py3-numpy py3-onnx py3-protobuf py2-six
Requires: py3-numpy py3-onnx py3-protobuf py3-six
%define source0 https://github.com/microsoft/onnxconverter-common/archive/v%{realversion}.tar.gz
1 change: 1 addition & 0 deletions pip/py3-prettytable.file
@@ -0,0 +1 @@
Requires: py3-wcwidth
2 changes: 1 addition & 1 deletion pip/py3-scipy.file
@@ -1,4 +1,4 @@
Requires: py3-numpy py3-cython py2-wheel py3-pybind11
Requires: py3-numpy py3-cython py3-wheel py3-pybind11

%define PipPreBuild\
if [[ `gcc --version | head -1 | cut -d' ' -f3 | cut -d. -f1,2,3 | tr -d .` -gt 1000 ]] ; then export FFLAGS="${FFLAGS_OPT} -fallow-argument-mismatch -fPIC" ; fi \
1 change: 1 addition & 0 deletions pip/py3-setuptools-scm.file
@@ -0,0 +1 @@
Requires: py3-wheel
2 changes: 1 addition & 1 deletion pip/py3-skl2onnx.file
@@ -1,2 +1,2 @@
Requires: py2-six py3-numpy py3-scipy py3-protobuf py3-onnx py3-scikit-learn py3-onnxconverter-common
Requires: py3-six py3-numpy py3-scipy py3-protobuf py3-onnx py3-scikit-learn py3-onnxconverter-common
%define source0 https://github.com/onnx/sklearn-onnx/archive/%{realversion}.tar.gz
2 changes: 1 addition & 1 deletion pip/py3-tables.file
@@ -1,2 +1,2 @@
Requires: py3-numexpr py2-six hdf5 bz2lib py3-mock py3-numpy
Requires: py3-numexpr py3-six hdf5 bz2lib py3-mock py3-numpy
%define PipPostBuildPy3 for x in $(ls %{i}/bin/*) ; do mv $x ${x}3; done
2 changes: 1 addition & 1 deletion pip/py3-tensorflow.file
@@ -1,4 +1,4 @@
Requires: py3-tensorboard py3-opt-einsum py3-tensorflow-estimator py3-wrapt py3-google-pasta py3-scipy
Requires: tensorflow-sources
%define PipPreBuildPy3 PIPFILE=${TENSORFLOW_SOURCES_ROOT}/tensorflow-%{realversion}-cp38-cp38-linux_%{_arch}.whl
%define PipPreBuildPy3 PIPFILE=${TENSORFLOW_SOURCES_ROOT}/tensorflow-%{realversion}-cp%{cms_python3_major_minor}-cp%{cms_python3_major_minor}-linux_%{_arch}.whl
%define PipPostBuild rm -f %{i}/bin/tensorboard* ; ls %{i}/bin/* | xargs -i mv '{}' '{}3'
1 change: 1 addition & 0 deletions pip/py3-wheel.file
@@ -0,0 +1 @@
%define PipPostBuildPy3 for x in $(ls %{i}/bin/*) ; do mv $x ${x}3; done
2 changes: 1 addition & 1 deletion pip/pybind11.file
@@ -1,2 +1,2 @@
Requires: py2-wheel
Requires: py3-wheel
%define RelocatePython %{i}/bin/*
2 changes: 1 addition & 1 deletion pip/pycuda.file
@@ -1 +1 @@
Requires: py2-numpy py3-numpy cuda py3-pytools py3-pytest py3-decorator py3-appdirs py3-Mako
Requires: py3-numpy cuda py3-pytools py3-pytest py3-decorator py3-appdirs py3-Mako
2 changes: 1 addition & 1 deletion pip/pylint.file
@@ -1 +1 @@
Requires: py3-astroid py2-six py3-isort py3-mccabe
Requires: py3-astroid py3-six py3-isort py3-mccabe
2 changes: 1 addition & 1 deletion pip/pyrsistent.file
@@ -1 +1 @@
Requires: py2-six
Requires: py3-six
2 changes: 1 addition & 1 deletion pip/pytest-runner.file
@@ -1 +1 @@
Requires: py2-setuptools-scm
Requires: py3-setuptools-scm
2 changes: 1 addition & 1 deletion pip/pytest.file
@@ -1,4 +1,4 @@
Requires: py3-more-itertools py3-atomicwrites py3-attrs py3-funcsigs py3-pathlib2 py3-pluggy py3-py py3-scandir
Requires: py3-packaging py2-wcwidth
Requires: py3-packaging py3-wcwidth
Requires: py3-iniconfig py3-toml
%define PipPostBuildPy3 for x in $(ls %{i}/bin/*) ; do mv $x ${x}3; done
2 changes: 1 addition & 1 deletion pip/python-daemon.file
@@ -1 +1 @@
Requires: py2-wheel py3-docutils py3-lockfile
Requires: py3-wheel py3-docutils py3-lockfile
2 changes: 1 addition & 1 deletion pip/python-dateutil.file
@@ -1 +1 @@
Requires: py2-six py2-setuptools-scm
Requires: py3-six py3-setuptools-scm
2 changes: 1 addition & 1 deletion pip/pytools.file
@@ -1 +1 @@
Requires: py3-decorator py3-appdirs py2-six py2-numpy py3-numpy
Requires: py3-decorator py3-appdirs py3-six py3-numpy