1 # Copyright (C) 2009-2011 W. Trevor King <wking@drexel.edu>
3 # This file is part of pypiezo.
5 # pypiezo is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU General Public License as published by the
7 # Free Software Foundation, either version 3 of the License, or (at your
8 # option) any later version.
10 # pypiezo is distributed in the hope that it will be useful, but
11 # WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 # General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with pypiezo. If not, see <http://www.gnu.org/licenses/>.
18 "Tools for controlling piezoelectric actuators."
20 from distutils.core import setup
24 from pypiezo import __version__
28 Development Status :: 2 - Pre-Alpha
29 Intended Audience :: Developers
30 Intended Audience :: Science/Research
31 Operating System :: POSIX
32 Operating System :: Unix
33 License :: OSI Approved :: GNU General Public License (GPL)
34 Programming Language :: Python
35 Topic :: Scientific/Engineering
36 Topic :: Software Development :: Libraries :: Python Modules
39 def find_packages(root='pypiezo'):
41 prefix = '.'+os.path.sep
42 for dirpath,dirnames,filenames in walk(root):
43 if '__init__.py' in filenames:
44 if dirpath.startswith(prefix):
45 dirpath = dirpath[len(prefix):]
46 packages.append(dirpath.replace(os.path.sep, '.'))
49 _this_dir = os.path.dirname(__file__)
50 packages = find_packages()
54 maintainer='W. Trevor King',
55 maintainer_email='wking@drexel.edu',
56 url='http://www.physics.drexel.edu/~wking/unfolding-disasters/pypiezo/',
57 download_url='http://www.physics.drexel.edu/~wking/code/python/pypiezo-%s.tar.gz' % __version__,
58 license='GNU General Public License (GPL)',
61 long_description=open(os.path.join(_this_dir, 'README'), 'r').read(),
62 classifiers=filter(None, classifiers.split('\n')),
64 provides=['pypiezo (%s)' % __version__],
65 requires=['pycomedi (>= 0.3)'],