https://github.com/nigma/pywt
Tip revision: 035e1fa14c2cd70ca270da20b1523e834a7ae635 authored by Filip Wasilewski on 29 July 2015, 18:25:19 UTC
Update readme to indicate https://github.com/PyWavelets as the new project home
Update readme to indicate https://github.com/PyWavelets as the new project home
Tip revision: 035e1fa
setup.py
#!/usr/bin/env python
#-*- coding: utf-8 -*-
import os
import sys
try:
from setuptools import setup
has_setuptools = True
except ImportError:
from distutils.core import setup
has_setuptools = False
from util import commands
if sys.platform == "darwin":
# Don't create resource files on OS X tar.
os.environ["COPY_EXTENDED_ATTRIBUTES_DISABLE"] = "true"
os.environ["COPYFILE_DISABLE"] = "true"
dwt = commands.Extension("pywt._pywt",
sources=["src/_pywt.pyx", "src/common.c", "src/convolution.c",
"src/wavelets.c", "src/wt.c"],
include_dirs=["src"],
define_macros=[("PY_EXTENSION", None)],
)
ext_modules = [dwt]
packages = ["pywt"]
package_dir = {"pywt": "src/pywt"}
cmdclass = {
"build_ext": commands.BuildExtCommand,
"sdist": commands.SdistCommand,
"clean_build": commands.CleanCommand,
}
setup_args = {}
if has_setuptools:
setup_args["zip_safe"] = False
setup_args["test_suite"] = "tests.test_doc.suite"
if not os.path.exists(os.path.join("src", "_pywt.c")):
setup_args["setup_requires"] = ["Cython>=0.16"]
else:
cmdclass["test"] = commands.TestCommand
setup(
name="PyWavelets",
version="0.2.2",
author="Filip Wasilewski",
author_email="en@ig.ma",
url="http://www.pybytes.com/pywavelets/",
download_url="http://pypi.python.org/pypi/PyWavelets/",
license="MIT",
description="PyWavelets, wavelet transform module",
long_description="""\
PyWavelets is a Python wavelet transforms module that includes:
* 1D and 2D Forward and Inverse Discrete Wavelet Transform (DWT and IDWT)
* 1D and 2D Stationary Wavelet Transform (Undecimated Wavelet Transform)
* 1D and 2D Wavelet Packet decomposition and reconstruction
* Computing Approximations of wavelet and scaling functions
* Over seventy built-in wavelet filters and support for custom wavelets
* Single and double precision calculations
* Results compatibility with Matlab Wavelet Toolbox (tm)
""",
keywords=["wavelets", "wavelet transform", "DWT", "SWT", "scientific",
"NumPy"],
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: C",
"Programming Language :: Python",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Topic :: Software Development :: Libraries :: Python Modules"
],
ext_modules=ext_modules,
packages=packages,
package_dir=package_dir,
cmdclass=cmdclass,
**setup_args
)