[Distutils] Python module for use in ‘setup.py’ but not to install
Ben Finney
ben+python at benfinney.id.au
Mon Jan 19 03:53:00 CET 2015
Donald Stufft <donald at stufft.io> 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
More information about the Distutils-SIG
mailing list