fix to __doc__ use in setup.py to make -O0 installation mode working

pull/45/head
elie 2015-10-10 18:06:58 +00:00
parent 92748078c3
commit 5525c577dc
2 changed files with 4 additions and 3 deletions

View File

@ -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
-----------------------------------

View File

@ -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)