FS#15614 - [net-snmp] build with python bindings

Attached to Project: Arch Linux
Opened by Florian (fk) - Tuesday, 21 July 2009, 07:41 GMT
Last edited by Eric Belanger (Snowman) - Thursday, 22 October 2009, 06:19 GMT
Task Type Feature Request
Category Packages: Extra
Status Closed
Assigned To Eric Belanger (Snowman)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Hi,

version >= 5.4 of net-snmp provides python bindings [1] please build the net-snmp package with python binding support.

steps to compile net-snmp with python support:

add --with-python-modules to configure options and setuptools[2] as makedepends.



[1] http://www.net-snmp.org/wiki/index.php/Python_Bindings
[2] http://www.archlinux.org/packages/extra/x86_64/setuptools/

This task depends upon

Closed by  Eric Belanger (Snowman)
Thursday, 22 October 2009, 06:19 GMT
Reason for closing:  Implemented
Additional comments about closing:  net-snmp-5.4.2.1-2
Comment by Eric Belanger (Snowman) - Saturday, 03 October 2009, 18:09 GMT
Python modules doesn't build. Looks like setuptools issue.

running build
running build_py
creating build
creating build/lib.linux-x86_64-2.6
creating build/lib.linux-x86_64-2.6/netsnmp
copying netsnmp/client.py -> build/lib.linux-x86_64-2.6/netsnmp
copying netsnmp/__init__.py -> build/lib.linux-x86_64-2.6/netsnmp
creating build/lib.linux-x86_64-2.6/netsnmp/tests
copying netsnmp/tests/__init__.py -> build/lib.linux-x86_64-2.6/netsnmp/tests
copying netsnmp/tests/test.py -> build/lib.linux-x86_64-2.6/netsnmp/tests
running build_ext
Traceback (most recent call last):
File "setup.py", line 44, in <module>
libraries=libs )
File "/usr/lib/python2.6/distutils/core.py", line 152, in setup
dist.run_commands()
File "/usr/lib/python2.6/distutils/dist.py", line 975, in run_commands
self.run_command(cmd)
File "/usr/lib/python2.6/distutils/dist.py", line 995, in run_command
cmd_obj.run()
File "/usr/lib/python2.6/distutils/command/build.py", line 134, in run
self.run_command(cmd_name)
File "/usr/lib/python2.6/distutils/cmd.py", line 333, in run_command
self.distribution.run_command(command)
File "/usr/lib/python2.6/distutils/dist.py", line 995, in run_command
cmd_obj.run()
File "/usr/lib/python2.6/site-packages/setuptools/command/build_ext.py", line 46, in run
_build_ext.run(self)
File "/usr/lib/python2.6/distutils/command/build_ext.py", line 340, in run
self.build_extensions()
File "/usr/lib/python2.6/distutils/command/build_ext.py", line 449, in build_extensions
self.build_extension(ext)
File "/usr/lib/python2.6/site-packages/setuptools/command/build_ext.py", line 175, in build_extension
_build_ext.build_extension(self,ext)
File "/usr/lib/python2.6/distutils/command/build_ext.py", line 460, in build_extension
ext_path = self.get_ext_fullpath(ext.name)
File "/usr/lib/python2.6/distutils/command/build_ext.py", line 633, in get_ext_fullpath
filename = self.get_ext_filename(modpath[-1])
File "/usr/lib/python2.6/site-packages/setuptools/command/build_ext.py", line 85, in get_ext_filename
ext = self.ext_map[fullname]
KeyError: 'client_intf'
make: *** [pythonmodules] Error 1

Loading...