Skip to content

azure-cognitiveservices-nspkg has not been converted to implicit namespaces (PEP 420) #4461

@glaubitz

Description

@glaubitz

I am currently working on updating the Python Azure SDK in openSUSE/SLE to the latest upstream version. This involves switching over the packaging to adopt to the move to implicit namespace packages (PEP 420).

This has worked fine with azure-nspkg and azure-mgmt-nspkg so far, but azure-cognitiveservices-nspkg still behaves like the old namespace packages compiles and installs the __init__.py files.

Thus, the RPM builds complains that the namespace directories are not empty as they should after switching to implicit namespace packages for Python 3.7:

[    6s] error: Installed (but unpackaged) file(s) found:
[    6s]    /usr/lib/python3.7/site-packages/azure/cognitiveservices/__init__.py
[    6s]    /usr/lib/python3.7/site-packages/azure/cognitiveservices/__pycache__/__init__.cpython-37.opt-1.pyc
[    6s]    /usr/lib/python3.7/site-packages/azure/cognitiveservices/__pycache__/__init__.cpython-37.pyc
[    6s] 
[    6s] 
[    6s] RPM build errors:
[    6s]     Installed (but unpackaged) file(s) found:
[    6s]    /usr/lib/python3.7/site-packages/azure/cognitiveservices/__init__.py
[    6s]    /usr/lib/python3.7/site-packages/azure/cognitiveservices/__pycache__/__init__.cpython-37.opt-1.pyc
[    6s]    /usr/lib/python3.7/site-packages/azure/cognitiveservices/__pycache__/__init__.cpython-37.pyc

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions