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
This commit is contained in:
jfarrell 2014-07-10 09:18:42 -04:00
parent 8fd8c6366d
commit 750df2ec4c
3 changed files with 8 additions and 2 deletions

3
.gitignore vendored
View 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

View File

@ -1,2 +1,4 @@
[install]
optimize = 1
[metadata]
description-file = README.md

View 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')