-
Notifications
You must be signed in to change notification settings - Fork 199
Closed
Milestone
Description
I did this in a fresh conda 3.13 environment on Linux 64-bit:
~ ❯ pip install pykrige
Collecting pykrige
Using cached pykrige-1.7.2.tar.gz (618 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting numpy>=1.20.0 (from pykrige)
Using cached numpy-2.2.6-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (62 kB)
Collecting scipy<2,>=1.1.0 (from pykrige)
Using cached scipy-1.15.3-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (61 kB)
Using cached scipy-1.15.3-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (37.3 MB)
Using cached numpy-2.2.6-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (16.5 MB)
Building wheels for collected packages: pykrige
Building wheel for pykrige (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for pykrige (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [87 lines of output]
/tmp/pip-build-env-zgrcbb2q/overlay/lib/python3.13/site-packages/setuptools/config/_apply_pyprojecttoml.py:82: SetuptoolsDeprecationWarning: `project.license` as a TOML table is deprecated
!!
********************************************************************************
Please use a simple string containing a SPDX expression for `project.license`. You can also use `project.license-files`. (Both options available on setuptools>=77.0.0).
By 2026-Feb-18, you need to update your project and remove deprecated calls
or your builds will no longer be supported.
See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
********************************************************************************
!!
corresp(dist, value, root_dir)
/tmp/pip-build-env-zgrcbb2q/overlay/lib/python3.13/site-packages/setuptools/config/_apply_pyprojecttoml.py:55: SetuptoolsDeprecationWarning: 'tool.setuptools.license-files' is deprecated in favor of 'project.license-files' (available on setuptools>=77.0.0).
!!
********************************************************************************
By 2026-Feb-18, you need to update your project and remove deprecated calls
or your builds will no longer be supported.
See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license-files for details.
********************************************************************************
!!
_apply_tool_table(dist, config, filename)
/tmp/pip-build-env-zgrcbb2q/overlay/lib/python3.13/site-packages/setuptools/config/_apply_pyprojecttoml.py:61: SetuptoolsDeprecationWarning: License classifiers are deprecated.
!!
********************************************************************************
Please consider removing the following classifiers in favor of a SPDX license expression:
License :: OSI Approved :: BSD License
See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
********************************************************************************
!!
dist._finalize_license_expression()
/tmp/pip-build-env-zgrcbb2q/overlay/lib/python3.13/site-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated.
!!
********************************************************************************
Please consider removing the following classifiers in favor of a SPDX license expression:
License :: OSI Approved :: BSD License
See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
********************************************************************************
!!
self._finalize_license_expression()
running bdist_wheel
running build
running build_py
creating build/lib.linux-x86_64-cpython-313/pykrige
copying src/pykrige/ck.py -> build/lib.linux-x86_64-cpython-313/pykrige
copying src/pykrige/variogram_models.py -> build/lib.linux-x86_64-cpython-313/pykrige
copying src/pykrige/compat_gstools.py -> build/lib.linux-x86_64-cpython-313/pykrige
copying src/pykrige/_version.py -> build/lib.linux-x86_64-cpython-313/pykrige
copying src/pykrige/kriging_tools.py -> build/lib.linux-x86_64-cpython-313/pykrige
copying src/pykrige/ok3d.py -> build/lib.linux-x86_64-cpython-313/pykrige
copying src/pykrige/ok.py -> build/lib.linux-x86_64-cpython-313/pykrige
copying src/pykrige/__init__.py -> build/lib.linux-x86_64-cpython-313/pykrige
copying src/pykrige/core.py -> build/lib.linux-x86_64-cpython-313/pykrige
copying src/pykrige/compat.py -> build/lib.linux-x86_64-cpython-313/pykrige
copying src/pykrige/uk.py -> build/lib.linux-x86_64-cpython-313/pykrige
copying src/pykrige/uk3d.py -> build/lib.linux-x86_64-cpython-313/pykrige
copying src/pykrige/rk.py -> build/lib.linux-x86_64-cpython-313/pykrige
creating build/lib.linux-x86_64-cpython-313/pykrige/lib
copying src/pykrige/lib/__init__.py -> build/lib.linux-x86_64-cpython-313/pykrige/lib
running build_ext
building 'pykrige.lib.cok' extension
creating build/temp.linux-x86_64-cpython-313/src/pykrige/lib
gcc -pthread -B /home/ayek72/miniforge3/envs/pykrige/share/python_compiler_compat -fno-strict-overflow -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -isystem /home/ayek72/miniforge3/envs/pykrige/include -fPIC -O2 -isystem /home/ayek72/miniforge3/envs/pykrige/include -fPIC -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -I/tmp/pip-build-env-zgrcbb2q/overlay/lib/python3.13/site-packages/numpy/_core/include -I/home/ayek72/miniforge3/envs/pykrige/include/python3.13 -c src/pykrige/lib/cok.c -o build/temp.linux-x86_64-cpython-313/src/pykrige/lib/cok.o
In file included from src/pykrige/lib/cok.c:29703:0:
/home/ayek72/miniforge3/envs/pykrige/include/python3.13/internal/pycore_frame.h: In function ‘_PyFrame_Copy’:
/home/ayek72/miniforge3/envs/pykrige/include/python3.13/internal/pycore_frame.h:121:5: error: ‘for’ loop initial declarations are only allowed in C99 mode
for (int i = 1; i < src->stacktop; i++) {
^
/home/ayek72/miniforge3/envs/pykrige/include/python3.13/internal/pycore_frame.h:121:5: note: use option -std=c99 or -std=gnu99 to compile your code
/home/ayek72/miniforge3/envs/pykrige/include/python3.13/internal/pycore_frame.h: In function ‘_PyFrame_Initialize’:
/home/ayek72/miniforge3/envs/pykrige/include/python3.13/internal/pycore_frame.h:149:5: error: ‘for’ loop initial declarations are only allowed in C99 mode
for (int i = null_locals_from; i < code->co_nlocalsplus; i++) {
^
error: command '/usr/bin/gcc' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pykrige
Failed to build pykrige
ERROR: Failed to build installable wheels for some pyproject.toml based projects (pykrige)
Metadata
Metadata
Assignees
Labels
No labels