[Oval-commits] r260 - trunk/oval-agent/debian
Javier Fernandez-Sanguino Pen~a
jfs at alioth.debian.org
Tue Sep 4 22:28:26 UTC 2007
Author: jfs
Date: 2007-09-04 22:28:26 +0000 (Tue, 04 Sep 2007)
New Revision: 260
Modified:
trunk/oval-agent/debian/rules
Log:
Instead of removing pyc files, just ask setup not to compile. Also, simplify use of PREFIX and install this as a private module
Modified: trunk/oval-agent/debian/rules
===================================================================
--- trunk/oval-agent/debian/rules 2007-09-04 22:28:23 UTC (rev 259)
+++ trunk/oval-agent/debian/rules 2007-09-04 22:28:26 UTC (rev 260)
@@ -11,6 +11,8 @@
PYTHON_VERSION=$(shell /usr/bin/python -V 2>&1 | /usr/bin/perl -le 'print "$$1.$$2" if <> =~m/^Python\s+(\d+)\.(\d+)(\.\d+)*/')
+PREFIX := debian/oval-agent/usr
+
build: build-stamp
build-stamp:
@@ -35,12 +37,12 @@
dh_clean -k
dh_installdirs
- ./setup.py install --prefix=$(CURDIR)/debian/oval-agent/usr --install-lib=$(CURDIR)/debian/oval-agent/usr/share/python-support/oval-agent
+ ./setup.py install --no-compile \
+ --prefix=$(PREFIX) \
+ --install-lib=$(PREFIX)/share/oval-agent
+
install -m644 oval-agent.cfg $(CURDIR)/debian/oval-agent/etc/oval/oval-agent.conf
- # Remove the generated .pyc files
- ( cd debian/oval-agent/usr/share/python-support/oval-agent/ovalClient && \
- rm -f *.pyc )
# Build architecture-independent files here.
binary-indep: build install
More information about the Oval-commits
mailing list