Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion build-with-pip.file
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@

%define pip pip3&package_dependency=py3-pip
Requires: python3 py3-pip py3-setuptools
%if "%{n}" != "py3-wheel"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hi @smuzaffar - I was looking at python packages too.. Getting errors related to wheels is likely a sign that you need to update setup tools

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried building latest setuptools but was not able to build it itself. It was complainging about missing build/script-39 directory.

BuildRequires: py3-wheel
%endif

%if "%{?source0:set}" != "set"
%define source0 pip://%{pip_name}/%{realversion}?pip_options=%{PipDownloadOptions}&pip=%{pip}&output=/%{pkgsource}
Expand Down Expand Up @@ -101,7 +104,7 @@ if [ $(cat files.list | wc -l) -eq 1 ] ; then
pip3 install --no-clean --no-deps --no-index --no-build-isolation --no-cache-dir --disable-pip-version-check --user -v %{PipInstallOptions} %{PipBuildOptions} $PIPFILE
PKG_NAME=$(pip3 show %{pip_name} --disable-pip-version-check | grep '^Name:' | sed 's|^Name: *||;s| ||g')
[ "${PKG_NAME}" = "" ] && exit 1
DEPS=$(pip3 check --disable-pip-version-check | grep "^${PKG_NAME} *%{realversion} *requires " | sed 's|,.*||;s|.* |py2-|' %{PipDepsPost} | tr '\n' ' ')
DEPS=$(pip3 check --disable-pip-version-check | grep "^${PKG_NAME} *%{realversion} *requires " | sed 's|,.*||;s|.* |py3-|' %{PipDepsPost} | tr '\n' ' ')
if [ "$DEPS" != "" ] ; then
echo "ERROR: Missing dependencies for %n (python3) found: $DEPS"
exit 1
Expand Down
2 changes: 1 addition & 1 deletion pip/Bottleneck.file
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Requires: py3-numpy py3-wheel
Requires: py3-numpy
1 change: 0 additions & 1 deletion pip/PyJWT.file

This file was deleted.

1 change: 0 additions & 1 deletion pip/PyYAML.file

This file was deleted.

2 changes: 1 addition & 1 deletion pip/aiohttp.file
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Requires: py3-attrs py3-chardet py3-multidict py3-yarl py3-async-timeout py3-typing_extensions
Requires: py3-attrs py3-chardet py3-multidict py3-yarl py3-async-timeout py3-typing-extensions
2 changes: 1 addition & 1 deletion pip/aiosqlite.file
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Requires: py3-typing_extensions py3-flit-core
Requires: py3-typing-extensions py3-flit-core
2 changes: 1 addition & 1 deletion pip/argon2-cffi.file
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Requires: py3-cffi py3-six py3-wheel
Requires: py3-cffi py3-six
2 changes: 1 addition & 1 deletion pip/astunparse.file
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Requires: py3-wheel py3-six
Requires: py3-six
1 change: 1 addition & 0 deletions pip/async-timeout.file
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Requires: py3-typing-extensions
1 change: 0 additions & 1 deletion pip/attrs.file

This file was deleted.

