]> git.phdru.name Git - m_lib.git/commitdiff
Install test files: use package_data instead of data_files
authorOleg Broytman <phd@phdru.name>
Sun, 1 Dec 2013 01:47:27 +0000 (05:47 +0400)
committerOleg Broytman <phd@phdru.name>
Sun, 1 Dec 2013 01:47:27 +0000 (05:47 +0400)
setup.py

index 4615b53861653ac86b736974d2c60b35fe633359..41fec96013f34c96e4a2583b2859069332096b12 100755 (executable)
--- a/setup.py
+++ b/setup.py
@@ -16,9 +16,9 @@ setup(name = "m_lib",
         "m_lib.net", "m_lib.net.ftp", "m_lib.net.www",
         "m_lib.pbar", "m_lib.pbar.test", "m_lib.rus",
     ],
-    data_files = [("m_lib/flad/test", [
-        "m_lib/flad/test/test.cfg",
-        "m_lib/flad/test/test.txt",
-        "m_lib/flad/test/comment.txt",
-    ])]
+    package_data = {'m_lib.flad': [
+        "test/comment.txt",
+        "test/test.cfg",
+        "test/test.txt",
+    ]},
 )