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.

Author frenzy
Recipients brett.cannon, cstratak, eric.smith, eric.snow, frenzy, ncoghlan, torsava
Date 2017-07-19.08:14:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1500452052.05.0.508924518627.issue29144@psf.upfronthosting.co.za>
In-reply-to
Content
Hello.

I've tried the build of python-moksha-common on Fedora rawhide [0] and Fedora 25 [1].

Fedora rawhide: Python 2.7.13 and 3.6.1, setuptools 36.2.0
Fedora 25: Python 2.7.13 and 3.5.3, setuptools 25.1.1

Source tarball of moksha.common contains pkg_resources-style __init__.py file and the setuptools skipped installation of this file in all (four) cases.

It seems that setuptools do the same in all versions but the problem comes with Python 3.6 which is more strict than Python 3.5 in behavior related to namespace packages.

So, when one part of namespace package doesn't contain __init__.py file and other part contains pkg_resources-style __init__.py file:
- in Python 2.7 and 3.5 everything works
- in Python 3.6 submodules cannot import each other

The question is whether it is a bug/feature in Python 3.6 and setuptools should install pkg_resources-style __init__.py or not.

What do you think?

[0] https://koji.fedoraproject.org/koji/taskinfo?taskID=20606746
[1] https://koji.fedoraproject.org/koji/taskinfo?taskID=20606838
History
Date User Action Args
2017-07-19 08:14:12frenzysetrecipients: + frenzy, brett.cannon, ncoghlan, eric.smith, eric.snow, cstratak, torsava
2017-07-19 08:14:12frenzysetmessageid: <1500452052.05.0.508924518627.issue29144@psf.upfronthosting.co.za>
2017-07-19 08:14:12frenzylinkissue29144 messages
2017-07-19 08:14:11frenzycreate