Make setup.py install work with package_data. veekun-promotions/2010051501
authorEevee <git@veekun.com>
Fri, 14 May 2010 01:06:50 +0000 (18:06 -0700)
committerEevee <git@veekun.com>
Sat, 15 May 2010 20:11:01 +0000 (13:11 -0700)
The CSVs are now the only package data.  Otherwise, setuptools would
copy every single sprite individually to the standard library directory,
which is slow and time-consuming and wasteful.  If you need the sprites,
use them from the repo.  :(

setup.py

index 62da748..ee8a33c 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -4,7 +4,9 @@ setup(
     version = '0.1',
     zip_safe = False,
     packages = find_packages(),
     version = '0.1',
     zip_safe = False,
     packages = find_packages(),
-    package_data = { '': ['pokedex/data'] },
+    package_data = {
+        'pokedex': ['data/csv/*.csv']
+    },
     install_requires=[
         'docutils',
         'SQLAlchemy>=0.5.1',
     install_requires=[
         'docutils',
         'SQLAlchemy>=0.5.1',