[virt-tools-list] [virt-bootstrap] [PATCH v2 02/14] setup: Use find_packages()

Cedric Bosdonnat cbosdonnat at suse.com
Tue Aug 1 13:15:49 UTC 2017


On Tue, 2017-08-01 at 12:28 +0100, Radostin Stoyanov wrote:
> The find_packages() [1] function returns a list of package names
> suitable for use as the packages argument to setup().
> 
> [1] http://setuptools.readthedocs.io/en/latest/setuptools.html#using-find-packages
> ---
>  setup.py | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/setup.py b/setup.py
> index 2d06144..54e24a2 100755
> --- a/setup.py
> +++ b/setup.py
> @@ -80,7 +80,7 @@ setuptools.setup(
>      # What does your project relate to?
>      keywords='virtualization container rootfs',
>      package_dir={"": "src"},
> -    packages=['virtBootstrap'],
> +    packages=setuptools.find_packages('src'),
>      test_suite='tests',
>      entry_points={
>          'console_scripts': [

ACK

--
Cedric




More information about the virt-tools-list mailing list