summaryrefslogtreecommitdiffstats
path: root/src/setup.py
diff options
context:
space:
mode:
authorDavid Sommerseth <davids@redhat.com>2009-06-10 11:43:56 +0200
committerDavid Sommerseth <davids@redhat.com>2009-06-10 11:43:56 +0200
commitb25b2ca548508cd2beb26f465b7bc5a296592461 (patch)
tree8c6db01b6ac2bd22baa6b6be1de6382244c471f9 /src/setup.py
parentb6d42c742d89dda95cc6e371f0fda6bf1d385a45 (diff)
downloadpython-dmidecode-b25b2ca548508cd2beb26f465b7bc5a296592461.tar.gz
python-dmidecode-b25b2ca548508cd2beb26f465b7bc5a296592461.tar.xz
python-dmidecode-b25b2ca548508cd2beb26f465b7bc5a296592461.zip
Implemented native libxml2 XML API for dmidecode
To use this API, you need to import dmidecodeXML. This is a wrapper class for the internal XML API which has been implemented. In addition, you might also want to import libxml2 as well. dmidecodeXML::QuerySection(<string>) Valid section strings can be found in the pymap.xml file, in the <GroupMapping> tag section. dmidecodeXML::TypeId(<integer between 0-255>) Valid values should match the DMI/SMBIOS specification. dmidecodeXML::SetResultType(resultType) Result type can be either dmidecodeXML.DMIXML_NODE or dmidecodeXML.DMIXML_DOC ---------------------------------------------------------- import libxml2 import dmidecodeXML dmixml = dmidecodeXML.dmidecodeXML() section_nodes = dmixml.QuerySection('processor') dmixml.SetResultType(dmidecodeXML.DMIXML_DOC) typeid_doc = dmixml.QueryTypeId(0x10) dmixml.SetResultType(dmidecodeXML.DMIXML_NODE) typeid_doc.saveFormatFileEnc("-", "UTF-8", 1) ----------------------------------------------------------
Diffstat (limited to 'src/setup.py')
-rw-r--r--src/setup.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/setup.py b/src/setup.py
index b02bdf0..54b0357 100644
--- a/src/setup.py
+++ b/src/setup.py
@@ -22,8 +22,8 @@ setup(
"src/xmlpythonizer.c"
],
include_dirs = [ "/usr/include/libxml2" ],
- library_dirs = [ "/home/nima/dev-room/projects/dmidecode" ],
- libraries = [ "util", "xml2" ]
+ library_dirs = [ "/home/nima/dev-room/projects/dmidecode", "/usr/lib64/python2.5/site-packages"],
+ libraries = [ "util", "xml2", "xml2mod" ]
)
]
)