packaging fix: distribute skeleton
authorSylvain Thenault <sylvain.thenault@logilab.fr>
Mon, 22 Dec 2008 19:00:20 +0100
changeset 264 6eb0725d509d
parent 263 03c06a7820d3
child 265 97361ddaf342
packaging fix: distribute skeleton
MANIFEST.in
__pkginfo__.py
debian/rules
devtools/devctl.py
--- a/MANIFEST.in	Mon Dec 22 18:20:26 2008 +0100
+++ b/MANIFEST.in	Mon Dec 22 19:00:20 2008 +0100
@@ -25,5 +25,6 @@
 recursive-include web/test/data *.js *.css *.png *.gif *.jpg *.ico external_resources
 recursive-include devtools/test/data *
 
+recursive-include skeleton *.py*.css *.js *.po compat *.in *.tmpl 
+
 prune misc/cwfs
-prune server/msplanner.py server/mssteps.py server/sources/ldapuser.py server/sources/pyrorql.py server/sources/extlite.py
--- a/__pkginfo__.py	Mon Dec 22 18:20:26 2008 +0100
+++ b/__pkginfo__.py	Mon Dec 22 19:00:20 2008 +0100
@@ -58,7 +58,9 @@
     # --home install
     pydir = 'python'
 else:
-    pydir = join('python2.4', 'site-packages')
+    pydir = join('python2.4', 'site-packages')*
+
+include_dirs = ['skeleton']
 try:
     data_files = [
         # common data
@@ -86,6 +88,8 @@
          [join(views_dir, fname) for fname in listdir(views_dir) if fname.endswith('.pt')]],
         [join('share', 'cubicweb', 'cubes', 'shared', 'i18n'),
          [join(i18n_dir, fname) for fname in listdir(i18n_dir)]],
+        # skeleton
+        
         ]
 except OSError:
     # we are in an installed directory, don't care about this
--- a/debian/rules	Mon Dec 22 18:20:26 2008 +0100
+++ b/debian/rules	Mon Dec 22 19:00:20 2008 +0100
@@ -69,6 +69,7 @@
 	########## dev package ################################################
 	# devtools package
 	mv debian/cubicweb-core/usr/lib/python2.4/site-packages/cubicweb/devtools/ debian/cubicweb-dev/usr/lib/python2.4/site-packages/cubicweb/
+	mv debian/cubicweb-core/usr/lib/python2.4/site-packages/cubicweb/skeleton/ debian/cubicweb-dev/usr/lib/python2.4/site-packages/cubicweb/
 	# tests directories
 	mv debian/cubicweb-core/usr/lib/python2.4/site-packages/cubicweb/test debian/cubicweb-dev/usr/lib/python2.4/site-packages/cubicweb/
 	mv debian/cubicweb-common/usr/lib/python2.4/site-packages/cubicweb/common/test debian/cubicweb-dev/usr/lib/python2.4/site-packages/cubicweb/common/
--- a/devtools/devctl.py	Mon Dec 22 18:20:26 2008 +0100
+++ b/devtools/devctl.py	Mon Dec 22 19:00:20 2008 +0100
@@ -385,8 +385,8 @@
         if len(args) != 1:
             raise BadCommandUsage("exactly one argument (cube name) is expected")
         cubename, = args
-        if ServerConfiguration.mode != "dev":
-            self.fail("you can only create new cubes in development mode")
+        #if ServerConfiguration.mode != "dev":
+        #    self.fail("you can only create new cubes in development mode")
         verbose = self.get('verbose')
         cubedir = ServerConfiguration.CUBES_DIR
         if not isdir(cubedir):