# HG changeset patch # User domruf # Date 1511100691 -3600 # Node ID b374803eafb6befa1f74e3833917d2b198346b34 # Parent a0da4cb9276045cd95a1c8cd0d45e22de784fdd3 MANIFEST: only include bootstrap from node_modules when packaging or installing With the 'less' source folder placed under 'public', the whole folder happened to be fully included in source distribution and installed. *If* 'npm install' has been run, 'kallithea/public/less/node_modules/' will contain both build/development tools ('less' and dependencies) and the source of Bootstrap. We do want Bootstrap source to be included so it automatically gets 'vendored', but we don't want all the build tools. We thus prune the whole 'node_modules' directory, but add 'node_modules/bootstrap' back in. This is exactly what it is. It might seem a bit fragile: There is no verification that it only is the 'bootstrap' directory that should be added back in, and there is no verification that it actually is present and included. diff -r a0da4cb92760 -r b374803eafb6 MANIFEST.in --- a/MANIFEST.in Sun Oct 29 23:27:19 2017 +0100 +++ b/MANIFEST.in Sun Nov 19 15:11:31 2017 +0100 @@ -19,6 +19,8 @@ include kallithea/lib/paster_commands/template.ini.mako recursive-include kallithea/i18n * recursive-include kallithea/public * +prune kallithea/public/less/node_modules +recursive-include kallithea/public/less/node_modules/bootstrap * recursive-include kallithea/templates * recursive-include kallithea/tests/fixtures * recursive-include kallithea/tests/scripts *