Hi. On Mon, Dec 17, 2001 at 08:14:46PM -0600, Joe Reinhardt wrote: > What is the best way to use the setup.py in the debian/rules?
Added lines marked with "+++" +++ PYTHON=python2.1 +++ PACKAGE=scipy > configure: configure-stamp > configure-stamp: > dh_testdir > # Add here commands to configure the package. +++ $(PYTHON) setup.py configure > touch configure-stamp > > build: configure-stamp build-stamp > build-stamp: > dh_testdir > > # Add here commands to compile the package. +++ $(PYTHON) setup.py build > touch build-stamp > > clean: > dh_testdir > dh_testroot > rm -f build-stamp configure-stamp > > # Add here commands to clean up after the build process. +++ Distutils choke on dangling symlinks, which are sometimes +++ generated (eg. by dh_undocumented). +++ So if you use dh_undocumented, remove the symlink hardcoded +++ at this point. +++ -$(PYTHON) setup.py clean --all +++ You should not need the next three lines, or the above line +++ forgot to clean some files, which is a setup.py error. > -rm -rf build > -rm -rf dist > -rm *.pyc *.pyo */*.pyc */*.pyo > > dh_clean -Xincluded_functions.html.orig > > install: build > dh_testdir > dh_testroot > dh_clean -k -Xincluded_functions.html.orig > dh_installdirs > > # Add here commands to install the package into debian/scipy. +++ $(PYTHON) setup.py install --root=$(CURDIR)/debian/$(PACKAGE) --no-compi le +++ move around files into proper directories (examples, CGI scripts, +++ binaries...) For the rest, have a look at the linkchecker package. Greetings, Bastian
pgpN9kYmO2DSZ.pgp
Description: PGP signature