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.cfg b/lib/py/setup.cfg
index 2dca2f8..c6dab40 100644
--- a/lib/py/setup.cfg
+++ b/lib/py/setup.cfg
@@ -1,2 +1,4 @@
 [install]
 optimize = 1
+[metadata]
+description-file = README.md
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')