commit 6fdefb0d449a7d5f5391bc1dbd794121ed19aef3 Author: Stefan van der Walt Date: Sat Aug 22 12:47:50 2009 -0700 Initial framework for scikits.image. diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..ae6bd3d0 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +*.pyc +*~ +*# + diff --git a/LICENSE.txt b/LICENSE.txt new file mode 100644 index 00000000..6e7c77c6 --- /dev/null +++ b/LICENSE.txt @@ -0,0 +1,26 @@ +Copyright (C) 2008 Stéfan van der Walt +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + + 1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in + the documentation and/or other materials provided with the + distribution. + +THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR +IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, +STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING +IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. + diff --git a/README.txt b/README.txt new file mode 100644 index 00000000..608bbfd3 --- /dev/null +++ b/README.txt @@ -0,0 +1,28 @@ +Image Processing SciKit +======================= + +Source +------ +http://github.com/stefanv/scikits.gpu + +Installation from source +------------------------ + +This SciKit can be installed globally using + +python setup.py install + +or locally using + +python setup.py install --prefix=${HOME} + +If you prefer, you can use it without installing, by simply adding +this path to your PYTHONPATH variable. + +License +------- +Please read LICENSE.txt in this directory. + +Contact +------- +Stefan van der Walt diff --git a/scikits/__init__.py b/scikits/__init__.py new file mode 100644 index 00000000..de40ea7c --- /dev/null +++ b/scikits/__init__.py @@ -0,0 +1 @@ +__import__('pkg_resources').declare_namespace(__name__) diff --git a/scikits/image/__init__.py b/scikits/image/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/setup.py b/setup.py new file mode 100644 index 00000000..b5cbe5e7 --- /dev/null +++ b/setup.py @@ -0,0 +1,67 @@ +#! /usr/bin/env python + +descr = """Image Processing SciKit + +Provide image processing capabilities to SciPy, including: + +- Image IO without PIL dependencies +- Image warping (wrappers based on ndimage) +- Connected components +- Color-space manipulations +- Linear space-invariant filters +- Hough transform +- Shortest paths +- Grey-level co-occurrence matrices +- Edge detection +- Image collections + +""" + +import os +import sys + +DISTNAME = 'scikits.image' +DESCRIPTION = 'Image processing routines for SciPy' +LONG_DESCRIPTION = descr +MAINTAINER = 'Stefan van der Walt', +MAINTAINER_EMAIL = 'stefan@sun.ac.za', +URL = 'http://github.com/stefanv/scikits.image' +LICENSE = 'Modified BSD' +DOWNLOAD_URL = URL +VERSION = '0.1' + +import setuptools +from numpy.distutils.core import setup + +def configuration(parent_package='', top_path=None, package_name=DISTNAME): + if os.path.exists('MANIFEST'): os.remove('MANIFEST') + + from numpy.distutils.misc_util import Configuration + config = Configuration(package_name, parent_package, top_path, + version = VERSION, + maintainer = MAINTAINER, + maintainer_email = MAINTAINER_EMAIL, + description = DESCRIPTION, + license = LICENSE, + url = URL, + download_url = DOWNLOAD_URL, + long_description = LONG_DESCRIPTION) + + return config + +if __name__ == "__main__": + setup(configuration = configuration, + install_requires = 'numpy', + namespace_packages = ['scikits'], + packages = setuptools.find_packages(), + include_package_data = True, + #test_suite="tester", # for python setup.py test + zip_safe = True, # the package can run out of an .egg file + classifiers = + [ 'Development Status :: 1 - Planning', + 'Environment :: Console', + 'Intended Audience :: Developers', + 'Intended Audience :: Science/Research', + 'License :: OSI Approved :: BSD License', + 'Topic :: Scientific/Engineering']) +