-
Notifications
You must be signed in to change notification settings - Fork 72
/
setup.py
executable file
·87 lines (77 loc) · 2.73 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
#!/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
)