mirror of
https://github.com/valitydev/thrift.git
synced 2024-11-06 18:35:19 +00:00
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:
parent
8fd8c6366d
commit
750df2ec4c
3
.gitignore
vendored
3
.gitignore
vendored
@ -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
|
||||
|
@ -1,2 +1,4 @@
|
||||
[install]
|
||||
optimize = 1
|
||||
[metadata]
|
||||
description-file = README.md
|
||||
|
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user