Skip to content

Changes to python "warehouse" causing pypi.bbclass to fail #24

Description

@markmevans

pypi issue #438 broke URL lookups for packages. I believe the issues' resolution requires changing the domain used for the package's URL from:

https://pypi.python.org

to:

https://files.pythonhosted.org

--- pypi.bbclass
+++ pypi.bbclass
@@ -13,7 +13,7 @@ def pypi_src_uri(d):
     package = d.getVar('PYPI_PACKAGE', True)
     package_ext = d.getVar('PYPI_PACKAGE_EXT', True)
     pv = d.getVar('PV', True)
-    return 'https://pypi.python.org/packages/source/%s/%s/%s-%s.%s' % (package[0], package, package, pv, package_ext)
+    return 'https://files.pythonhosted.org/packages/source/%s/%s/%s-%s.%s' % (package[0], package, package, pv, package_ext)

 PYPI_SRC_URI ?= "${@pypi_src_uri(d)}"

Seems to work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions