Donald Stufft <[email protected]> writes:
> I’m pretty sure that find_packages is going to discover version.py and
> add it as part of the return value which is then passing that to the
> packages kwarg.
That doesn't match the documentation for ‘find_packages’:
find_packages() walks the target directory, filtering by inclusion
patterns, and finds Python packages (any directory).
[…]
the find_packages() function returns a list of package names
suitable for use as the packages argument to setup() […]
<URL:https://setuptools.pypa.io/en/latest/setuptools.html#using-find-packages>
That and other language in that document strongly imply that packages
are the only things found by ‘find_packages’.
The ‘version.py’ module is not within any package, so I infer that
‘find_packages’ should ignore it. Is that wrong?
--
\ “Two rules to success in life: 1. Don't tell people everything |
`\ you know.” —Sassan Tat |
_o__) |
Ben Finney
_______________________________________________
Distutils-SIG maillist - [email protected]
https://mail.python.org/mailman/listinfo/distutils-sig