ebin123456 / py-amqplib

Automatically exported from code.google.com/p/py-amqplib
GNU Lesser General Public License v2.1
0 stars 0 forks source link

Use setuptools instead of distutils.core import for setup.py... #16

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Which version of amqplib are you using?
0.6.1

Have you checked to see if there is a newer version in the "Featured
Downloads" section of the front page of this project?
Yes.

Which broker are you using (RabbitMQ?) which version?
RabbitMQ 1.7.2

Which version of Python?

2.6

What steps will reproduce the problem?

$ python setup.py install --single-version-externally-managed
...
error: option --single-version-externally-managed not recognized

What is the expected output? What do you see instead?

No errors.

Please provide any additional information below.

Check for setuptools and use the setuptools version of setup to get the
enhanced functionality therein for packagers.

Super simple patch:

--- setup.py.orig   2010-02-24 12:09:19.000000000 -0800
+++ setup.py    2010-02-24 12:08:50.000000000 -0800
@@ -9,7 +9,10 @@
 """

 import sys
-from distutils.core import setup
+try:
+    from setuptools import setup
+except:
+    from distutils.core import setup

 setup(name = "amqplib",
       description = "AMQP Client Library",
[

--Robert

Original issue reported on code.google.com by coinelement@gmail.com on 24 Feb 2010 at 8:10

GoogleCodeExporter commented 9 years ago
OK, seems reasonable enough, committed as Rev b38d7d1b4e7f  

Original comment by barry.pe...@gmail.com on 28 Mar 2011 at 6:39