mirror of
https://github.com/valitydev/thrift.git
synced 2024-11-07 02:45:22 +00:00
792df0bf78
Summary: - Give reflection_limited a nice clean Python module. - if/regen.sh now generates reflection_limited for Python and copies it to src. - Added the generated Python for reflection_limited to version control. - lib/py/setup.py installs reflection_limited. - lib/py/cleanup.sh now removes build (make sure to run as root). - The C++ version of reflection_limited was also updated by regen.sh. Reviewed By: mcslee Test Plan: - Clean build and install. - Look at the installed Python files. - python -c 'from thrift.reflection.limited.ttypes import *' Revert Plan: ok git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665235 13f79535-47bb-0310-9956-ffa450edef68
33 lines
899 B
Python
33 lines
899 B
Python
#!/usr/bin/env python
|
|
#
|
|
# Copyright (c) 2006- Facebook
|
|
# Distributed under the Thrift Software License
|
|
#
|
|
# See accompanying file LICENSE or visit the Thrift site at:
|
|
# http://developers.facebook.com/thrift/
|
|
|
|
from distutils.core import setup, Extension
|
|
|
|
fastbinarymod = Extension('thrift.protocol.fastbinary',
|
|
sources = ['src/protocol/fastbinary.c'],
|
|
)
|
|
|
|
setup(name = 'Thrift',
|
|
version = '1.0',
|
|
description = 'Thrift Python Libraries',
|
|
author = ['Mark Slee'],
|
|
author_email = ['mcslee@facebook.com'],
|
|
url = 'http://code.facebook.com/thrift',
|
|
packages = [
|
|
'thrift',
|
|
'thrift.protocol',
|
|
'thrift.transport',
|
|
'thrift.server',
|
|
'thrift.reflection',
|
|
'thrift.reflection.limited',
|
|
],
|
|
package_dir = {'thrift' : 'src'},
|
|
ext_modules = [fastbinarymod],
|
|
)
|
|
|