[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [bridgedb/master] Add extra data_files to setup.py installations without MANIFEST.in.
commit 6609e34ce55583095335c437a5bce9a629e23df7
Author: Isis Lovecruft <isis@xxxxxxxxxxxxxx>
Date: Tue Aug 20 00:30:19 2013 +0000
Add extra data_files to setup.py installations without MANIFEST.in.
---
MANIFEST.in | 1 -
setup.py | 14 +++++++++++++-
2 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/MANIFEST.in b/MANIFEST.in
deleted file mode 100644
index 07728ed..0000000
--- a/MANIFEST.in
+++ /dev/null
@@ -1 +0,0 @@
-include README TODO
diff --git a/setup.py b/setup.py
index d93bd05..b043720 100644
--- a/setup.py
+++ b/setup.py
@@ -56,10 +56,22 @@ def get_requirements():
return requirements
+def get_data_files():
+ """Returns our hard-coded data_files which should be distributed.
+
+ This is necessary for the :class:`installData` class to determine which
+ files we should include in the packaged distribution.
+
+ see http://docs.python.org/2/distutils/setupscript.html#installing-additional-files
+ """
+ data_files=[(os.path.join('share', 'doc', 'bridgedb'),
+ ['README', 'TODO', 'LICENSE', 'requirements.txt'])]
+ return data_files
+
class installData(_install_data):
def run(self):
- self.data_files = []
+ self.data_files = get_data_files()
for lang in os.listdir('build/locale/'):
if lang.endswith('templates'):
continue
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits