Hi Davide
my receipt for python-efl

makedepends=(cython dbus-python efl git libsndfile pulseaudio
python-packaging python-setuptools)

description="python 3 bindings for the Enlightenment Foundation Libraries"
url="http://www.enlightenment.org";

packager="Grat-OS Team"
maintainer="Dania"

name=python-efl
version=1.26.1
release=9

#source=(http://download.enlightenment.org/rel/bindings/python/$name-$version.tar.xz)

#Last commit on python-efl repo
#_commit=5accd9350bc4dc2bf1d06bde847a605264c2e78b
_commit=701c912a7baa524301d82a87fd9108d293b74664

prepare() {
git clone  https://git.enlightenment.org/enlightenment/python-efl $name-$version

cd $name-$version
git checkout ${_commit}
}

build() {
 cd ${name}-$version

   python3 setup.py build
   python3 setup.py install --root=$PKG --optimize=1 --skip-build
}

Best regards

Daniel

Le mar. 19 août 2025 à 14:29, Davide Andreoli <[email protected]> a écrit :
>
>
>
>
>
>
> lunedì 18 agosto 2025 15:16, daniel antoine <[email protected]> ha scritto:
>
> >
> >
> > Hi Dave
> >
> > I try to compile python-efl with the last commit 701c912a7b but I
> > ranil an error at [16/16] Cythonizing efl/utils/logger.pyx
> >
> > I get
> >
> > [16/16] Cythonizing efl/utils/logger.pyx
> > warning: efl/utils/logger.pyx:1:0: Dotted filenames
> > ('efl.utils.logger.pxd') are deprecated. Please use the normal Python
> > package directory layout.
> > warning: efl/utils/logger.pyx:18:0: Dotted filenames ('efl.eina.pxd')
> > are deprecated. Please use the normal Python package directory layout.
> > configuration error: `project.license` must be valid exactly by one
> > definition (2 matches found):
> >
> > - keys:
> > 'file': {type: string}
> > required: ['file']
> > - keys:
> > 'text': {type: string}
> > required: ['text']
> >
> > DESCRIPTION:
> > `Project license <https://peps.python.org/pep-0621/#license>`_.
> >
> >
> > GIVEN VALUE:
> > "LGPL-3.0-only"
> >
> > OFFENDING RULE: 'oneOf'
> >
> > DEFINITION:
> > {
> > "oneOf": [
> > {
> > "properties": {
> > "file": {
> > "type": "string",
> > "$$description": [
> > "Relative path to the file (UTF-8) which
> > contains the license for the",
> > "project."
> > ]
> > }
> > },
> > "required": [
> > "file"
> > ]
> > },
> > {
> > "properties": {
> > "text": {
> > "type": "string",
> > "$$description": [
> > "The license of the project whose meaning
> > is that of the",
> > "`License field from the core metadata", 
> > "<https://packaging.python.org/specifications/core-metadata/#license>`_."
> >
> > ]
> > }
> > },
> > "required": [
> > "text"
> > ]
> > }
> > ]
> > }
> > Traceback (most recent call last):
> > File "/tmp/work/src/python-efl-1.26.1/setup.py", line 437, in <module>
> >
> > setup(
> > File "/usr/lib/python3.12/site-packages/setuptools/init.py",
> > line 117, in setup
> > return distutils.core.setup(**attrs)
> > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> > File "/usr/lib/python3.12/site-packages/setuptools/_distutils/core.py",
> > line 157, in setup
> > dist.parse_config_files()
> > File "/usr/lib/python3.12/site-packages/setuptools/dist.py", line
> > 655, in parse_config_files
> > pyprojecttoml.apply_configuration(self, filename, ignore_option_errors)
> > File "/usr/lib/python3.12/site-packages/setuptools/config/pyprojecttoml.py",
> > line 71, in apply_configuration
> > config = read_configuration(filepath, True, ignore_option_errors, dist)
> > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> > File "/usr/lib/python3.12/site-packages/setuptools/config/pyprojecttoml.py",
> > line 139, in read_configuration
> > validate(subset, filepath)
> > File "/usr/lib/python3.12/site-packages/setuptools/config/pyprojecttoml.py",
> > line 60, in validate
> > raise ValueError(f"{error}\n{summary}") from None
> > ValueError: invalid pyproject.toml config: `project.license`.
> > configuration error: `project.license` must be valid exactly by one
> > definition (2 matches found):
> >
> > - keys:
> > 'file': {type: string}
> > required: ['file']
> > - keys:
> > 'text': {type: string}
> > required: ['text']
> >
> > =======> ERROR: Building 'python-efl.sources1755228613any.cards.tar.xz' 
> > failed.
> >
> >
> > it refres to two licenses ?
> >
> > The compile is ok with commit 5accd9350b
>
> Hi, I'm working on the build system in these days.
> How are you building? The goal is to use modern python packaging, so you 
> should be able to build using:
> python -m build
> and then install the generated wheel using pip.
>
> But I'm still working on this, will update all the docs asap.
>
> >
> > Bets regards
> >
> > Daniel


_______________________________________________
enlightenment-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-users

Reply via email to