THRIFT-2620: Fix python packaging
Client: build process
Patch: jfarrell
Fixes python build to include missing README.md and also run packaging under
vagrant images
diff --git a/lib/py/setup.py b/lib/py/setup.py
index 76a3526..bd177b3 100644
--- a/lib/py/setup.py
+++ b/lib/py/setup.py
@@ -28,6 +28,11 @@
from distutils.command.build_ext import build_ext
from distutils.errors import CCompilerError, DistutilsExecError, DistutilsPlatformError
+# Fix to build sdist under vagrant
+import os
+if 'vagrant' in str(os.environ):
+ del os.link
+
include_dirs = []
if sys.platform == 'win32':
include_dirs.append('compat/win32')