THRIFT-2620: Fix python packaging
authorjfarrell <jfarrell@apache.org>
Thu, 10 Jul 2014 13:18:42 +0000 (09:18 -0400)
committerjfarrell <jfarrell@apache.org>
Thu, 10 Jul 2014 13:18:42 +0000 (09:18 -0400)
Client: build process
Patch: jfarrell

Fixes python build to include missing README.md and also run packaging under
vagrant images

.gitignore
lib/py/setup.cfg
lib/py/setup.py

index 02316f3..f4a4b65 100644 (file)
@@ -7,6 +7,7 @@
 *.log
 *.trs
 *.suo
+*.pyc
 *.cache
 *.user
 *.ipch
@@ -210,8 +211,6 @@ test-driver
 /test/log/
 /test/test.log
 /test/py.twisted/_trial_temp/
-/test/py.twisted/test_suite.pyc
-/test/py.tornado/*.pyc
 /test/rb/Gemfile.lock
 /tutorial/cpp/TutorialClient
 /tutorial/cpp/TutorialServer
index 2dca2f8..c6dab40 100644 (file)
@@ -1,2 +1,4 @@
 [install]
 optimize = 1
+[metadata]
+description-file = README.md
index 76a3526..bd177b3 100644 (file)
@@ -28,6 +28,11 @@ except:
 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')