From f34b8b251a4f47bad192d32678f64ec5a2128e92 Mon Sep 17 00:00:00 2001 From: Zooko O'Whielacronx Date: Fri, 9 Nov 2007 18:04:19 -0700 Subject: [PATCH] setup: automatically discover files to include in packages (Because they are python packages or because they are registered under darcs revision control.) --- setup.py | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/setup.py b/setup.py index ea4b0172..b6ecded6 100644 --- 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=[ -- 2.45.2