first attempt at using dh —buildsystem=python_distutils for packaging myslice
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Tue, 26 Nov 2013 11:48:33 +0000 (12:48 +0100)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Tue, 26 Nov 2013 11:48:33 +0000 (12:48 +0100)
Makefile
debian/control
debian/myslice.install
debian/rules
debian/unfold.install
setup.py

index 9f3a563..3cc9c2b 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -59,7 +59,7 @@ debian.source: force
        rsync -a $(RPMTARBALL) $(DEBTARBALL)
 
 debian.package:
        rsync -a $(RPMTARBALL) $(DEBTARBALL)
 
 debian.package:
-       debuild -uc -us -b 
+       debuild --set-envvar PREFIX=/usr -uc -us -b
 
 debian.clean:
        $(MAKE) -f debian/rules clean
 
 debian.clean:
        $(MAKE) -f debian/rules clean
index 207b30d..4a4eb05 100644 (file)
@@ -4,6 +4,7 @@ Section: misc
 Priority: optional
 Standards-Version: 3.9.2
 Build-Depends: devscripts, debhelper (>=7.0.50~), debconf, dpatch, python-setuptools, make, python-django
 Priority: optional
 Standards-Version: 3.9.2
 Build-Depends: devscripts, debhelper (>=7.0.50~), debconf, dpatch, python-setuptools, make, python-django
+X-Python-Version: >= 2.7
 
 Package: myslice
 Architecture: any
 
 Package: myslice
 Architecture: any
index 5c36f72..e0c711d 100644 (file)
@@ -1 +1 @@
-usr/share/unfold/portal
+usr/lib*/python*/dist-packages/portal
index b8796e6..62e2bb6 100755 (executable)
@@ -2,4 +2,4 @@
 # -*- makefile -*-
 
 %:
 # -*- makefile -*-
 
 %:
-       dh $@
+       dh $@ --with python2 --buildsystem=python_distutils
index 5329158..5bf0af9 100644 (file)
@@ -1,12 +1,12 @@
+usr/lib*/python*/dist-packages/auth
+usr/lib*/python*/dist-packages/insert_above
+usr/lib*/python*/dist-packages/manifold
+usr/lib*/python*/dist-packages/plugins
+usr/lib*/python*/dist-packages/unfold
+usr/lib*/python*/dist-packages/ui
+usr/lib*/python*/dist-packages/myslice
+usr/lib*/python*/dist-packages/sample
 usr/share/unfold/static
 usr/share/unfold/templates
 usr/share/unfold/static
 usr/share/unfold/templates
-usr/share/unfold/auth
-usr/share/unfold/insert_above
-usr/share/unfold/manifold
-usr/share/unfold/plugins
-usr/share/unfold/unfold
-usr/share/unfold/ui
-usr/share/unfold/myslice
-usr/share/unfold/sample
 manage.py usr/share/unfold/
 apache/myslice.conf /etc/apache2/sites-available
 manage.py usr/share/unfold/
 apache/myslice.conf /etc/apache2/sites-available
index e902e32..b9b1a75 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -15,10 +15,10 @@ packages= [ os.path.dirname(init) for init in (glob("*/__init__.py")+glob("*/*/_
 setup(packages = packages,
       scripts = [ 'apache/unfold-init-ssl.sh' ],
       data_files = [ 
 setup(packages = packages,
       scripts = [ 'apache/unfold-init-ssl.sh' ],
       data_files = [ 
-        ( 'static/js', glob ('static/js/*')),
-        ( 'static/css', glob ('static/css/*')),
-        ( 'static/img', glob ('static/img/*')),
-        ( 'static/fonts', glob ('static/fonts/*')),
-        ( 'templates', glob ('templates/*')),
+        ( '/usr/share/unfold/static/js', glob ('static/js/*')),
+        ( '/usr/share/unfold/static/css', glob ('static/css/*')),
+        ( '/usr/share/unfold/static/img', glob ('static/img/*')),
+        ( '/usr/share/unfold/static/fonts', glob ('static/fonts/*')),
+        ( '/usr/share/unfold/templates', glob ('templates/*')),
         ( 'apache', [ 'apache/myslice.conf' ]),
         ])
         ( 'apache', [ 'apache/myslice.conf' ]),
         ])