setup.py 2.1 KB
Newer Older
Luke Campagnola's avatar
Luke Campagnola committed
1
from distutils.core import setup
2
import distutils.dir_util
3 4 5
import os

## generate list of all sub-packages
6 7 8
path = os.path.abspath(os.path.dirname(__file__))
n = len(path.split(os.path.sep))
subdirs = [i[0].split(os.path.sep)[n:] for i in os.walk(os.path.join(path, 'pyqtgraph')) if '__init__.py' in i[2]]
9
all_packages = ['.'.join(p) for p in subdirs] + ['pyqtgraph.examples']
Luke Campagnola's avatar
Luke Campagnola committed
10

11 12 13 14 15 16

## Make sure build directory is clean before installing
buildPath = os.path.join(path, 'build')
if os.path.isdir(buildPath):
    distutils.dir_util.remove_tree(buildPath)

Luke Campagnola's avatar
Luke Campagnola committed
17
setup(name='pyqtgraph',
Luke Campagnola's avatar
Luke Campagnola committed
18
    version='0.9.0',
Luke Campagnola's avatar
Luke Campagnola committed
19
    description='Scientific Graphics and GUI Library for Python',
20 21 22
    long_description="""\
PyQtGraph is a pure-python graphics and GUI library built on PyQt4/PySide and numpy. 

23
It is intended for use in mathematics / scientific / engineering applications. Despite being written entirely in python, the library is very fast due to its heavy leverage of numpy for number crunching, Qt's GraphicsView framework for 2D display, and OpenGL for 3D display.
24
""",
Luke Campagnola's avatar
Luke Campagnola committed
25
    license='MIT',
Luke Campagnola's avatar
Luke Campagnola committed
26
    url='http://www.pyqtgraph.org',
Luke Campagnola's avatar
Luke Campagnola committed
27 28
    author='Luke Campagnola',
    author_email='luke.campagnola@gmail.com',
29
    packages=all_packages,
30 31
    package_dir={'pyqtgraph.examples': 'examples'},  ## install examples along with the rest of the source
    #package_data={'pyqtgraph': ['graphicsItems/PlotItem/*.png']},
32 33
    classifiers = [
        "Programming Language :: Python",
34 35 36
        "Programming Language :: Python :: 2",
        "Programming Language :: Python :: 2.6",
        "Programming Language :: Python :: 2.7",
37 38 39 40 41 42 43 44 45 46
        "Programming Language :: Python :: 3",
        "Development Status :: 4 - Beta",
        "Environment :: Other Environment",
        "Intended Audience :: Science/Research",
        "License :: OSI Approved :: MIT License",
        "Operating System :: OS Independent",
        "Topic :: Software Development :: Libraries :: Python Modules",
        "Topic :: Scientific/Engineering :: Visualization",
        "Topic :: Software Development :: User Interfaces",
        ],
47
    install_requires = [
48 49 50
        'numpy',
        'scipy',
        ],
Luke Campagnola's avatar
Luke Campagnola committed
51 52
)