Signed-off-by: Mark Gray <mark.d.g...@redhat.com>
---
 python/ovs/.gitignore | 2 +-
 python/setup.py       | 8 ++++++++
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/python/ovs/.gitignore b/python/ovs/.gitignore
index 51030beca437..8bbcd824f472 100644
--- a/python/ovs/.gitignore
+++ b/python/ovs/.gitignore
@@ -1,2 +1,2 @@
 version.py
-dir.py
+dirs.py
diff --git a/python/setup.py b/python/setup.py
index b7252800c1c1..9e73aa7feb79 100644
--- a/python/setup.py
+++ b/python/setup.py
@@ -30,6 +30,14 @@ except IOError:
           file=sys.stderr)
     sys.exit(-1)
 
+try:
+    # Try to set dirs from the generated ovs/dirs.py
+    exec(open("ovs/dirs.py").read())
+except IOError:
+    print("Ensure dirs.py is created by running make python/ovs/dirs.py",
+          file=sys.stderr)
+    sys.exit(-1)
+
 ext_errors = (CCompilerError, DistutilsExecError, DistutilsPlatformError)
 if sys.platform == 'win32':
     ext_errors += (IOError, ValueError)
-- 
2.26.2

_______________________________________________
dev mailing list
d...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to