[Python-Dev] PEP 561 rework (original) (raw)
Ethan Smith ethan at ethanhs.me
Tue Nov 14 05:10:07 EST 2017
- Previous message (by thread): [Python-Dev] PEP 561 rework
- Next message (by thread): [Python-Dev] PEP 561 rework
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
A note was added [1] about the solution for module only distributions and is live on Python.org.
[1] https://github.com/python/peps/pull/468
Ethan Smith
On Tue, Nov 14, 2017 at 1:02 AM, Sebastian Rittau <srittau at rittau.biz> wrote:
Am 14.11.2017 um 02:38 schrieb Guido van Rossum:
On Mon, Nov 13, 2017 at 3:50 PM, Sebastian Rittau <srittau at rittau.biz> wrote:
I am really looking forward to the implementation of this PEP and I am glad that it is close to acceptance. One thing that is not really clear to me is how module-only packages are handled. Say I have a package "foo" that installs the file "foo.py" to site-packages, where would I install "foo.pyi" and py.typed to? Or is this case not supported and I have to convert the foo module into a package containing just init.py? Good call. I think that conversion to a package is indeed the best approach -- it doesn't seem worth it to add more special-casing for this scenario. Ethan, if you agree, you should just add a sentence about this to the PEP. This seems like the best solution, especially since setuptools does not really support installing package data for pure modules. - Sebastian
Python-Dev mailing list Python-Dev at python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/ ethan%40ethanhs.me -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20171114/f07fffab/attachment.html>
- Previous message (by thread): [Python-Dev] PEP 561 rework
- Next message (by thread): [Python-Dev] PEP 561 rework
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]