From: W. Trevor King Date: Fri, 14 May 2010 14:39:58 +0000 (-0400) Subject: Added distutils-based setup.py. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=455e3563c10a2ef3eba073f38af4dd3654a4671b;p=hooke.git Added distutils-based setup.py. --- diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..db44e7c --- /dev/null +++ b/setup.py @@ -0,0 +1,51 @@ +"""Hooke: tools for analyzing force spectroscopy data. + +Mercurial repository: +http://www.physics.drexel.edu/~wking/code/hg/hooke/ +""" + +from distutils.core import setup +from os import walk +import os.path + +from hooke import version + + +classifiers = """\ +Development Status :: 3 - Alpha +Intended Audience :: Science/Research +Operating System :: OS Independent +License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL) +Programming Language :: Python +Topic :: Scientific/Engineering +""" + +doclines = __doc__.split("\n") + +def find_packages(): + packages = [] + prefix = '.'+os.path.sep + for dirpath,dirnames,filenames in walk('.'): + if '__init__.py' in filenames: + if dirpath.startswith(prefix): + dirpath = dirpath[len(prefix):] + packages.append(dirpath.replace(os.path.sep, '.')) + return packages + +packages = find_packages() + +setup(name="Hooke", + version=version(), + maintainer="Massimo Sandal", + maintainer_email="hookesoftware@googlegroups.com", + url="http://code.google.com/p/hooke/", + download_url="http://www.physics.drexel.edu/~wking/code/hg/hgwebdir.gci/hooke/archive/%s.tar.gz" % version(3), + license = "GNU Lesser General Public License (LGPL)", + platforms = ["all"], + description = doclines[0], + long_description = "\n".join(doclines[2:]), + classifiers = filter(None, classifiers.split("\n")), + scripts = ['bin/hooke'], + packages = packages, + provides = packages, + )