diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-06-22 22:35:21 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-06-22 22:35:21 +0200 |
commit | aa1a2ea7d03843120da50bf98584927098bcfa6d (patch) | |
tree | f4c06386efd6d97c5d6497938d9dca12a1a88386 /python/setup.py | |
parent | a8ae4f46a5d0e059f2ca1181c7730b81179160f8 (diff) | |
parent | 46f4aa47cc62ca05bef4e4cca614ed77065608e7 (diff) | |
download | vyos-1x-aa1a2ea7d03843120da50bf98584927098bcfa6d.tar.gz vyos-1x-aa1a2ea7d03843120da50bf98584927098bcfa6d.zip |
Merge branch 'default-dict' of github.com:c-po/vyos-1x into current
* 'default-dict' of github.com:c-po/vyos-1x:
console-server: T2588: migrate to defaults from XML interface definitions
xml: T2588: add gitignore for generated defaults
xml: T2588: code to extract defaults values from xml
Debian: remove duplicate build dependency
xml: ssh: fix typo in service description
Diffstat (limited to 'python/setup.py')
-rw-r--r-- | python/setup.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/python/setup.py b/python/setup.py index 9440e7fe7..e2d28bd6b 100644 --- a/python/setup.py +++ b/python/setup.py @@ -1,6 +1,13 @@ import os from setuptools import setup +def packages(directory): + return [ + _[0].replace('/','.') + for _ in os.walk(directory) + if os.path.isfile(os.path.join(_[0], '__init__.py')) + ] + setup( name = "vyos", version = "1.3.0", @@ -10,7 +17,7 @@ setup( license = "LGPLv2+", keywords = "vyos", url = "http://www.vyos.io", - packages=["vyos","vyos.ifconfig"], + packages = packages('vyos'), long_description="VyOS configuration libraries", classifiers=[ "Development Status :: 4 - Beta", @@ -18,4 +25,3 @@ setup( "License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)", ], ) - |