Failed building wheel due to deprecation ?
pip install jppy results in :
stbci1_student_venv) [rbruijn@stbc-i1 forStudents]$ pip install jppy
Collecting jppy
Downloading jppy-3.5.0.tar.gz (1.5 MB)
|████████████████████████████████| 1.5 MB 16.3 MB/s
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting toml
Downloading toml-0.10.2-py2.py3-none-any.whl (16 kB)
Collecting pybind11>=2.4
Using cached pybind11-2.13.6-py3-none-any.whl (243 kB)
Requirement already satisfied: setuptools>=40.6.2 in ./stbci1_student_venv/lib/python3.9/site-packages (from jppy) (53.0.0)
Collecting setuptools_scm
Using cached setuptools_scm-8.1.0-py3-none-any.whl (43 kB)
Collecting tomli>=1
Using cached tomli-2.2.1-py3-none-any.whl (14 kB)
Collecting typing-extensions
Using cached typing_extensions-4.12.2-py3-none-any.whl (37 kB)
Collecting packaging>=20
Using cached packaging-24.2-py3-none-any.whl (65 kB)
Building wheels for collected packages: jppy
Building wheel for jppy (pyproject.toml) ... error
ERROR: Command errored out with exit status 1:
command: /project/antares/rbruijn/forStudents/stbci1_student_venv/bin/python3 /project/antares/rbruijn/forStudents/stbci1_student_venv/lib64/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py build_wheel /tmp/tmpsltsgbtc
cwd: /tmp/pip-install-x_72noyn/jppy_9dc38010a7614594934dbe2c8e171916
Complete output (57 lines):
running bdist_wheel
/tmp/pip-build-env-ei7sm63x/overlay/lib/python3.9/site-packages/setuptools/_distutils/cmd.py:124: SetuptoolsDeprecationWarning: bdist_wheel.universal is deprecated
!!
********************************************************************************
With Python 2.7 end-of-life, support for building universal wheels
(i.e., wheels that support both Python 2 and Python 3)
is being obviated.
Please discontinue using this option, or if you still need it,
file an issue with pypa/setuptools describing your use case.
By 2025-Aug-30, you need to update your project and remove deprecated calls
or your builds will no longer be supported.
********************************************************************************
!! self.finalize_options() running build running build_py creating build/lib.linux-x86_64-cpython-39/jppy copying src/jppy/pdf_evaluator.py -> build/lib.linux-x86_64-cpython-39/jppy copying src/jppy/version.py -> build/lib.linux-x86_64-cpython-39/jppy copying src/jppy/init.py -> build/lib.linux-x86_64-cpython-39/jppy running egg_info writing src/jppy.egg-info/PKG-INFO writing dependency_links to src/jppy.egg-info/dependency_links.txt writing requirements to src/jppy.egg-info/requires.txt writing top-level names to src/jppy.egg-info/top_level.txt ERROR setuptools_scm._file_finders.git listing git files failed - pretending there aren't any reading manifest file 'src/jppy.egg-info/SOURCES.txt' adding license file 'LICENSE' writing manifest file 'src/jppy.egg-info/SOURCES.txt' copying src/jppy/.gitkeep -> build/lib.linux-x86_64-cpython-39/jppy copying src/jppy/JppyOscProbInterpolator.hh -> build/lib.linux-x86_64-cpython-39/jppy copying src/jppy/constants.cc -> build/lib.linux-x86_64-cpython-39/jppy copying src/jppy/geane.cc -> build/lib.linux-x86_64-cpython-39/jppy copying src/jppy/lang.cc -> build/lib.linux-x86_64-cpython-39/jppy copying src/jppy/npe.cc -> build/lib.linux-x86_64-cpython-39/jppy copying src/jppy/oscprob.cc -> build/lib.linux-x86_64-cpython-39/jppy copying src/jppy/pdf.cc -> build/lib.linux-x86_64-cpython-39/jppy copying src/jppy/utils.hh -> build/lib.linux-x86_64-cpython-39/jppy running build_ext creating tmp g++ -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/project/antares/rbruijn/forStudents/stbci1_student_venv/include -I/usr/include/python3.9 -c /tmp/tmpptr2pwkl.cpp -o tmp/tmpptr2pwkl.o -std=c++14 g++ -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/project/antares/rbruijn/forStudents/stbci1_student_venv/include -I/usr/include/python3.9 -c /tmp/tmpq_qhrsbb.cpp -o tmp/tmpq_qhrsbb.o -fvisibility=hidden building 'jppy.constants' extension creating build/temp.linux-x86_64-cpython-39/src/jppy g++ -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/tmp/pip-build-env-ei7sm63x/overlay/lib/python3.9/site-packages/pybind11/include -I/tmp/pip-build-env-ei7sm63x/overlay/lib/python3.9/site-packages/pybind11/include -I/project/antares/rbruijn/forStudents/Jpp/software -I/project/antares/rbruijn/forStudents/stbci1_student_venv/include -I/usr/include/python3.9 -c src/jppy/constants.cc -o build/temp.linux-x86_64-cpython-39/src/jppy/constants.o -DVERSION_INFO="3.5.0" -std=c++14 -fvisibility=hidden In file included from /tmp/pip-build-env-ei7sm63x/overlay/lib/python3.9/site-packages/pybind11/include/pybind11/attr.h:13, from /tmp/pip-build-env-ei7sm63x/overlay/lib/python3.9/site-packages/pybind11/include/pybind11/detail/class.h:12, from /tmp/pip-build-env-ei7sm63x/overlay/lib/python3.9/site-packages/pybind11/include/pybind11/pybind11.h:12, from src/jppy/constants.cc:1: /tmp/pip-build-env-ei7sm63x/overlay/lib/python3.9/site-packages/pybind11/include/pybind11/detail/common.h:274:10: fatal error: Python.h: No such file or directory 274 | #include <Python.h> | ^~~~~~~~~~ compilation terminated. error: command '/bin/g++' failed with exit code 1
ERROR: Failed building wheel for jppy Failed to build jppy ERROR: Could not build wheels for jppy, which is required to install pyproject.toml-based projects