flatpak-builder-tools icon indicating copy to clipboard operation
flatpak-builder-tools copied to clipboard

PIP: --ignore-installed= does not work

Open Eonfge opened this issue 1 year ago • 2 comments

flatpak-builder version

1.4.4

Linux distribution and version

Linux fedora 6.10.8-200.fc40.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Sep 4 21:41:11 UTC 2024 x86_64 GNU/Linux

Affected flatpak-builder tool

pip/flatpak-pip-generator

flatpak-builder tool cli args

No response

Source repository URL

No response

Flatpak-builder manifest URL

No response

Description

I'm not sure what is going on. I add setuptools to the ignore-installed list, but at the end it still skips it.

[kevin@fedora ~/Projects/flatpak-builder-tools/pip]$ ./flatpak-pip-generator --ignore-installed=setuptools --runtime='org.freedesktop.Sdk//24.08' --requirements-file='/home/kevin/Projects/zenmap/requirements.txt' --output pypi-dependencies 
========================================================================
Downloading sources
========================================================================
Running: "flatpak --filesystem=/tmp/requirements.8ifbvp23 --devel --share=network --filesystem=/tmp --command=pip3 run org.freedesktop.Sdk//24.08 download --exists-action=i --dest /tmp/pip-generator-pypi-dependencieso0mkzkj8 -r /tmp/requirements.8ifbvp23"
Collecting setuptools (from -r /tmp/requirements.8ifbvp23 (line 1))
  Downloading setuptools-74.1.2-py3-none-any.whl.metadata (6.7 kB)
Collecting build (from -r /tmp/requirements.8ifbvp23 (line 2))
  Downloading build-1.2.2-py3-none-any.whl.metadata (6.2 kB)
Collecting pep517 (from -r /tmp/requirements.8ifbvp23 (line 3))
  Downloading pep517-0.13.1-py3-none-any.whl.metadata (4.1 kB)
Collecting packaging>=19.1 (from build->-r /tmp/requirements.8ifbvp23 (line 2))
  Downloading packaging-24.1-py3-none-any.whl.metadata (3.2 kB)
Collecting pyproject_hooks (from build->-r /tmp/requirements.8ifbvp23 (line 2))
  Downloading pyproject_hooks-1.1.0-py3-none-any.whl.metadata (1.3 kB)
Downloading setuptools-74.1.2-py3-none-any.whl (1.3 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.3/1.3 MB 24.1 MB/s eta 0:00:00
Downloading build-1.2.2-py3-none-any.whl (22 kB)
Downloading pep517-0.13.1-py3-none-any.whl (19 kB)
Downloading packaging-24.1-py3-none-any.whl (53 kB)
Downloading pyproject_hooks-1.1.0-py3-none-any.whl (9.2 kB)
Saved /tmp/pip-generator-pypi-dependencieso0mkzkj8/setuptools-74.1.2-py3-none-any.whl
Saved /tmp/pip-generator-pypi-dependencieso0mkzkj8/build-1.2.2-py3-none-any.whl
Saved /tmp/pip-generator-pypi-dependencieso0mkzkj8/pep517-0.13.1-py3-none-any.whl
Saved /tmp/pip-generator-pypi-dependencieso0mkzkj8/packaging-24.1-py3-none-any.whl
Saved /tmp/pip-generator-pypi-dependencieso0mkzkj8/pyproject_hooks-1.1.0-py3-none-any.whl
Successfully downloaded setuptools build pep517 packaging pyproject_hooks
========================================================================
Downloading arch independent packages
========================================================================
========================================================================
Obtaining hashes and urls
========================================================================
Generating hash for setuptools-74.1.2-py3-none-any.whl
Extracting download url for setuptools
Generating hash for build-1.2.2-py3-none-any.whl
Extracting download url for build
Generating hash for pep517-0.13.1-py3-none-any.whl
Extracting download url for pep517
Generating hash for packaging-24.1-py3-none-any.whl
Extracting download url for packaging
Generating hash for pyproject_hooks-1.1.0-py3-none-any.whl
Extracting download url for pyproject_hooks
========================================================================
Generating dependencies
========================================================================
setuptools is in system_packages. Skipping.
Generating dependencies for build
Generating dependencies for pep517

Output saved to pypi-dependencies.json

Eonfge avatar Sep 13 '24 07:09 Eonfge

setuptools is provided by the runtime and pip-generator does not have a way to skip it.

bbhtt avatar Sep 13 '24 10:09 bbhtt

Then I must misunderstanding the readme, isn't this what the --ignore-installed= is for?

Eonfge avatar Sep 13 '24 13:09 Eonfge

Yes, but there's no way to override it now. You have to manually edit it from the system_packages list.

This is https://github.com/flatpak/flatpak-builder-tools/issues/254

bbhtt avatar Apr 29 '25 01:04 bbhtt