From eeac9bdd77bf678883eaca2f1b15c1d4ab88e631 Mon Sep 17 00:00:00 2001 From: "Sean C. Farley" Date: Wed, 1 Feb 2012 14:16:34 -0500 Subject: [PATCH] Fix setup.py build with static/css directory Exclude static/css from package_data since package_data does not handle the copying of subdirectories implicitly to fix the build. --- setup.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 690a7e0fd..a075fcaf5 100644 --- a/setup.py +++ b/setup.py @@ -24,7 +24,9 @@ setup( 'djangorestframework.runtests', 'djangorestframework.utils'], package_dir={'djangorestframework': 'djangorestframework'}, - package_data = {'djangorestframework': ['templates/*', 'static/*']}, + package_data = {'djangorestframework': ['templates/*', 'static/*', + 'static/css/*']}, + exclude_package_data = {'djangorestframework': ['static/css']}, test_suite = 'djangorestframework.runtests.runcoverage.main', install_requires=['URLObject>=0.6.0'], classifiers = [