Closed tchaikov closed 6 months ago
@tchaikov it's need to be pinned also in the pyproject.toml
$ git diff
diff --git a/pyproject.toml b/pyproject.toml
index ad9691e..154a301 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,5 +1,6 @@
[build-system]
requires = [
+ "PyYAML==6.0.1",
"setuptools>=42",
"wheel",
"Cython",
@@ -9,4 +10,4 @@ build-backend = "setuptools.build_meta"
[tool.setuptools_scm]
write_to = "pylib/cqlshlib/_version.py"
-tag_regex = '^(?P<prefix>v)?(?P<version>[^\+-]+)(?P<suffix>-scylla)?$'
\ No newline at end of file
+tag_regex = '^(?P<prefix>v)?(?P<version>[^\+-]+)(?P<suffix>-scylla)?$'
diff --git a/requirements.txt b/requirements.txt
index 3b3c264..e2e12ab 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,5 +1,5 @@
scylla-driver==3.26.5
geomet==0.2.1.post1
-PyYAML==6.0
+PyYAML==6.0.1
click==8.1.3
$ reloc/build_reloc.sh --version scylla-5.5-1234 --nodeps
# ...
File "/usr/lib/python3.12/site-packages/setuptools/_distutils/command/sdist.py", line 251, in add_defaults
self._add_defaults_ext()
File "/usr/lib/python3.12/site-packages/setuptools/_distutils/command/sdist.py", line 336, in _add_defaults_ext
self.filelist.extend(build_ext.get_source_files())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<string>", line 205, in get_source_files
File "/usr/lib/python3.12/site-packages/setuptools/_distutils/cmd.py", line 107, in __getattr__
raise AttributeError(attr)
AttributeError: cython_sources
[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.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
i must be missing something?
i must be missing something?
I've managed to reproduce it
when uninstalling cython completely it worked
also when doing pip install 'cython<3'
it worked
so seems like we need to make sure the env we are running doesn't have cython or have one lower then 3
yeah, but IMHO, to remove Cython from system is the recipe to bad performance for the applications which use Cython. not to mention some of them rely on Cython to build. i knew, there are some workaround in this regard. but i always prefer using the packaged Cython.
and use Cython < 3, is exactly one of the workarounds proposed by https://github.com/yaml/pyyaml/issues/601 .
anyway, we need to be prepared for this.
one more detail the failing command is not the build of the package, but the download command that need to fetch all dependencies
it uses --no-build-isolation
which mean it doesn't download it's own set of versions, and uses what there.
the reason it was used since we are using --no-binary :all:
to download the source packages
but that's affect also the build dependency which would make it extremely slow, compiled cython from source
looks like https://github.com/yaml/pyyaml/issues/601 . but i still have the same error after unpinning or bumping pyyaml to 6.0.1 in
requirement.txt
.