diff options
author | elie <elie> | 2015-10-10 18:06:58 +0000 |
---|---|---|
committer | elie <elie> | 2015-10-10 18:06:58 +0000 |
commit | 5525c577dc025abce5fa92fa89b667b4f795d7ac (patch) | |
tree | 9dcd62c9d821e54b7958dcaf3861e2fbc8952625 | |
parent | 92748078c37e654e38c9ccf666e7626ea4b2b0a1 (diff) | |
download | pysnmp-git-5525c577dc025abce5fa92fa89b667b4f795d7ac.tar.gz |
fix to __doc__ use in setup.py to make -O0 installation mode working
-rw-r--r-- | CHANGES.txt | 1 | ||||
-rw-r--r-- | setup.py | 6 |
2 files changed, 4 insertions, 3 deletions
diff --git a/CHANGES.txt b/CHANGES.txt index fad97afb..2c5612b9 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -7,6 +7,7 @@ Revision 4.3.1, work in progress - A bunch of convenience shortcuts to rfc1902.ObjectIdentity added from rfc1902.ObjectType and rfc1902.NotificationType (.addAsn1MibSource(), .addMibSource(), .loadMibs()) +- Fix to __doc__ use in setup.py to make -O0 installation mode working. Revision 4.3.0, released 28-09-2015 ----------------------------------- @@ -75,9 +75,9 @@ You may wish to grab them from http://www.voidspace.org.uk/python/modules.shtml and install into your system. """) -doclines = [ x.strip() for x in __doc__.split('\n') if x ] +doclines = [x.strip() for x in (__doc__ or '').split('\n') if x] -params.update( { +params.update({ 'name': 'pysnmp', 'version': open(os.path.join('pysnmp','__init__.py')).read().split('\'')[1], 'description': doclines[0], @@ -124,6 +124,6 @@ params.update( { 'pysnmp.proto.acmod', 'pysnmp.proto.proxy', 'pysnmp.proto.api' ] - } ) + }) setup(**params) |