#!/usr/bin/env python
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements.  See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership.  The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License.  You may obtain a copy of the License at
#
#   http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied.  See the License for the
# specific language governing permissions and limitations
# under the License.
#

from distutils.core import setup, Extension

setup(name='Proton',
      version='0.9',
      description='An AMQP based messaging library.',
      author='Apache Qpid',
      author_email='proton@qpid.apache.org',
      url='http://qpid.apache.org/proton/',
      packages=['proton'],
      ext_modules=[Extension('cproton', ['cproton.i'])])

@@ -862,17 +862,29 @@
 p(name='
-P
+python-qpid-p
 roton',%0A
@@ -1102,16 +1102,268 @@
 oton'%5D,%0A
+      py_modules=%5B'cproton'%5D,%0A      license=%22Apache Software License%22,%0A      classifiers=%5B%22License :: OSI Approved :: Apache Software License%22,%0A                   %22Intended Audience :: Developers%22,%0A                   %22Programming Language :: Python%22%5D,%0A
       ex
@@ -1384,16 +1384,17 @@
 ension('
+_
 cproton'
@@ -1408,12 +1408,68 @@
 oton.i'%5D
+,%0A                             libraries=%5B'qpid-proton'%5D
 )%5D)%0A

fix setup.py