Fix import line for setup.py 32/3132/3
authorPeter Ginchev <pginchev@cisco.com>
Mon, 26 Sep 2016 07:46:17 +0000 (10:46 +0300)
committerPeter Ginchev <pginchev@cisco.com>
Tue, 27 Sep 2016 05:50:45 +0000 (05:50 +0000)
Build fails in case python-setuptools is not installed.

Change-Id: I1611f3560db82a4a48c51a9f614a813a9a540698
Signed-off-by: Peter Ginchev <pginchev@cisco.com>
vpp-api/python/setup.py

index a2eeff3..cd7afc8 100644 (file)
@@ -13,9 +13,9 @@
 # limitations under the License.
 
 try:
-    from setuptools import setup, command, Extension
+    from setuptools import setup, Extension
 except ImportError:
-    from distutils.core import setup
+    from distutils.core import setup, Extension
 
 setup (name = 'vpp_papi',
        version = '1.2',