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

PyPi eclass to improve ebuild consistency

    • Icon: Improvement Improvement
    • Resolution: Declined
    • Icon: Normal Normal
    • None
    • None

      There is ongoing confusion in ebuilds for accessing PyPi sources. Web search also discovered that PyPi organization changed URI accessing scheme in late 2016.

      While researching an update to a PyPi based package, a review of how another Linux distribution handled the package revealed that they make available variables for simplifying URI to download sources. A similar mechanism can be imported into Funtoo/Gentoo trees, if desired.

      pypi.eclass populates variables for use in ebuilds. Eclass requires python be defined first. Variables for web and source URI, based on package data using the scheme PyPi organization has defined, can then be used in ebuilds.

      In an ebuild, the 'inhert' line becomes:

      inhert {distutils-r1|python_any-r1|python_all-r1} pypi
      

      And now the ebuild web and source URIs would be reduced to:

      HOMEPAGE="${PYPI_PROJ_WEB_URI}"
      SRC_URI="${PYPI_PROJ_SRC_URI}"
      

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

              Created:
              Updated:
              Resolved: