pip install curl_cffi
`Defaulting to user installation because normal site-packages is not writeable
Collecting curl_cffi
Using cached curl_cffi-0.5.9.tar.gz (32 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: cffi>=1.12.0 in /usr/local/lib/python3.10/site-packages (from curl_cffi) (1.15.1)
Requirement already satisfied: pycparser in /usr/local/lib/python3.10/site-packages (from cffi>=1.12.0->curl_cffi) (2.21)
Building wheels for collected packages: curl_cffi
Building wheel for curl_cffi (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for curl_cffi (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [90 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build/lib.freebsd-13.2-RELEASE-amd64-cpython-310
creating build/lib.freebsd-13.2-RELEASE-amd64-cpython-310/curl_cffi
copying curl_cffi/init.py -> build/lib.freebsd-13.2-RELEASE-amd64-cpython-310/curl_cffi
copying curl_cffi/curl.py -> build/lib.freebsd-13.2-RELEASE-amd64-cpython-310/curl_cffi
copying curl_cffi/const.py -> build/lib.freebsd-13.2-RELEASE-amd64-cpython-310/curl_cffi
copying curl_cffi/build.py -> build/lib.freebsd-13.2-RELEASE-amd64-cpython-310/curl_cffi
copying curl_cffi/aio.py -> build/lib.freebsd-13.2-RELEASE-amd64-cpython-310/curl_cffi
creating build/lib.freebsd-13.2-RELEASE-amd64-cpython-310/curl_cffi/requests
copying curl_cffi/requests/models.py -> build/lib.freebsd-13.2-RELEASE-amd64-cpython-310/curl_cffi/requests
copying curl_cffi/requests/headers.py -> build/lib.freebsd-13.2-RELEASE-amd64-cpython-310/curl_cffi/requests
copying curl_cffi/requests/cookies.py -> build/lib.freebsd-13.2-RELEASE-amd64-cpython-310/curl_cffi/requests
copying curl_cffi/requests/init.py -> build/lib.freebsd-13.2-RELEASE-amd64-cpython-310/curl_cffi/requests
copying curl_cffi/requests/session.py -> build/lib.freebsd-13.2-RELEASE-amd64-cpython-310/curl_cffi/requests
copying curl_cffi/requests/errors.py -> build/lib.freebsd-13.2-RELEASE-amd64-cpython-310/curl_cffi/requests
running egg_info
writing curl_cffi.egg-info/PKG-INFO
writing dependency_links to curl_cffi.egg-info/dependency_links.txt
writing requirements to curl_cffi.egg-info/requires.txt
writing top-level names to curl_cffi.egg-info/top_level.txt
reading manifest file 'curl_cffi.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'curl_cffi/cacert.pem'
warning: no files found matching 'curl_cffi/_wrapper.'
warning: no files found matching 'curl_cffi/include/curl/'
adding license file 'LICENSE'
writing manifest file 'curl_cffi.egg-info/SOURCES.txt'
/tmp/pip-build-env-iz94wwa0/overlay/lib/python3.10/site-packages/setuptools/command/build_py.py:207: _Warning: Package 'curl_cffi.ffi' is absent from the packages
configuration.
!!
********************************************************************************
############################
# Package would be ignored #
############################
Python recognizes 'curl_cffi.ffi' as an importable package[^1],
but it is absent from setuptools' `packages` configuration.
This leads to an ambiguous overall configuration. If you want to distribute this
package, please make sure that 'curl_cffi.ffi' is explicitly added
to the `packages` configuration field.
Alternatively, you can also rely on setuptools' discovery methods
(for example by using `find_namespace_packages(...)`/`find_namespace:`
instead of `find_packages(...)`/`find:`).
You can read more about "package discovery" on setuptools documentation page:
- https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
If you don't want 'curl_cffi.ffi' to be distributed and are
already explicitly excluding 'curl_cffi.ffi' via
`find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
you can try to use `exclude_package_data`, or `include-package-data=False` in
combination with a more fine grained `package-data` configuration.
You can read more about "package data files" on setuptools documentation page:
- https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[^1]: For Python, any directory (with suitable naming) can be imported,
even if it does not contain any `.py` files.
On the other hand, currently there is no concept of package data
directory, all directories are treated like packages.
********************************************************************************
!!
check.warn(importable)
creating build/lib.freebsd-13.2-RELEASE-amd64-cpython-310/curl_cffi/ffi
copying curl_cffi/ffi/cdef.c -> build/lib.freebsd-13.2-RELEASE-amd64-cpython-310/curl_cffi/ffi
copying curl_cffi/ffi/shim.c -> build/lib.freebsd-13.2-RELEASE-amd64-cpython-310/curl_cffi/ffi
copying curl_cffi/ffi/shim.h -> build/lib.freebsd-13.2-RELEASE-amd64-cpython-310/curl_cffi/ffi
running build_ext
generating cffi module 'build/temp.freebsd-13.2-RELEASE-amd64-cpython-310/curl_cffi._wrapper.c'
creating build/temp.freebsd-13.2-RELEASE-amd64-cpython-310
building 'curl_cffi._wrapper' extension
creating build/temp.freebsd-13.2-RELEASE-amd64-cpython-310/build
creating build/temp.freebsd-13.2-RELEASE-amd64-cpython-310/build/temp.freebsd-13.2-RELEASE-amd64-cpython-310
creating build/temp.freebsd-13.2-RELEASE-amd64-cpython-310/curl_cffi
creating build/temp.freebsd-13.2-RELEASE-amd64-cpython-310/curl_cffi/ffi
cc -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -O2 -fstack-protector-strong -pipe -fstack-protector-strong -fno-strict-aliasing -fPIC -Icurl_cffi/include -Icurl_cffi/ffi -I/usr/local/include/python3.10 -c build/temp.freebsd-13.2-RELEASE-amd64-cpython-310/curl_cffi._wrapper.c -o build/temp.freebsd-13.2-RELEASE-amd64-cpython-310/build/temp.freebsd-13.2-RELEASE-amd64-cpython-310/curl_cffi._wrapper.o
In file included from build/temp.freebsd-13.2-RELEASE-amd64-cpython-310/curl_cffi._wrapper.c:570:
curl_cffi/ffi/shim.h:5:10: fatal error: 'curl/curl.h' file not found
#include "curl/curl.h"
^~~~~~~~~~~~~
1 error generated.
error: command '/usr/bin/cc' 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 curl_cffi
Failed to build curl_cffi
ERROR: Could not build wheels for curl_cffi, which is required to install pyproject.toml-based projects~~
`