diff -Naur pyusb-0.3.3.orig/pyusb.c pyusb-0.3.3/pyusb.c --- pyusb-0.3.3.orig/pyusb.c 2006-03-22 18:00:22.000000000 +0100 +++ pyusb-0.3.3/pyusb.c 2006-07-27 14:29:29.000000000 +0200 @@ -339,7 +339,7 @@ PYUSB_STATIC PyTypeObject Py_usb_Endpoint_Type = { PyObject_HEAD_INIT(NULL) 0, /*ob_size*/ - "usb.Endpoint", /*tp_name*/ + "pyusb.Endpoint", /*tp_name*/ sizeof(Py_usb_Endpoint), /*tp_basicsize*/ 0, /*tp_itemsize*/ 0, /*tp_dealloc*/ @@ -472,7 +472,7 @@ PYUSB_STATIC PyTypeObject Py_usb_Interface_Type = { PyObject_HEAD_INIT(NULL) 0, /*ob_size*/ - "usb.Interface", /*tp_name*/ + "pyusb.Interface", /*tp_name*/ sizeof(Py_usb_Interface), /*tp_basicsize*/ 0, /*tp_itemsize*/ Py_usb_Interface_del, /*tp_dealloc*/ @@ -631,7 +631,7 @@ PYUSB_STATIC PyTypeObject Py_usb_Configuration_Type = { PyObject_HEAD_INIT(NULL) 0, /*ob_size*/ - "usb.Configuration", /*tp_name*/ + "pyusb.Configuration", /*tp_name*/ sizeof(Py_usb_Configuration), /*tp_basicsize*/ 0, /*tp_itemsize*/ Py_usb_Configuration_del, /*tp_dealloc*/ @@ -850,7 +850,7 @@ PYUSB_STATIC PyTypeObject Py_usb_Device_Type = { PyObject_HEAD_INIT(NULL) 0, /*ob_size*/ - "usb.Device", /*tp_name*/ + "pyusb.Device", /*tp_name*/ sizeof(Py_usb_Device), /*tp_basicsize*/ 0, /*tp_itemsize*/ Py_usb_Device_del, /*tp_dealloc*/ @@ -996,7 +996,7 @@ PYUSB_STATIC PyTypeObject Py_usb_Bus_Type = { PyObject_HEAD_INIT(NULL) 0, /*ob_size*/ - "usb.Bus", /*tp_name*/ + "pyusb.Bus", /*tp_name*/ sizeof(Py_usb_Bus), /*tp_basicsize*/ 0, /*tp_itemsize*/ Py_usb_Bus_del, /*tp_dealloc*/ @@ -1870,7 +1870,7 @@ PYUSB_STATIC PyTypeObject Py_usb_DeviceHandle_Type = { PyObject_HEAD_INIT(NULL) 0, /*ob_size*/ - "usb.DeviceHandle", /*tp_name*/ + "pyusb.DeviceHandle", /*tp_name*/ sizeof(Py_usb_DeviceHandle), /*tp_basicsize*/ 0, /*tp_itemsize*/ Py_usb_DeviceHandle_del, /*tp_dealloc*/ @@ -1999,14 +1999,14 @@ /* * Entry point for the module */ -PyMODINIT_FUNC initusb(void) +PyMODINIT_FUNC initpyusb(void) { PyObject *module; - PyExc_USBError = PyErr_NewException("usb.USBError", PyExc_IOError, NULL); + PyExc_USBError = PyErr_NewException("pyusb.USBError", PyExc_IOError, NULL); if (!PyExc_USBError) return; - module = Py_InitModule3("usb", usb_Methods,"USB access module"); + module = Py_InitModule3("pyusb", usb_Methods,"USB access module"); if (!module) return; if (PyType_Ready(&Py_usb_Endpoint_Type) < 0) return; diff -Naur pyusb-0.3.3.orig/setup.py pyusb-0.3.3/setup.py --- pyusb-0.3.3.orig/setup.py 2006-03-22 18:00:22.000000000 +0100 +++ pyusb-0.3.3/setup.py 2006-07-27 14:27:22.000000000 +0200 @@ -39,7 +39,7 @@ extra_compile_args = ['-I/usr/local/include'] -usbmodule = Extension(name = 'usb', +usbmodule = Extension(name = 'pyusb', libraries = libraries, sources = ['pyusb.c'], extra_link_args = extra_link_args,