This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: distutils complains "package init file 'xxx/' not found (or not a regular file)" when using Cythonized __init__.pyx
Type: Stage: resolved
Components: Distutils Versions: Python 3.7
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: Nosy List: dstufft, eric.araujo, et, steve.dower
Priority: normal Keywords:

Created on 2019-03-08 12:43 by et, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (2)
msg337472 - (view) Author: et (et) Date: 2019-03-08 12:43
distutils spits out a warning:

package init file 'xxx/' not found (or not a regular file)

... when using Cythonized __init__.pyx instead. However, the installed package works absolutely fine, it can be imported & used perfectly, so this warning seems bogus.

I checked, and this warning is generated inside distutils/command/ in the build_py class in method check_package(). I suggest that this warning isn't generated in case a C extension is found for the __init__ module, checked in whatever way is appropriate at this stage (e.g. by seeing if there's an __init__.pyx)
msg386310 - (view) Author: Steve Dower (steve.dower) * (Python committer) Date: 2021-02-03 18:16
Distutils is now deprecated (see PEP 632) and all tagged issues are being closed. From now until removal, only release blocking issues will be considered for distutils.

If this issue does not relate to distutils, please remove the component and reopen it. If you believe it still requires a fix, most likely the issue should be re-reported at
Date User Action Args
2022-04-11 14:59:12adminsetgithub: 80419
2021-02-03 18:16:25steve.dowersetstatus: open -> closed

nosy: + steve.dower
messages: + msg386310

resolution: out of date
stage: resolved
2019-03-08 12:43:19etcreate