summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--debian/changelog7
-rwxr-xr-xdebian/rules4
-rw-r--r--src/setup-dbg.py25
-rw-r--r--src/setup.py4
4 files changed, 36 insertions, 4 deletions
diff --git a/debian/changelog b/debian/changelog
index ff3f9a8..cbca96f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+python-dmidecode (2.10.3-1) unstable; urgency=low
+
+ * Upstream release - separate setup.py for debug and non-debug versions of
+ python-dmidecode (Closes: #516358).
+
+ -- Nima Talebi <nima@it.net.au> Mon, 23 Feb 2009 00:34:11 +1100
+
python-dmidecode (2.10.2-1) unstable; urgency=low
* Upstream release.
diff --git a/debian/rules b/debian/rules
index f5de738..b7b6b95 100755
--- a/debian/rules
+++ b/debian/rules
@@ -14,7 +14,7 @@ build-ext-%:
python$* src/setup.py build
touch $@
build-dbg-ext-%:
- python$*-dbg src/setup.py build
+ python$*-dbg src/setup-dbg.py build
touch $@
@@ -36,7 +36,7 @@ install-ext-%:
python$* src/setup.py install --root $(CURDIR)/debian/python-dmidecode
touch $@
install-dbg-ext-%:
- python$*-dbg src/setup.py install --root $(CURDIR)/debian/python-dmidecode-dbg
+ python$*-dbg src/setup-dbg.py install --root $(CURDIR)/debian/python-dmidecode-dbg
#find $(CURDIR)/debian/python-dmidecode-dbg/usr/lib/python$*/ ! -type d ! -name '*_d\.so' -delete
#find $(CURDIR)/debian/python-dmidecode-dbg/usr/lib/python$*/ -depth -empty -delete
touch $@
diff --git a/src/setup-dbg.py b/src/setup-dbg.py
new file mode 100644
index 0000000..1a23240
--- /dev/null
+++ b/src/setup-dbg.py
@@ -0,0 +1,25 @@
+from distutils.core import setup, Extension
+
+setup(
+ name = "python-dmidecode-dbg",
+ version = "2.10.3",
+ description = "Python extension module for dmidecode",
+ author = "Nima Talebi",
+ author_email = "nima@autonomy.net.au",
+ url = "http://projects.autonomy.net.au/dmidecode/",
+ ext_modules = [
+ Extension(
+ "dmidecode",
+ sources = [
+ "src/dmidecodemodule.c",
+ "src/dmihelper.c",
+ "src/util.c",
+ "src/dmioem.c",
+ "src/dmidecode.c"
+ ],
+ library_dirs = [ "/home/nima/dev-room/projects/dmidecode" ],
+ libraries = [ "util" ],
+ #libraries = [ "util", "efence" ],
+ )
+ ]
+)
diff --git a/src/setup.py b/src/setup.py
index f9a5d2f..b0999b5 100644
--- a/src/setup.py
+++ b/src/setup.py
@@ -1,8 +1,8 @@
from distutils.core import setup, Extension
setup(
- name = "dmidecode",
- version = "2.10.2",
+ name = "python-dmidecode",
+ version = "2.10.3",
description = "Python extension module for dmidecode",
author = "Nima Talebi",
author_email = "nima@autonomy.net.au",