fix to __doc__ use in setup.py to make -O0 installation mode working
parent
92748078c3
commit
5525c577dc
|
@ -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
|
||||
-----------------------------------
|
||||
|
|
6
setup.py
6
setup.py
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue