Re: [e-users] python-efl build error
Hi Vincent Thank you In fact one of my friend had already modify the Pkgfile of python-packaging like this makedepends=(python-flit-core) description="Core utilities for Python packages in python 3" url="https://github.com/pypa/packaging; packager="Grat-OS Team" maintainer="rems" name=python-packaging version=23.1 release=2 source=(https://pypi.io/packages/source/p/packaging/packaging-$version.tar.gz) build() { cd ${name/python-/}-$version TARGETPATH=$(python3 -c 'import site; print(site.getsitepackages()[0])') pip3 install tomli --no-build-isolation --no-deps pip3 wheel -w dist --no-build-isolation --no-deps $PWD pip3 install --no-index --find-links dist --no-cache-dir --no-user --target=$PKG/$TARGETPATH ${name/python-/} } Now the compilation of python-efl works with python3 setup.py with the version 23.1 of python-packaging. I have used a "basic" Pkgfile of LFS https://www.linuxfromscratch.org/blfs/view/svn/general/python-modules.html#packaging I have reinvented the wheel, I am sorry The build fails if I try to use pip3 on python-efl HEAD is now at d1b4512 open new development phase + build + cd python-efl-1.26.0 + pip3 wheel -w dist --no-build-isolation --no-deps /tmp/work/src/python-efl-1.26.0 Processing /tmp/work/src/python-efl-1.26.0 Preparing metadata (pyproject.toml): started Preparing metadata (pyproject.toml): finished with status 'done' Building wheels for collected packages: python-efl Building wheel for python-efl (pyproject.toml): started Building wheel for python-efl (pyproject.toml): still running... Building wheel for python-efl (pyproject.toml): still running... Building wheel for python-efl (pyproject.toml): finished with status 'done' Created wheel for python-efl: filename=python_efl-1.26.99a1257-cp39-cp39-linux_x86_64.whl size=12129631 sha256=b2f80d5ebebda8b123799b293c73d48dd4eb14c29e8c84dfdb0d9a5fe21d0e13 Stored in directory: /root/.cache/pip/wheels/65/ab/ad/1434edb60fce4a7f67350a5148689e028ff0e3fe1f19b62236 Successfully built python-efl [notice] A new release of pip is available: 23.0.1 -> 23.2 [notice] To update, run: pip3 install --upgrade pip + pip3 install --no-index --find-links dist --no-cache-dir --no-user --target=/tmp/work/pkg efl Looking in links: dist ERROR: Could not find a version that satisfies the requirement efl (from versions: none) ERROR: No matching distribution found for efl As it work's with setup.py it's OK Best regards Daniel Le jeu. 20 juil. 2023 à 19:25, daniel antoine a écrit : > > Hi Vincent > Thank you > In fact one of my friend had already modify the Pkgfile of > python-packaging like this > > makedepends=(python-flit-core) > > description="Core utilities for Python packages in python 3" > url="https://github.com/pypa/packaging; > > packager="Grat-OS Team" > maintainer="rems" > > name=python-packaging > version=23.1 > release=2 > > source=(https://pypi.io/packages/source/p/packaging/packaging-$version.tar.gz) > > build() { > > cd ${name/python-/}-$version > > TARGETPATH=$(python3 -c 'import site; print(site.getsitepackages()[0])') > > pip3 install tomli --no-build-isolation --no-deps > > pip3 wheel -w dist --no-build-isolation --no-deps $PWD > > pip3 install --no-index --find-links dist --no-cache-dir --no-user > --target=$PKG/$TARGETPATH ${name/python-/} > > } > > Now the compilation of python-efl works with python3 setup.py with the > version 23.1 of python-packaging. > > I have used a "basic" Pkgfile of LFS > https://www.linuxfromscratch.org/blfs/view/svn/general/python-modules.html#packaging > > I have reinvented the wheel, I am sorry > > The build fails if I try to use pip3 on python-efl > HEAD is now at d1b4512 open new development phase > + build > + cd python-efl-1.26.0 > + pip3 wheel -w dist --no-build-isolation --no-deps > /tmp/work/src/python-efl-1.26.0 > Processing /tmp/work/src/python-efl-1.26.0 > Preparing metadata (pyproject.toml): started > Preparing metadata (pyproject.toml): finished with status 'done' > Building wheels for collected packages: python-efl > Building wheel for python-efl (pyproject.toml): started > Building wheel for python-efl (pyproject.toml): still running... > Building wheel for python-efl (pyproject.toml): still running... > Building wheel for python-efl (pyproject.toml): finished with status 'done' > Created wheel for python-efl: > filename=python_efl-1.26.99a1257-cp39-cp39-linux_x86_64.whl > size=12129631 > sha256=b2f80d5ebebda8b123799b293c73d48dd4eb14c29e8c84dfdb0d9a5fe21d0e13 > Stored in directory: > /root/.cache/pip/wheels/65/ab/ad/1434edb60fce4a7f67350a5148689e028ff0e3fe1f19b62236 > Successfully built python-efl > > [notice] A new release of pip is available: 23.0.1 -> 23.2 > [notice] To update, run: pip3 install --upgrade pip > + pip3 install --no-index --find-links dist --no-cache-dir --no-user > --target=/tmp/work/pkg efl > Looking in links: dist > ERROR: Could not find a version that satisfies the requirement efl > (from versions:
Re: [e-users] python-efl build error
Hi Vincent Thank you In fact one of my friend had already modify the Pkgfile of python-packaging like this makedepends=(python-flit-core) description="Core utilities for Python packages in python 3" url="https://github.com/pypa/packaging; packager="Grat-OS Team" maintainer="rems" name=python-packaging version=23.1 release=2 source=(https://pypi.io/packages/source/p/packaging/packaging-$version.tar.gz) build() { cd ${name/python-/}-$version TARGETPATH=$(python3 -c 'import site; print(site.getsitepackages()[0])') pip3 install tomli --no-build-isolation --no-deps pip3 wheel -w dist --no-build-isolation --no-deps $PWD pip3 install --no-index --find-links dist --no-cache-dir --no-user --target=$PKG/$TARGETPATH ${name/python-/} } Now the compilation of python-efl works with python3 setup.py with the version 23.1 of python-packaging. I have used a "basic" Pkgfile of LFS https://www.linuxfromscratch.org/blfs/view/svn/general/python-modules.html#packaging I have reinvented the wheel, I am sorry The build fails if I try to use pip3 on python-efl HEAD is now at d1b4512 open new development phase + build + cd python-efl-1.26.0 + pip3 wheel -w dist --no-build-isolation --no-deps /tmp/work/src/python-efl-1.26.0 Processing /tmp/work/src/python-efl-1.26.0 Preparing metadata (pyproject.toml): started Preparing metadata (pyproject.toml): finished with status 'done' Building wheels for collected packages: python-efl Building wheel for python-efl (pyproject.toml): started Building wheel for python-efl (pyproject.toml): still running... Building wheel for python-efl (pyproject.toml): still running... Building wheel for python-efl (pyproject.toml): finished with status 'done' Created wheel for python-efl: filename=python_efl-1.26.99a1257-cp39-cp39-linux_x86_64.whl size=12129631 sha256=b2f80d5ebebda8b123799b293c73d48dd4eb14c29e8c84dfdb0d9a5fe21d0e13 Stored in directory: /root/.cache/pip/wheels/65/ab/ad/1434edb60fce4a7f67350a5148689e028ff0e3fe1f19b62236 Successfully built python-efl [notice] A new release of pip is available: 23.0.1 -> 23.2 [notice] To update, run: pip3 install --upgrade pip + pip3 install --no-index --find-links dist --no-cache-dir --no-user --target=/tmp/work/pkg efl Looking in links: dist ERROR: Could not find a version that satisfies the requirement efl (from versions: none) ERROR: No matching distribution found for efl As it work's with setup.py it's OK Best regards Daniel Le jeu. 20 juil. 2023 à 16:31, Vincent Torri a écrit : > > On Thu, Jul 20, 2023 at 4:18 PM daniel antoine wrote: > > > > Finally I have succeeded to compile python-elf by lowering the version > > of python-packaging from 23.1 to 21.3. The version 21.3 has a setup.py > > file. Since the version 22.0 python-packaging can only be compiled > > with pip3 (no setup.py file) > > I suppose there is an incompatibility for python -efl to be compiled > > with python dependencies compiled with pip3 (wheel problem ?) > > Best regards > > i've found this : > > https://stackoverflow.com/a/42225029 > > Vincent > > > > Daniel > > > > Le mer. 19 juil. 2023 à 11:34, daniel antoine a écrit : > > > > > > Hi I have tried to compile python-efl with pip3 but i have the same > > > problem. python-packaging is present in the build file > > > ===> name: python-efl > > > ===> version: 1.26.0 > > > ===> release: 1 > > > ===> Building starting... > > > + prepare > > > + git clone https://git.enlightenment.org/enlightenment/python-efl > > > python-efl-1.26.0 > > > Cloning into 'python-efl-1.26.0'... > > > + cd python-efl-1.26.0 > > > + git checkout d1b4512e52a2d9d22ebf4ed87037a7416ff8b8cd > > > Note: switching to 'd1b4512e52a2d9d22ebf4ed87037a7416ff8b8cd'. > > > > > > You are in a 'detached HEAD' state. You can look around, make experimental > > > changes and commit them, and you can discard any commits you make in this > > > state without impacting any branches by switching back to a branch. > > > > > > If you want to create a new branch to retain commits you create, you may > > > do so (now or later) by using -c with the switch command. Example: > > > > > > git switch -c > > > > > > Or undo this operation with: > > > > > > git switch - > > > > > > Turn off this advice by setting config variable advice.detachedHead to > > > false > > > > > > HEAD is now at d1b4512 open new development phase > > > + build > > > + cd python-efl-1.26.0 > > > + pip3 wheel -w dist --no-build-isolation --no-deps > > > /tmp/work/src/python-efl-1.26.0 > > > Processing /tmp/work/src/python-efl-1.26.0 > > > Preparing metadata (pyproject.toml): started > > > Preparing metadata (pyproject.toml): finished with status 'error' > > > error: subprocess-exited-with-error > > > > > > × Preparing metadata (pyproject.toml) did not run successfully. > > > │ exit code: 1 > > > ╰─> [14 lines of output] > > > Traceback (most recent call last): > > > File > > >
Re: [e-users] python-efl build error
On Thu, Jul 20, 2023 at 4:18 PM daniel antoine wrote: > > Finally I have succeeded to compile python-elf by lowering the version > of python-packaging from 23.1 to 21.3. The version 21.3 has a setup.py > file. Since the version 22.0 python-packaging can only be compiled > with pip3 (no setup.py file) > I suppose there is an incompatibility for python -efl to be compiled > with python dependencies compiled with pip3 (wheel problem ?) > Best regards i've found this : https://stackoverflow.com/a/42225029 Vincent > Daniel > > Le mer. 19 juil. 2023 à 11:34, daniel antoine a écrit : > > > > Hi I have tried to compile python-efl with pip3 but i have the same > > problem. python-packaging is present in the build file > > ===> name: python-efl > > ===> version: 1.26.0 > > ===> release: 1 > > ===> Building starting... > > + prepare > > + git clone https://git.enlightenment.org/enlightenment/python-efl > > python-efl-1.26.0 > > Cloning into 'python-efl-1.26.0'... > > + cd python-efl-1.26.0 > > + git checkout d1b4512e52a2d9d22ebf4ed87037a7416ff8b8cd > > Note: switching to 'd1b4512e52a2d9d22ebf4ed87037a7416ff8b8cd'. > > > > You are in a 'detached HEAD' state. You can look around, make experimental > > changes and commit them, and you can discard any commits you make in this > > state without impacting any branches by switching back to a branch. > > > > If you want to create a new branch to retain commits you create, you may > > do so (now or later) by using -c with the switch command. Example: > > > > git switch -c > > > > Or undo this operation with: > > > > git switch - > > > > Turn off this advice by setting config variable advice.detachedHead to false > > > > HEAD is now at d1b4512 open new development phase > > + build > > + cd python-efl-1.26.0 > > + pip3 wheel -w dist --no-build-isolation --no-deps > > /tmp/work/src/python-efl-1.26.0 > > Processing /tmp/work/src/python-efl-1.26.0 > > Preparing metadata (pyproject.toml): started > > Preparing metadata (pyproject.toml): finished with status 'error' > > error: subprocess-exited-with-error > > > > × Preparing metadata (pyproject.toml) did not run successfully. > > │ exit code: 1 > > ╰─> [14 lines of output] > > Traceback (most recent call last): > > File > > "/usr/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", > > line 353, in > > main() > > File > > "/usr/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", > > line 335, in main > > json_out['return_val'] = hook(**hook_input['kwargs']) > > File > > "/usr/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", > > line 149, in prepare_metadata_for_build_wheel > > return hook(metadata_directory, config_settings) > > File "/usr/lib/python3.9/site-packages/setuptools/build_meta.py", > > line 166, in prepare_metadata_for_build_wheel > > self.run_setup() > > File "/usr/lib/python3.9/site-packages/setuptools/build_meta.py", > > line 150, in run_setup > > exec(compile(code, __file__, 'exec'), locals()) > > File "setup.py", line 11, in > > from packaging.version import Version > > ModuleNotFoundError: No module named 'packaging' > > [end of output] > > > > Best regards > > > > Daniel > > > > > > Le mar. 18 juil. 2023 à 15:09, daniel antoine a écrit : > > > > > > Hi > > > I have python version 3.9.17 and when I try to compile python-efl I > > > have this error > > > ===> name: python-efl > > > ===> version: 1.26.0 > > > ===> release: 1 > > > ===> Building starting... > > > + prepare > > > + git clone https://git.enlightenment.org/enlightenment/python-efl > > > python-efl-1.26.0 > > > Cloning into 'python-efl-1.26.0'... > > > + cd python-efl-1.26.0 > > > + git checkout d1b4512e52a2d9d22ebf4ed87037a7416ff8b8cd > > > Note: switching to 'd1b4512e52a2d9d22ebf4ed87037a7416ff8b8cd'. > > > > > > You are in 'detached HEAD' state. You can look around, make experimental > > > changes and commit them, and you can discard any commits you make in this > > > state without impacting any branches by switching back to a branch. > > > > > > If you want to create a new branch to retain commits you create, you may > > > do so (now or later) by using -c with the switch command. Example: > > > > > > git switch -c > > > > > > Or undo this operation with: > > > > > > git switch - > > > > > > Turn off this advice by setting config variable advice.detachedHead to > > > false > > > > > > HEAD is now at d1b4512 open new development phase > > > + build > > > + cd python-efl-1.26.0 > > > + python3 setup.py build > > > Traceback (most recent call last): > > > File "/tmp/work/src/python-efl-1.26.0/setup.py", line 11, in > > > from packaging.version import Version > > > ModuleNotFoundError: No module named 'packaging' > > > > > > Python-packaging is present with
Re: [e-users] python-efl build error
Finally I have succeeded to compile python-elf by lowering the version of python-packaging from 23.1 to 21.3. The version 21.3 has a setup.py file. Since the version 22.0 python-packaging can only be compiled with pip3 (no setup.py file) I suppose there is an incompatibility for python -efl to be compiled with python dependencies compiled with pip3 (wheel problem ?) Best regards Daniel Le mer. 19 juil. 2023 à 11:34, daniel antoine a écrit : > > Hi I have tried to compile python-efl with pip3 but i have the same > problem. python-packaging is present in the build file > ===> name: python-efl > ===> version: 1.26.0 > ===> release: 1 > ===> Building starting... > + prepare > + git clone https://git.enlightenment.org/enlightenment/python-efl > python-efl-1.26.0 > Cloning into 'python-efl-1.26.0'... > + cd python-efl-1.26.0 > + git checkout d1b4512e52a2d9d22ebf4ed87037a7416ff8b8cd > Note: switching to 'd1b4512e52a2d9d22ebf4ed87037a7416ff8b8cd'. > > You are in a 'detached HEAD' state. You can look around, make experimental > changes and commit them, and you can discard any commits you make in this > state without impacting any branches by switching back to a branch. > > If you want to create a new branch to retain commits you create, you may > do so (now or later) by using -c with the switch command. Example: > > git switch -c > > Or undo this operation with: > > git switch - > > Turn off this advice by setting config variable advice.detachedHead to false > > HEAD is now at d1b4512 open new development phase > + build > + cd python-efl-1.26.0 > + pip3 wheel -w dist --no-build-isolation --no-deps > /tmp/work/src/python-efl-1.26.0 > Processing /tmp/work/src/python-efl-1.26.0 > Preparing metadata (pyproject.toml): started > Preparing metadata (pyproject.toml): finished with status 'error' > error: subprocess-exited-with-error > > × Preparing metadata (pyproject.toml) did not run successfully. > │ exit code: 1 > ╰─> [14 lines of output] > Traceback (most recent call last): > File > "/usr/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", > line 353, in > main() > File > "/usr/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", > line 335, in main > json_out['return_val'] = hook(**hook_input['kwargs']) > File > "/usr/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", > line 149, in prepare_metadata_for_build_wheel > return hook(metadata_directory, config_settings) > File "/usr/lib/python3.9/site-packages/setuptools/build_meta.py", > line 166, in prepare_metadata_for_build_wheel > self.run_setup() > File "/usr/lib/python3.9/site-packages/setuptools/build_meta.py", > line 150, in run_setup > exec(compile(code, __file__, 'exec'), locals()) > File "setup.py", line 11, in > from packaging.version import Version > ModuleNotFoundError: No module named 'packaging' > [end of output] > > Best regards > > Daniel > > > Le mar. 18 juil. 2023 à 15:09, daniel antoine a écrit : > > > > Hi > > I have python version 3.9.17 and when I try to compile python-efl I > > have this error > > ===> name: python-efl > > ===> version: 1.26.0 > > ===> release: 1 > > ===> Building starting... > > + prepare > > + git clone https://git.enlightenment.org/enlightenment/python-efl > > python-efl-1.26.0 > > Cloning into 'python-efl-1.26.0'... > > + cd python-efl-1.26.0 > > + git checkout d1b4512e52a2d9d22ebf4ed87037a7416ff8b8cd > > Note: switching to 'd1b4512e52a2d9d22ebf4ed87037a7416ff8b8cd'. > > > > You are in 'detached HEAD' state. You can look around, make experimental > > changes and commit them, and you can discard any commits you make in this > > state without impacting any branches by switching back to a branch. > > > > If you want to create a new branch to retain commits you create, you may > > do so (now or later) by using -c with the switch command. Example: > > > > git switch -c > > > > Or undo this operation with: > > > > git switch - > > > > Turn off this advice by setting config variable advice.detachedHead to false > > > > HEAD is now at d1b4512 open new development phase > > + build > > + cd python-efl-1.26.0 > > + python3 setup.py build > > Traceback (most recent call last): > > File "/tmp/work/src/python-efl-1.26.0/setup.py", line 11, in > > from packaging.version import Version > > ModuleNotFoundError: No module named 'packaging' > > > > Python-packaging is present with the version 23.1 . It has been built > > with python-flit-core version 3.9.0. These two packets are compiled > > with pip3 when python-efl uses python3 setup-py > > Is there a problem with the version of python-packaging ? Now python3 > > setup-py isems deprecated now. > > > > Best regards > > > > Daniel ___ enlightenment-users