Il Mar 1 Mar 2022, 16:25 Anatoly Oreshkin <anatoly.oresh...@gmail.com> ha scritto:
> > > вт, 1 мар. 2022 г. в 03:18, Alessandro Barbieri <lssndrbarbi...@gmail.com > >: > >> Il Dom 27 Feb 2022, 10:34 Anatoly Oreshkin <anatoly.oresh...@gmail.com> >> ha scritto: >> >>> >>> >>> сб, 26 февр. 2022 г. в 03:40, Alessandro Barbieri < >>> lssndrbarbi...@gmail.com>: >>> >>>> Il giorno mar 22 feb 2022 alle ore 08:02 Anatoly Oreshkin < >>>> anatoly.oresh...@gmail.com> ha scritto: >>>> >>>>> Hello, >>>>> >>>>> I am a newbie to Gentoo. >>>>> As end user I am using package confluent-kafka from guru repository. >>>>> To install it I have performed the following steps in command line: >>>>> [...] >>>>> 6. modify >>>>> /var/db/repos/guru/dev-python/confluent-kafka/confluent-kafka-1.7.0.ebuild >>>>> change PYTHON_COMPAT=( python3_8 ) -> PYTHON_COMPAT=( python3_9 ) >>>>> sed -i 's/python3_8/python3_9/g' >>>>> /var/db/repos/guru/dev-python/confluent-kafka/confluent-kafka-1.7.0.ebuild >>>>> >>>> >>>> sorry but you can't do this, you have to stick with python3.8 >>>> I plan to update the openstack packages next month after I graduate >>>> >>> >>> >>> If I don't change PYTHON_COMPAT=( python3_8 ) -> PYTHON_COMPAT=( >>> python3_9 ) then >>> I will not able to install dev-python/confluent-kafka using emerge. >>> >> >> This isn't true, I can install it as-is in my system and in my test >> chroot. >> You have to set your python targets to python3.8 >> >> > The version of python installed in my local gentoo installation is > localhost ~ # python3 --version > Python 3.9.9 > > therefore I changed PYTHON_COMPAT=( python3_8 ) -> PYTHON_COMPAT=( > python3_9 ) > What is wrong with changing PYTHON_COMPAT=( python3_8 ) -> > PYTHON_COMPAT=( python3_9 ) ? > I have tested confluent-kafka installed with python3_9 and i works ! > > Nevertheless I have followed your advice. > As far as I understood you I did the following steps: > > 1. Created the file /etc/portage/package.use/confluent-kafka: > dev-python/confluent-kafka PYTHON_TARGETS: -* python3_8 > > 2. emerge --autounmask-write dev-python/confluent-kafka > > Autounmask changes successfully written. > > * IMPORTANT: config file '/etc/portage/package.use/grub' needs updating. > * See the CONFIGURATION FILES and CONFIGURATION FILES UPDATE TOOLS > * sections of the emerge man page to learn how to update config files. > > 3. etc-update > The following is the list of files which need updating, each > configuration file is followed by a list of possible replacement files. > 1) /etc/portage/package.use/grub (1) > Please select a file to edit by entering the corresponding number. > (don't use -3, -5, -7 or -9 if you're unsure what to do) > (-1 to exit) (-3 to auto merge all files) > (-5 to auto-merge AND not use 'mv -i') > (-7 to discard all updates) > (-9 to discard all updates AND not use 'rm > -i'): -3 > Replacing /etc/portage/package.use/grub with > /etc/portage/package.use/._cfg0000_grub > mv: overwrite '/etc/portage/package.use/grub'? yes > Exiting: Nothing left to do; exiting. :) > > 4. emerge --autounmask-write dev-python/confluent-kafka > ... > running install_scripts > * Using python3.8 in global scope > * python3_8: running distutils-r1_run_phase > distutils-r1_python_install_all > >>> Completed installing dev-python/confluent-kafka-1.7.0 into > /var/tmp/portage/dev-python/confluent-kafka-1.7.0/image > ... > >>> Installing (42 of 42) dev-python/confluent-kafka-1.7.0::guru > > >>> Recording dev-python/confluent-kafka in "world" favorites file... > >>> Auto-cleaning packages... > > >>> No outdated packages were found on your system. > > Now package dev-python/confluent-kafka with python 3.8 is installed > > emerge --search confluent-kafka > dev-python/confluent-kafka > Latest version available: 1.7.0 > Latest version installed: 1.7.0 > Size of files: 101 KiB > Homepage: https://pypi.org/project/confluent-kafka > https://github.com/confluentinc/confluent-kafka-python > Description: Confluent's Kafka Python Client > License: Apache-2.0 > > Is this correct ? > > >> >>> By the way what is the link between openstack packages and >>> dev-python/confluent-kafka ? >>> >> >> confluent-kafka is a test dependency >> > BTW now confluent-kafka::guru is also available for python3.9 >