2 # Uncomment this to turn on verbose mode.
5 DEB_PYTHON_SYSTEM=pycentral
7 include /usr/share/cdbs/1/rules/debhelper.mk
8 include /usr/share/cdbs/1/class/python-distutils.mk
10 STAGING_DIR=$(CURDIR)/debian/allmydata-tahoe
12 # we overwrite the setuptools-generated /usr/bin/tahoe with our package's
13 # original version, because the setuptools form (using "entry points")
14 # insists upon .egg-info -visible forms of dependent packages to be
15 # installed. For a debian package, we rely upon the dependencies that are
16 # declared in debian/control .
18 # One disadvantage to this approach is that the #! line will not get updated
19 # to match the version of python that we're using for this build. Instead, it
20 # will retain the original '#!/usr/bin/env python', which has the potential
23 install/allmydata-tahoe::
24 mkdir -pm755 $(STAGING_DIR)
25 python setup.py install --root=$(STAGING_DIR)
26 cp bin/tahoe $(STAGING_DIR)/usr/bin/