Uploaded image for project: 'Funtoo Linux'
  1. Funtoo Linux
  2. FL-10155

[metatools] Multiple versions with compat generate duplicate push call

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Important (Ebuild) Important (Ebuild)
    • None
    • None
    • A developer adding an autogen for python, and using the pypi-compat-1 generator, will find that they cannot use metatools' "multiple versions" feature, where you can generate multiple versions of a package as needed.

      For FL-9762 I had to update dev-python/networkx, so I decided to autogen it. However, upstream removed support for python3.7 on their latest version, so I tried to take advantage of the multiple versions feature introduced in FL-9856 and make two versions, the last one with python3.7 and the latest without, plus a compat ebuild for python2.7.
      This led to the following error:

      dyne.org.funtoo.metatools.pkgtools.ebuild.BreezyError: /var/git/overlay/ilmenite-local/dev-python/networkx-compat/networkx-compat-2.2.ebuild has already been generated -- you may have duplicate .push() calls or duplicate entries in your YAML.

      For now I'll just pin networkx to the last version with python3.7 support, but it would be nice to check for this multiple versions scenario for the pypi-compat-1 generator.

            Unassigned Unassigned
            alex2101 alex2101 [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: