error: subprocess-exited-with-error
× installing build dependencies for cryptography did not run successfully.
│ exit code: 1
╰─> [38 lines of output]
Ignoring cffi: markers 'python_version >= "3.15" and platform_python_implementation != "PyPy"' don't match your environment
Collecting maturin<2,>=1.14.1
Using cached maturin-1.14.1-py3-none-manylinux_2_12_x86_64.manylinux2010_x86_64.musllinux_1_1_x86_64.whl.metadata (16 kB)
Collecting cffi>=2.0.0
Using cached cffi-2.1.1.tar.gz (530 kB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'error'
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [20 lines of output]
Traceback (most recent call last):
File "/tmp/tmpmrq18dh0/venv/lib/python3.13t/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 389, in <module>
main()
~~~~^^
File "/tmp/tmpmrq18dh0/venv/lib/python3.13t/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 373, in main
json_out["return_val"] = hook(**hook_input["kwargs"])
~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/tmpmrq18dh0/venv/lib/python3.13t/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 143, in get_requires_for_build_wheel
return hook(config_settings)
File "/tmp/pip-build-env-gdxdd9sg/overlay/lib/python3.13t/site-packages/setuptools/build_meta.py", line 333, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=[])
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-gdxdd9sg/overlay/lib/python3.13t/site-packages/setuptools/build_meta.py", line 301, in _get_build_requires
self.run_setup()
~~~~~~~~~~~~~~^^
File "/tmp/pip-build-env-gdxdd9sg/overlay/lib/python3.13t/site-packages/setuptools/build_meta.py", line 317, in run_setup
exec(code, locals()) # noqa: S102 # exec is intentional here
~~~~^^^^^^^^^^^^^^^^
File "<string>", line 22, in <module>
RuntimeError: CFFI does not support the free-threaded build of CPython 3.13. Upgrade to free-threaded 3.14 or newer to use CFFI with the free-threaded build.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed to build 'cffi' when getting requirements to build wheel
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed to build 'cryptography' when installing build dependencies for cryptography
error: subprocess-exited-with-error
× installing build dependencies for cryptography did not run successfully.
│ exit code: 1
╰─> [37 lines of output]
Collecting maturin!=1.12.0,<2,>=1.9.4
Using cached maturin-1.13.3-py3-none-manylinux_2_12_x86_64.manylinux2010_x86_64.musllinux_1_1_x86_64.whl.metadata (16 kB)
Collecting cffi>=2.0.0
Using cached cffi-2.0.0.tar.gz (523 kB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'error'
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [20 lines of output]
Traceback (most recent call last):
File "/tmp/tmpihebonh8/venv/lib/python3.13t/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 389, in <module>
main()
~~~~^^
File "/tmp/tmpihebonh8/venv/lib/python3.13t/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 373, in main
json_out["return_val"] = hook(**hook_input["kwargs"])
~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/tmpihebonh8/venv/lib/python3.13t/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 143, in get_requires_for_build_wheel
return hook(config_settings)
File "/tmp/pip-build-env-xsr8lw_c/overlay/lib/python3.13t/site-packages/setuptools/build_meta.py", line 333, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=[])
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-xsr8lw_c/overlay/lib/python3.13t/site-packages/setuptools/build_meta.py", line 301, in _get_build_requires
self.run_setup()
~~~~~~~~~~~~~~^^
File "/tmp/pip-build-env-xsr8lw_c/overlay/lib/python3.13t/site-packages/setuptools/build_meta.py", line 317, in run_setup
exec(code, locals())
~~~~^^^^^^^^^^^^^^^^
File "<string>", line 22, in <module>
RuntimeError: CFFI does not support the free-threaded build of CPython 3.13. Upgrade to free-threaded 3.14 or newer to use CFFI with the free-threaded build.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed to build 'cffi' when getting requirements to build wheel
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed to build 'cryptography' when installing build dependencies for cryptography
error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [10 lines of output]
Checking for Rust toolchain....
Running `maturin pep517 write-dist-info --metadata-directory /tmp/pip-modern-metadata-1in8eknl --interpreter /tmp/tmp9tja5a5_/venv/bin/python`
error: failed to parse lock file at: /tmp/pip-install-welyokzb/rpds-py_7cfe284ec94349aa967f3b524bc87885/Cargo.lock
Caused by:
lock file version `4` was found, but this version of Cargo does not understand this lock file, perhaps Cargo needs to be updated?
💥 maturin failed
Caused by: Cargo metadata failed. Does your crate compile with `cargo build`?
Caused by: `cargo metadata` exited with an error:
Error running maturin: Command '['maturin', 'pep517', 'write-dist-info', '--metadata-directory', '/tmp/pip-modern-metadata-1in8eknl', '--interpreter', '/tmp/tmp9tja5a5_/venv/bin/python']' returned non-zero exit status 1.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> rpds-py
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
copying libcst/metadata/tests/test_type_inference_provider.py -> build/lib.linux-x86_64-cpython-313t/libcst/metadata/tests
running egg_info
writing libcst.egg-info/PKG-INFO
writing dependency_links to libcst.egg-info/dependency_links.txt
writing requirements to libcst.egg-info/requires.txt
writing top-level names to libcst.egg-info/top_level.txt
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching '*' found under directory 'native/target'
adding license file 'LICENSE'
writing manifest file 'libcst.egg-info/SOURCES.txt'
/tmp/pip-build-env-aleejjdc/overlay/lib/python3.13t/site-packages/setuptools/command/build_py.py:215: _Warning: Package 'libcst.tests.pyre' is absent from the `packages` configuration.
!!
********************************************************************************
############################
# Package would be ignored #
############################
Python recognizes 'libcst.tests.pyre' 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 'libcst.tests.pyre' 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 'libcst.tests.pyre' to be distributed and are
already explicitly excluding 'libcst.tests.pyre' 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)
copying libcst/py.typed -> build/lib.linux-x86_64-cpython-313t/libcst
creating build/lib.linux-x86_64-cpython-313t/libcst/tests/pyre
copying libcst/tests/pyre/.pyre_configuration -> build/lib.linux-x86_64-cpython-313t/libcst/tests/pyre
copying libcst/tests/pyre/simple_class.json -> build/lib.linux-x86_64-cpython-313t/libcst/tests/pyre
copying libcst/tests/pyre/simple_class.py -> build/lib.linux-x86_64-cpython-313t/libcst/tests/pyre
copying libcst/_parser/conversions/README.md -> build/lib.linux-x86_64-cpython-313t/libcst/_parser/conversions
copying libcst/codemod/tests/codemod_formatter_error_input.py.txt -> build/lib.linux-x86_64-cpython-313t/libcst/codemod/tests
running build_ext
running build_rust
error: failed to parse lock file at: /tmp/pip-install-9e2oifo3/libcst_e911fd35f15a4269b4d87feb229e8ea7/native/Cargo.lock
Caused by:
lock file version `4` was found, but this version of Cargo does not understand this lock file, perhaps Cargo needs to be updated?
error: `cargo metadata --manifest-path native/libcst/Cargo.toml --format-version 1` failed with code 101
-- Output captured from stdout:
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for libcst
Failed to build libcst
error: failed-wheel-build-for-install
× Failed to build installable wheels for some pyproject.toml based projects
╰─> libcst
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed to build 'pyarrow' when installing build dependencies for pyarrow
error: subprocess-exited-with-error
× Building wheel for cryptography (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [19 lines of output]
Running `maturin pep517 build-wheel -i /tmp/tmpxu4g52yi/venv/bin/python --compatibility off`
📦 Including license file "/tmp/pip-install-_o489qnt/cryptography_9c826064def545b992ebe86df4046b34/LICENSE"
📦 Including license file "/tmp/pip-install-_o489qnt/cryptography_9c826064def545b992ebe86df4046b34/LICENSE.APACHE"
📦 Including license file "/tmp/pip-install-_o489qnt/cryptography_9c826064def545b992ebe86df4046b34/LICENSE.BSD"
🍹 Building a mixed python/rust project
🔗 Found pyo3 bindings with abi3 support
🐍 Found CPython 3.13t at /tmp/tmpxu4g52yi/venv/bin/python
📡 Using build options locked from pyproject.toml
⚠️ Warning: CPython 3.13t at /tmp/tmpxu4g52yi/venv/bin/python does not yet support abi3 so the build artifacts will be version-specific.
warning: /tmp/pip-install-_o489qnt/cryptography_9c826064def545b992ebe86df4046b34/src/rust/cryptography-openssl/Cargo.toml: unused manifest key: lints
warning: /tmp/pip-install-_o489qnt/cryptography_9c826064def545b992ebe86df4046b34/src/rust/Cargo.toml: unused manifest key: lints
warning: /tmp/pip-install-_o489qnt/cryptography_9c826064def545b992ebe86df4046b34/src/rust/cryptography-key-parsing/Cargo.toml: unused manifest key: lints
warning: /tmp/pip-install-_o489qnt/cryptography_9c826064def545b992ebe86df4046b34/src/rust/cryptography-cffi/Cargo.toml: unused manifest key: lints
error: package `cryptography-openssl v0.1.0 (/tmp/pip-install-_o489qnt/cryptography_9c826064def545b992ebe86df4046b34/src/rust/cryptography-openssl)` cannot be built because it requires rustc 1.74.0 or newer, while the currently active rustc version is 1.63.0
💥 maturin failed
Caused by: Failed to build a native library through cargo
Caused by: Cargo build finished with "exit status: 101": `env -u CARGO PYO3_ENVIRONMENT_SIGNATURE="cpython-3.13-64bit" PYO3_PYTHON="/tmp/tmpxu4g52yi/venv/bin/python" PYTHON_SYS_EXECUTABLE="/tmp/tmpxu4g52yi/venv/bin/python" "cargo" "rustc" "--message-format" "json-render-diagnostics" "--locked" "--manifest-path" "/tmp/pip-install-_o489qnt/cryptography_9c826064def545b992ebe86df4046b34/src/rust/Cargo.toml" "--release" "--lib"`
Error: command ['maturin', 'pep517', 'build-wheel', '-i', '/tmp/tmpxu4g52yi/venv/bin/python', '--compatibility', 'off'] returned non-zero exit status 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for cryptography
ERROR: Failed to build installable wheels for some pyproject.toml based projects (cryptography)
error: subprocess-exited-with-error
× installing build dependencies for cryptography did not run successfully.
│ exit code: 1
╰─> [38 lines of output]
Ignoring cffi: markers 'python_version >= "3.15" and platform_python_implementation != "PyPy"' don't match your environment
Collecting maturin<2,>=1.14.1
Using cached maturin-1.15.0-py3-none-manylinux_2_12_x86_64.manylinux2010_x86_64.musllinux_1_1_x86_64.whl.metadata (17 kB)
Collecting cffi>=2.0.0
Using cached cffi-2.1.1.tar.gz (530 kB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'error'
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [20 lines of output]
Traceback (most recent call last):
File "/tmp/tmpzde9sexf/venv/lib/python3.13t/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 389, in <module>
main()
~~~~^^
File "/tmp/tmpzde9sexf/venv/lib/python3.13t/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 373, in main
json_out["return_val"] = hook(**hook_input["kwargs"])
~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/tmpzde9sexf/venv/lib/python3.13t/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 143, in get_requires_for_build_wheel
return hook(config_settings)
File "/tmp/pip-build-env-hr14n7iv/overlay/lib/python3.13t/site-packages/setuptools/build_meta.py", line 333, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=[])
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-hr14n7iv/overlay/lib/python3.13t/site-packages/setuptools/build_meta.py", line 301, in _get_build_requires
self.run_setup()
~~~~~~~~~~~~~~^^
File "/tmp/pip-build-env-hr14n7iv/overlay/lib/python3.13t/site-packages/setuptools/build_meta.py", line 317, in run_setup
exec(code, locals()) # noqa: S102 # exec is intentional here
~~~~^^^^^^^^^^^^^^^^
File "<string>", line 22, in <module>
RuntimeError: CFFI does not support the free-threaded build of CPython 3.13. Upgrade to free-threaded 3.14 or newer to use CFFI with the free-threaded build.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed to build 'cffi' when getting requirements to build wheel
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed to build 'cryptography' when installing build dependencies for cryptography
error: subprocess-exited-with-error
× installing build dependencies for cryptography did not run successfully.
│ exit code: 1
╰─> [39 lines of output]
Ignoring cffi: markers 'python_version >= "3.15" and platform_python_implementation != "PyPy"' don't match your environment
Collecting maturin<2,>=1.14.1
Using cached maturin-1.15.0-py3-none-manylinux_2_12_x86_64.manylinux2010_x86_64.musllinux_1_1_x86_64.whl.metadata (17 kB)
Collecting cffi>=2.0.0
Downloading cffi-2.1.1.tar.gz (530 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 530.8/530.8 kB 19.3 MB/s 0:00:00
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'error'
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [20 lines of output]
Traceback (most recent call last):
File "/tmp/tmpl7h0nf_h/venv/lib/python3.13t/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 389, in <module>
main()
~~~~^^
File "/tmp/tmpl7h0nf_h/venv/lib/python3.13t/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 373, in main
json_out["return_val"] = hook(**hook_input["kwargs"])
~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/tmpl7h0nf_h/venv/lib/python3.13t/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 143, in get_requires_for_build_wheel
return hook(config_settings)
File "/tmp/pip-build-env-7ti9_u00/overlay/lib/python3.13t/site-packages/setuptools/build_meta.py", line 333, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=[])
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-7ti9_u00/overlay/lib/python3.13t/site-packages/setuptools/build_meta.py", line 301, in _get_build_requires
self.run_setup()
~~~~~~~~~~~~~~^^
File "/tmp/pip-build-env-7ti9_u00/overlay/lib/python3.13t/site-packages/setuptools/build_meta.py", line 317, in run_setup
exec(code, locals()) # noqa: S102 # exec is intentional here
~~~~^^^^^^^^^^^^^^^^
File "<string>", line 22, in <module>
RuntimeError: CFFI does not support the free-threaded build of CPython 3.13. Upgrade to free-threaded 3.14 or newer to use CFFI with the free-threaded build.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed to build 'cffi' when getting requirements to build wheel
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed to build 'cryptography' when installing build dependencies for cryptography
error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [10 lines of output]
Checking for Rust toolchain....
Running `maturin pep517 write-dist-info --metadata-directory /tmp/pip-modern-metadata-ueqjc7zz --interpreter /tmp/tmpirriwzs9/venv/bin/python`
error: failed to parse lock file at: /tmp/pip-install-uy8d7nub/rpds-py_6697f61841374493ab1f5fcc3f72326d/Cargo.lock
Caused by:
lock file version `4` was found, but this version of Cargo does not understand this lock file, perhaps Cargo needs to be updated?
💥 maturin failed
Caused by: Cargo metadata failed. Does your crate compile with `cargo build`?
Caused by: `cargo metadata` exited with an error:
Error running maturin: Command '['maturin', 'pep517', 'write-dist-info', '--metadata-directory', '/tmp/pip-modern-metadata-ueqjc7zz', '--interpreter', '/tmp/tmpirriwzs9/venv/bin/python']' returned non-zero exit status 1.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> rpds-py
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [22 lines of output]
Checking for Rust toolchain....
Running `maturin pep517 write-dist-info --metadata-directory /tmp/pip-modern-metadata-4norey71 --interpreter /tmp/tmpkmllu9kd/venv/bin/python`
Downloading crates ...
Downloaded errno v0.3.14
Downloaded anyhow v1.0.102
Downloaded dispatch2 v0.3.1
Downloaded pyo3-macros v0.28.3
Downloaded block2 v0.6.2
Downloaded itoa v1.0.18
Downloaded windows-link v0.2.1
Downloaded wit-bindgen-rust-macro v0.51.0
error: failed to parse manifest at `/root/.cargo/registry/src/github.com-1ecc6299db9ec823/wit-bindgen-rust-macro-0.51.0/Cargo.toml`
Caused by:
failed to parse the `edition` key
Caused by:
this version of Cargo is older than the `2024` edition, and only supports `2015`, `2018`, and `2021` editions.
💥 maturin failed
Caused by: Cargo metadata failed. Does your crate compile with `cargo build`?
Caused by: `cargo metadata` exited with an error:
Error running maturin: Command '['maturin', 'pep517', 'write-dist-info', '--metadata-directory', '/tmp/pip-modern-metadata-4norey71', '--interpreter', '/tmp/tmpkmllu9kd/venv/bin/python']' returned non-zero exit status 1.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> safetensors
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
sts/test_parent_node_provider.py -> build/lib.linux-x86_64-cpython-313t/libcst/metadata/tests
copying libcst/metadata/tests/test_position_provider.py -> build/lib.linux-x86_64-cpython-313t/libcst/metadata/tests
copying libcst/metadata/tests/test_reentrant_codegen.py -> build/lib.linux-x86_64-cpython-313t/libcst/metadata/tests
copying libcst/metadata/tests/test_scope_provider.py -> build/lib.linux-x86_64-cpython-313t/libcst/metadata/tests
copying libcst/metadata/tests/test_span_provider.py -> build/lib.linux-x86_64-cpython-313t/libcst/metadata/tests
copying libcst/metadata/tests/test_type_inference_provider.py -> build/lib.linux-x86_64-cpython-313t/libcst/metadata/tests
running egg_info
writing libcst.egg-info/PKG-INFO
writing dependency_links to libcst.egg-info/dependency_links.txt
writing requirements to libcst.egg-info/requires.txt
writing top-level names to libcst.egg-info/top_level.txt
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching '*' found under directory 'native/target'
adding license file 'LICENSE'
writing manifest file 'libcst.egg-info/SOURCES.txt'
/tmp/pip-build-env-wk3726wu/overlay/lib/python3.13t/site-packages/setuptools/command/build_py.py:215: _Warning: Package 'libcst.tests.pyre' is absent from the `packages` configuration.
!!
********************************************************************************
############################
# Package would be ignored #
############################
Python recognizes 'libcst.tests.pyre' 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 'libcst.tests.pyre' 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 'libcst.tests.pyre' to be distributed and are
already explicitly excluding 'libcst.tests.pyre' 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)
copying libcst/py.typed -> build/lib.linux-x86_64-cpython-313t/libcst
creating build/lib.linux-x86_64-cpython-313t/libcst/tests/pyre
copying libcst/tests/pyre/.pyre_configuration -> build/lib.linux-x86_64-cpython-313t/libcst/tests/pyre
copying libcst/tests/pyre/simple_class.json -> build/lib.linux-x86_64-cpython-313t/libcst/tests/pyre
copying libcst/tests/pyre/simple_class.py -> build/lib.linux-x86_64-cpython-313t/libcst/tests/pyre
copying libcst/_parser/conversions/README.md -> build/lib.linux-x86_64-cpython-313t/libcst/_parser/conversions
copying libcst/codemod/tests/codemod_formatter_error_input.py.txt -> build/lib.linux-x86_64-cpython-313t/libcst/codemod/tests
running build_ext
running build_rust
error: failed to parse lock file at: /tmp/pip-install-el9s69xn/libcst_1d04f616adfd44418887259bb5b88cc3/native/Cargo.lock
Caused by:
lock file version `4` was found, but this version of Cargo does not understand this lock file, perhaps Cargo needs to be updated?
error: `cargo metadata --manifest-path native/libcst/Cargo.toml --format-version 1` failed with code 101
-- Output captured from stdout:
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for libcst
error: failed-wheel-build-for-install
× Failed to build installable wheels for some pyproject.toml based projects
╰─> libcst
error: subprocess-exited-with-error
× Building wheel for cryptography (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [19 lines of output]
Running `maturin pep517 build-wheel -i /tmp/tmpo3muk0me/venv/bin/python --compatibility off`
📦 Including license file "/tmp/pip-install-1wn4vv9g/cryptography_a531abda058d44409adeac477c0374c2/LICENSE"
📦 Including license file "/tmp/pip-install-1wn4vv9g/cryptography_a531abda058d44409adeac477c0374c2/LICENSE.APACHE"
📦 Including license file "/tmp/pip-install-1wn4vv9g/cryptography_a531abda058d44409adeac477c0374c2/LICENSE.BSD"
🍹 Building a mixed python/rust project
🔗 Found pyo3 bindings with abi3 support
🐍 Found CPython 3.14t at /tmp/tmpo3muk0me/venv/bin/python
📡 Using build options locked from pyproject.toml
⚠️ Warning: CPython 3.14t at /tmp/tmpo3muk0me/venv/bin/python does not yet support abi3 so the build artifacts will be version-specific.
warning: /tmp/pip-install-1wn4vv9g/cryptography_a531abda058d44409adeac477c0374c2/src/rust/Cargo.toml: unused manifest key: lints
warning: /tmp/pip-install-1wn4vv9g/cryptography_a531abda058d44409adeac477c0374c2/src/rust/cryptography-key-parsing/Cargo.toml: unused manifest key: lints
warning: /tmp/pip-install-1wn4vv9g/cryptography_a531abda058d44409adeac477c0374c2/src/rust/cryptography-cffi/Cargo.toml: unused manifest key: lints
warning: /tmp/pip-install-1wn4vv9g/cryptography_a531abda058d44409adeac477c0374c2/src/rust/cryptography-openssl/Cargo.toml: unused manifest key: lints
error: package `cryptography-openssl v0.1.0 (/tmp/pip-install-1wn4vv9g/cryptography_a531abda058d44409adeac477c0374c2/src/rust/cryptography-openssl)` cannot be built because it requires rustc 1.74.0 or newer, while the currently active rustc version is 1.63.0
💥 maturin failed
Caused by: Failed to build a native library through cargo
Caused by: Cargo build finished with "exit status: 101": `env -u CARGO PYO3_ENVIRONMENT_SIGNATURE="cpython-3.14-64bit" PYO3_PYTHON="/tmp/tmpo3muk0me/venv/bin/python" PYTHON_SYS_EXECUTABLE="/tmp/tmpo3muk0me/venv/bin/python" "cargo" "rustc" "--message-format" "json-render-diagnostics" "--locked" "--manifest-path" "/tmp/pip-install-1wn4vv9g/cryptography_a531abda058d44409adeac477c0374c2/src/rust/Cargo.toml" "--release" "--lib"`
Error: command ['maturin', 'pep517', 'build-wheel', '-i', '/tmp/tmpo3muk0me/venv/bin/python', '--compatibility', 'off'] returned non-zero exit status 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for cryptography
ERROR: Failed to build installable wheels for some pyproject.toml based projects (cryptography)
error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [20 lines of output]
Checking for Rust toolchain....
Running `maturin pep517 write-dist-info --metadata-directory /tmp/pip-modern-metadata-l376wse0 --interpreter /tmp/tmp2pbc7gn1/venv/bin/python`
Updating crates.io index
Downloading crates ...
Downloaded cfg-if v1.0.4
Downloaded equivalent v1.0.2
Downloaded heck v0.5.0
Downloaded pyo3-macros v0.28.3
Downloaded wit-bindgen-rust-macro v0.51.0
error: failed to parse manifest at `/root/.cargo/registry/src/github.com-1ecc6299db9ec823/wit-bindgen-rust-macro-0.51.0/Cargo.toml`
Caused by:
failed to parse the `edition` key
Caused by:
this version of Cargo is older than the `2024` edition, and only supports `2015`, `2018`, and `2021` editions.
💥 maturin failed
Caused by: Cargo metadata failed. Does your crate compile with `cargo build`?
Caused by: `cargo metadata` exited with an error:
Error running maturin: Command '['maturin', 'pep517', 'write-dist-info', '--metadata-directory', '/tmp/pip-modern-metadata-l376wse0', '--interpreter', '/tmp/tmp2pbc7gn1/venv/bin/python']' returned non-zero exit status 1.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> safetensors
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.