summaryrefslogtreecommitdiffstats
path: root/src/setup.py
diff options
context:
space:
mode:
authorDavid Sommerseth <davids@redhat.com>2009-06-10 19:30:28 +0200
committerDavid Sommerseth <davids@redhat.com>2009-06-10 19:30:28 +0200
commit541ee10989640f028d777c9341c63573aac4a55f (patch)
tree830a829d75d1f3cbcbf1aede838f4238523745fe /src/setup.py
parenta05ca0f0e588031bde35143ba27481f2c5fdea70 (diff)
downloadpython-dmidecode-541ee10989640f028d777c9341c63573aac4a55f.tar.gz
python-dmidecode-541ee10989640f028d777c9341c63573aac4a55f.tar.xz
python-dmidecode-541ee10989640f028d777c9341c63573aac4a55f.zip
Discovered another issue with Python and imports
The shard library got renamed to dmidecodemodule.so, and this was not clever. When you do 'import dmidecode' in Python, it will look for files in this order: dmidecode dmidecode.so dmidecodemodule.so dmidecode.py dmidecode.pyc This is of course a problem when the wrapper introduced in commit 65c9384ec9b6e265aba11227ffa37ae7a6a787d1 is called dmidecode.py, and Python attempts to load dmidecodemodule.so before dmidecode.py. To solve this, dmidecodemodule.so is now renamed to dmidecodemod.so.
Diffstat (limited to 'src/setup.py')
-rw-r--r--src/setup.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/setup.py b/src/setup.py
index b45775a..d29cf96 100644
--- a/src/setup.py
+++ b/src/setup.py
@@ -11,7 +11,7 @@ setup(
data_files = [ ('share/python-dmidecode', ['src/pymap.xml']) ],
ext_modules = [
Extension(
- "dmidecodemodule",
+ "dmidecodemod",
sources = [
"src/dmidecodemodule.c",
"src/util.c",