Skip to content
This repository has been archived by the owner on Nov 18, 2017. It is now read-only.

Commit

Permalink
More fixes for liblvm -> lvm
Browse files Browse the repository at this point in the history
Module should be imported as 'lvm'.
Shared object should be lvm.so.

Signed-off-by: Andy Grover <agrover@redhat.com>
  • Loading branch information
Andy Grover committed Apr 17, 2012
1 parent 6aa991c commit 146f2f7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions liblvm.c
Expand Up @@ -1111,15 +1111,15 @@ static PyTypeObject LibLVMpvType = {
#define PyMODINIT_FUNC void
#endif
PyMODINIT_FUNC
initliblvm(void)
initlvm(void)
{
PyObject *m;

LiblvmType.tp_new = PyType_GenericNew;
if (PyType_Ready(&LiblvmType) < 0)
return;

m = Py_InitModule3("liblvm", Liblvm_methods, "Liblvm module");
m = Py_InitModule3("lvm", Liblvm_methods, "Liblvm module");
if (m == NULL)
return;

Expand Down
2 changes: 1 addition & 1 deletion setup.py
@@ -1,6 +1,6 @@
from distutils.core import setup, Extension

liblvm = Extension('liblvm',
liblvm = Extension('lvm',
sources = ['liblvm.c'],
libraries= ['lvm2app'])

Expand Down

0 comments on commit 146f2f7

Please sign in to comment.