]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
setup: automatically discover files to include in packages
authorZooko O'Whielacronx <zooko@zooko.com>
Sat, 10 Nov 2007 01:04:19 +0000 (18:04 -0700)
committerZooko O'Whielacronx <zooko@zooko.com>
Sat, 10 Nov 2007 01:04:19 +0000 (18:04 -0700)
(Because they are python packages or because they are registered under darcs revision control.)

setup.py

index ea4b017263f5c26fd8845ca7c62fc23469fb4fd3..b6ecded6c549ac6503ed7050b8d7c012e6800dbe 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -32,7 +32,7 @@ else:
         min_version='0.6a9'
     use_setuptools(min_version=min_version, download_base="file:misc/dependencies/", download_delay=0)
 
-from setuptools import Extension, setup
+from setuptools import Extension, find_packages, setup
 
 from calcdeps import install_requires, dependency_links
 
@@ -109,18 +109,13 @@ setup(name='allmydata-tahoe',
       author_email='tahoe-dev@allmydata.org',
       url='http://allmydata.org/',
       license='GNU GPL v2 or later, plus transitive 12 month grace period; http://allmydata.org/trac/tahoe/browser/COPYING',
-      packages=["allmydata", "allmydata.test", "allmydata.util",
-                "allmydata.scripts",
-                "allmydata.Crypto", "allmydata.Crypto.Cipher",
-                "allmydata.Crypto.Hash", "allmydata.Crypto.Util",
-                #"allmydata.Crypto.PublicKey",
-                ],
-      package_dir={ "allmydata": "src/allmydata",},
-      package_data={ 'allmydata': ['web/*.xhtml', 'web/*.html', 'web/*.css'] },
+      package_dir = {'':'src'},
+      packages=find_packages("src"),
       classifiers=trove_classifiers,
       test_suite="allmydata.test",
       install_requires=install_requires,
-      setup_requires=["setuptools_darcs_plugin >= 1.0",],
+      include_package_data=True,
+      setup_requires=["setuptools_darcs >= 1.0.5",],
       dependency_links=dependency_links,
       entry_points = { 'console_scripts': [ 'tahoe = allmydata.scripts.runner:run' ] },
       ext_modules=[