From 1b75620e5b91f9cafdf7f20b2c95e702787648b1 2008-07-02 04:19:24 From: Brian E Granger Date: 2008-07-02 04:19:24 Subject: [PATCH] package_data was missing the .txt files in the testing directories. This was causing the test suite to fail when IPtyhon was installed. I have modified find_package_data in setupbase.py to include these files. Anyone who writes tests that rely on .txt files needs to add them to the package_data. --- diff --git a/MANIFEST.in b/MANIFEST.in index 7fa5a4a..227736e 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -16,7 +16,6 @@ graft IPython/tools graft docs exclude docs/\#* exclude docs/man/*.1 -exclude docs/ChangeLog.* # There seems to be no way of excluding whole subdirectories, other than # manually excluding all their subdirs. distutils really is horrible... diff --git a/setupbase.py b/setupbase.py index c1d9a3a..657596a 100644 --- a/setupbase.py +++ b/setupbase.py @@ -124,7 +124,11 @@ def find_package_data(): """ # This is not enough for these things to appear in an sdist. # We need to muck with the MANIFEST to get this to work - package_data = {'IPython.UserConfig' : ['*'] } + package_data = { + 'IPython.UserConfig' : ['*'], + 'IPython.tools.tests' : ['*.txt'], + 'IPython.testing' : ['*.txt'] + } return package_data