]> git.rkrishnan.org Git - tahoe-lafs/zfec.git/commitdiff
setup: loosen the requirements -- you need argparse and pyutil only if you want the...
authorzooko <zooko@zooko.com>
Mon, 15 Jun 2009 23:17:11 +0000 (04:47 +0530)
committerzooko <zooko@zooko.com>
Mon, 15 Jun 2009 23:17:11 +0000 (04:47 +0530)
Ignore-this: 5e502a60e8d63ebf98b8bb87b21b9f63
This way Tahoe-LAFS can require zfec without requiring zfec's commandline tools, and therefore without requiring argparse or pyutil.  This might make it easier to package Tahoe-LAFS for Debian.

darcs-hash:56fdb34c44a5e59568f261c1df352a60ab7f27a1

zfec/setup.py

index b2f047409ed6a86c1eff26aa4f1eb6c1a635db9e..a83f5b23fa6d0ce0d11b6d30c79a119c91fbaab1 100755 (executable)
@@ -131,6 +131,10 @@ data_fnames=[ 'COPYING.GPL', 'changelog', 'COPYING.TGPPL.html', 'TODO', 'README.
 doc_loc = "share/doc/python-" + PKG
 data_files = [(doc_loc, data_fnames)]
 
+extras_require = {
+    'command_line_tools': ["argparse >= 0.8", "pyutil >= 1.3.19"]
+    }
+
 def _setup(test_suite):
     setup(name=PKG,
           version=verstr,
@@ -141,7 +145,7 @@ def _setup(test_suite):
           url='http://allmydata.org/trac/'+PKG,
           license='GNU GPL',
           dependency_links=dependency_links,
-          install_requires=["argparse >= 0.8", "pyutil >= 1.3.19"],
+          extras_require=extras_require,
           tests_require=["pyutil >= 1.3.19"],
           packages=find_packages(),
           include_package_data=True,