1 change: 1 addition & 0 deletions pip/backports-entry-points-selectable.file
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
%define pip_name backports.entry-points-selectable
1 change: 1 addition & 0 deletions pip/beniget.file
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Requires: py3-gast
2 changes: 1 addition & 1 deletion pip/bokeh.file
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Requires: py3-typing_extensions
Requires: py3-typing-extensions
%define PipPostBuildPy for x in $(ls %{i}/bin/*) ; do mv $x ${x}3; done
Requires: py3-PyYAML py3-python-dateutil py3-Jinja2 py3-numpy py3-packaging
Requires: py3-tornado py3-numpy py3-pillow
Expand Down
2 changes: 1 addition & 1 deletion pip/boost-histogram.file
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Requires: py3-numpy py3-typing py3-wheel
Requires: py3-numpy py3-typing
1 change: 0 additions & 1 deletion pip/cachy.file

This file was deleted.

1 change: 0 additions & 1 deletion pip/correctionlib.file
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
Requires: py3-pybind11 py3-numpy py3-pydantic py3-python-rapidjson

1 change: 1 addition & 0 deletions pip/histogrammar.file
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
Requires: py3-joblib py3-numpy py3-tqdm
%define PipDownloadSourceType none
%define PipPostBuild ls %{i}/bin/* | xargs -i mv '{}' '{}3'
2 changes: 1 addition & 1 deletion pip/histoprint.file
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Requires: py3-numpy py3-setuptools-scm py3-toml py3-Click
Requires: py3-numpy py3-setuptools-scm py3-toml py3-Click py3-uhi
1 change: 0 additions & 1 deletion pip/importlib-resources.file
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
Requires: py3-wheel
Requires: py3-pathlib2 py3-contextlib2 py3-singledispatch py3-typing py3-importlib-metadata py3-zipp

1 change: 0 additions & 1 deletion pip/iniconfig.file

This file was deleted.

4 changes: 2 additions & 2 deletions pip/ipykernel.file
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Requires: py3-ipython py3-jupyter_client
Requires: py3-ipython py3-jupyter_client py3-jedi py3-backcall
Requires: py3-ipython py3-jupyter-client py3-debugpy
Requires: py3-ipython py3-jupyter-client py3-jedi py3-backcall
2 changes: 1 addition & 1 deletion pip/ipython.file
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Requires: py3-jedi py3-prompt_toolkit py3-backcall
Requires: py3-jedi py3-prompt_toolkit py3-backcall py3-matplotlib-inline
%define PipPostBuildPy rm -f %{i}/bin/iptest %{i}/bin/ipython ; sed -i -e 's| %{cmsroot}/.*python3 | python3 |' %{i}/bin/*3
Requires: py3-traitlets py3-pickleshare py3-Pygments py3-prompt_toolkit py3-pexpect py3-simplegeneric
3 changes: 1 addition & 2 deletions pip/ipywidgets.file
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
Requires: py3-widgetsnbextension
#needed for py3 upgrade py2-jupyterlab-widgets
Requires: py3-widgetsnbextension py3-jupyterlab-widgets
2 changes: 1 addition & 1 deletion pip/isort.file
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
%define patchsrc sed -i -e '/.*futures.*/d' isort.egg-info/requires.txt setup.py
Requires: py3-poetry
%define RelocatePython %{i}/bin/*
3 changes: 0 additions & 3 deletions pip/jsonpickle.file
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
Requires: py3-wheel
Requires: py3-importlib-metadata


4 changes: 4 additions & 0 deletions pip/jupyter-client.file
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Requires: py3-jupyter-core py3-python-dateutil py3-pyzmq
Requires: py3-tornado py3-entrypoints py3-nest-asyncio
%define RelocatePython %{i}/bin/*
%define PipPostBuildPy for x in $(ls %{i}/bin/*) ; do mv $x ${x}3; done
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions pip/jupyter-packaging.file
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Requires: py3-packaging py3-deprecation py3-tomlkit
1 change: 1 addition & 0 deletions pip/jupyter-server-mathjax.file
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Requires: py3-jupyter-server
2 changes: 2 additions & 0 deletions pip/jupyter-server.file
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Requires: py3-jupyter-packaging py3-jupyter-client py3-nbconvert
Requires: py3-anyio py3-argon2-cffi py3-prometheus-client py3-requests-unixsocket py3-Send2Trash py3-terminado py3-websocket-client
2 changes: 1 addition & 1 deletion pip/jupyter.file
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Requires: py3-notebook py3-qtconsole py3-jupyter_console py3-nbconvert py3-ipykernel py3-ipywidgets
Requires: py3-notebook py3-qtconsole py3-jupyter-console py3-nbconvert py3-ipykernel py3-ipywidgets
4 changes: 0 additions & 4 deletions pip/jupyter_client.file

This file was deleted.

1 change: 1 addition & 0 deletions pip/jupyterlab-pygments.file
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Requires: py3-Pygments
1 change: 1 addition & 0 deletions pip/jupyterlab-widgets.file
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Requires: py3-jupyter-packaging
1 change: 0 additions & 1 deletion pip/keyring.file

This file was deleted.

9 changes: 4 additions & 5 deletions pip/llvmlite.file
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
Requires: llvm py3-wheel
Patch0: py2-llvmlite-fpic-flag
Patch1: py2-llvmlite-llvm9
Patch2: py2-llvmlite-removeduplicate
Patch3: py2-llvmlite-removeMethod
Requires: llvm
Patch0: py3-llvmlite-fpic-flag
Patch1: py3-llvmlite-version
Patch3: py3-llvmlite-removeMethod

%define source0 git+https://github.com/numba/llvmlite?obj=release0.35/v%{realversion}&export=llvmlite-%{realversion}&output=/source.tar.gz
%define PipPreBuild export LLVM_CONFIG=${LLVM_ROOT}/bin/llvm-config
1 change: 0 additions & 1 deletion pip/lockfile.file

This file was deleted.

2 changes: 1 addition & 1 deletion pip/luigi.file
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Requires: py3-tornado py3-python-daemon py3-python-dateutil
Requires: py3-tornado py3-python-daemon py3-python-dateutil py3-tenacity

%define PipPostBuildPy (cd "%{i}/bin" && for f in *; do mv ${f} ${f}3; done)
%define RelocatePython %{i}/bin/*
1 change: 1 addition & 0 deletions pip/matplotlib-inline.file
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Requires: py3-traitlets
1 change: 1 addition & 0 deletions pip/matplotlib.file
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ Requires: py3-numpy py3-pillow
export LDFLAGS="-L${FREETYPE_ROOT}/lib -L${LIBPNG_ROOT}/lib" \
export PKG_CONFIG=false
Requires: py3-cycler py3-kiwisolver py3-pyparsing py3-python-dateutil py3-certifi
Requires: py3-fonttools py3-packaging
Requires: zlib libpng freetype
2 changes: 1 addition & 1 deletion pip/more-itertools.file
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Requires: py3-six py3-wheel
Requires: py3-six
1 change: 1 addition & 0 deletions pip/mplhep.file
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
Requires: py3-numpy py3-matplotlib py3-scipy py3-requests py3-packaging
Requires: py3-mplhep-data py3-uhi
1 change: 0 additions & 1 deletion pip/mpmath.file

This file was deleted.

1 change: 0 additions & 1 deletion pip/multidict.file

This file was deleted.

1 change: 1 addition & 0 deletions pip/nbclient.file
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Requires: py3-jupyter-client py3-nbformat py3-nest-asyncio py3-traitlets
2 changes: 1 addition & 1 deletion pip/nbconvert.file
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Requires: py3-Jinja2 py3-Pygments py3-bleach py3-defusedxml py3-entrypoints py3-mistune py3-pandocfilters py3-nbformat
Requires: py3-testpath
Requires: py3-testpath py3-jupyterlab-pygments py3-nbclient
%define RelocatePython %{i}/bin/jupyter-nbconvert
1 change: 1 addition & 0 deletions pip/nbdime.file
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
Requires: py3-GitPython py3-requests py3-colorama
Requires: py3-notebook py3-GitPython
Requires: py3-jupyter-server py3-jupyter-server-mathjax
%define RelocatePython %{i}/bin/*


2 changes: 1 addition & 1 deletion pip/nbformat.file
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Requires: py3-traitlets py3-jsonschema py3-jupyter_core
Requires: py3-traitlets py3-jsonschema py3-jupyter-core
%define RelocatePython %{i}/bin/jupyter-trust
%define PipPostBuildPy for x in $(ls %{i}/bin/*) ; do mv $x ${x}3; done
2 changes: 1 addition & 1 deletion pip/notebook.file
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Requires: py3-ipykernel
Requires: py3-terminado py3-nbconvert py3-ipykernel py3-Send2Trash py3-ipaddress py3-prometheus_client py3-argon2-cffi
Requires: py3-terminado py3-nbconvert py3-ipykernel py3-Send2Trash py3-ipaddress py3-prometheus-client py3-argon2-cffi
%define PipPostBuildPy for x in $(ls %{i}/bin/*) ; do mv $x ${x}3; done
2 changes: 0 additions & 2 deletions pip/numpy.file
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
Requires: py3-cython
BuildRequires: py3-wheel

Requires: zlib OpenBLAS

%define patchsrc \
Expand Down
2 changes: 1 addition & 1 deletion pip/onnx.file
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Requires: cmake protobuf py3-protobuf py3-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/onnxmltools.file
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Requires: py3-numpy py3-onnx py3-protobuf py3-onnxconverter-common py3-skl2onnx py3-keras2onnx
%define source0 https://github.com/onnx/onnxmltools/archive/v%{realversion}.tar.gz
#define source0 https://github.com/onnx/onnxmltools/archive/v%{realversion}.tar.gz
2 changes: 1 addition & 1 deletion pip/prompt_toolkit.file
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Requires: py3-six py3-wcwidth py3-wheel
Requires: py3-six py3-wcwidth
1 change: 0 additions & 1 deletion pip/pybind11.file
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
Requires: py3-wheel
%define RelocatePython %{i}/bin/*
2 changes: 1 addition & 1 deletion pip/pydantic.file
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Requires: py3-typing_extensions
Requires: py3-typing-extensions
2 changes: 1 addition & 1 deletion pip/python-daemon.file
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Requires: py3-wheel py3-docutils py3-lockfile
Requires: py3-docutils py3-lockfile
1 change: 1 addition & 0 deletions pip/pythran.file
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Requires: py3-beniget py3-gast py3-numpy py3-ply
1 change: 1 addition & 0 deletions pip/requests-unixsocket.file
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Requires: py3-requests py3-urllib3
2 changes: 1 addition & 1 deletion pip/requests.file
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Requires: py3-urllib3 py3-chardet py3-idna py3-certifi
Requires: py3-urllib3 py3-chardet py3-idna py3-certifi py3-charset-normalizer
Loading