X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvpp-api%2Fpython%2Fsetup.py;h=c8321320c735949fe4c126fb6a110957d5468e61;hb=dd1e3e780cd480e3f29fc34df48e605ded1acb2c;hp=99a0147a56f956e6aa6943219f6cb4b3df6675e3;hpb=7cd468a3d7dee7d6c92f69a0bb7061ae208ec727;p=vpp.git diff --git a/src/vpp-api/python/setup.py b/src/vpp-api/python/setup.py index 99a0147a56f..c8321320c73 100644 --- a/src/vpp-api/python/setup.py +++ b/src/vpp-api/python/setup.py @@ -11,24 +11,26 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. +import sys + +stdlib_enum = sys.version_info >= (3, 6) try: - from setuptools import setup, Extension + from setuptools import setup, find_packages except ImportError: - from distutils.core import setup, Extension + from distutils.core import setup, find_packages -setup (name = 'vpp_papi', - version = '1.3', - description = 'VPP Python binding', - author = 'Ole Troan', - author_email = 'ot@cisco.com', - test_suite = 'tests', - packages=['vpp_papi'], - ext_modules = [ - Extension( - 'vpp_api', - sources = ['vpp_papi/pneum_wrap.c'], - libraries = ['pneum'], - )], - long_description = '''VPP Python language binding.''', -) +setup( + name='vpp_papi', + version='1.6.2', + description='VPP Python binding', + author='Ole Troan', + author_email='ot@cisco.com', + url='https://wiki.fd.io/view/VPP/Python_API', + license='Apache-2.0', + test_suite='vpp_papi.tests', + install_requires=['cffi >= 1.6'] if stdlib_enum else + ['cffi >= 1.6', 'aenum'], + packages=find_packages(), + long_description='''VPP Python language binding.''', + zip_safe=True)