-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
reloc/build_reloc.sh: AttributeError: cython_sources
when building PyYAML
#78
Comments
@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've managed to reproduce it when uninstalling cython completely 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 yaml/pyyaml#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 it uses but that's affect also the build dependency which would make it extremely slow, compiled cython from source |
for downloading the source packages dependecies, we use the `pip download` command and we uses `--no-build-isolation` which mean it doesn't download it's own set of versions, with using using `--no-binary :all:` to download the source packages but that's affect also the build dependency which would make it extremely slow, compile cython from source. so first pin the cython in the build dependecies, and force the command download cython always as wheel to avoid building it from source Fixes: scylladb#78
for downloading the source packages dependecies, we use the `pip download` command and we uses `--no-build-isolation` which mean it doesn't download it's own set of versions, with using using `--no-binary :all:` to download the source packages but that's affect also the build dependency which would make it extremely slow, compile cython from source. so first pin the cython in the build dependecies, and force the command download cython always as wheel to avoid building it from source Fixes: scylladb#78
for downloading the source packages dependecies, we use the `pip download` command and we uses `--no-build-isolation` which mean it doesn't download it's own set of versions, with using using `--no-binary :all:` to download the source packages but that's affect also the build dependency which would make it extremely slow, compile cython from source. so first pin the cython in the build dependecies, and force the command download cython always as wheel to avoid building it from source Fixes: #78
looks like yaml/pyyaml#601 . but i still have the same error after unpinning or bumping pyyaml to 6.0.1 in
requirement.txt
.The text was updated successfully, but these errors were encountered: