Bug 39556 - Поддержка PEP 420
Summary: Поддержка PEP 420
Status: NEW
Alias: None
Product: Sisyphus
Classification: Development
Component: rpm-build-python3 (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: Ivan Zakharyaschev
QA Contact: qa-sisyphus
Depends on:
Reported: 2021-01-18 09:14 MSK by Andrey Cherepanov
Modified: 2021-01-18 09:14 MSK (History)
7 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Andrey Cherepanov 2021-01-18 09:14:12 MSK
В https://www.python.org/dev/peps/pep-0420/

During import processing, the import machinery will continue to iterate over each directory in the parent path as it does in Python 3.2. While looking for a module or package named "foo", for each directory in the parent path:

If <directory>/foo/__init__.py is found, a regular package is imported and returned.
If not, but <directory>/foo.{py,pyc,so,pyd} is found, a module is imported and returned. The exact list of extension varies by platform and whether the -O flag is specified. The list here is representative.
If not, but <directory>/foo is found and is a directory, it is recorded and the scan continues with the next directory in the parent path.
Otherwise the scan continues with the next directory in the parent path.

У нас без __init__.py в подкаталоге provide не создаётся.