forked from LabForComputationalVision/pyrtools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
42 lines (38 loc) · 1.85 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
#! /usr/bin/env python
from setuptools import setup, Extension
import importlib
import os
# copied from kymatio's setup.py: https://github.com/kymatio/kymatio/blob/master/setup.py
pyrtools_version_spec = importlib.util.spec_from_file_location('pyrtools_version',
'pyrtools/version.py')
pyrtools_version_module = importlib.util.module_from_spec(pyrtools_version_spec)
pyrtools_version_spec.loader.exec_module(pyrtools_version_module)
VERSION = pyrtools_version_module.version
setup(
name='pyrtools',
version=VERSION,
description=('Python tools for multi-scale image processing, including Laplacian pyramids, '
'Wavelets, and Steerable Pyramids'),
license='MIT',
url='https://github.com/LabForComputationalVision/pyrtools',
author='Eero Simoncelli',
author_email='[email protected]',
keywords='multi-scale image-processing',
packages=['pyrtools', 'pyrtools.pyramids', 'pyrtools.tools', 'pyrtools.pyramids.c'],
package_data={'': ['*.h', 'LICENSE']},
install_requires=['numpy>=1.1',
'scipy>=0.18',
'matplotlib>=1.5',
'Pillow>=3.4',
'tqdm>=4.29',
'requests>=2.21'],
ext_modules=[Extension('pyrtools.pyramids.c.wrapConv',
sources=['pyrtools/pyramids/c/convolve.c',
'pyrtools/pyramids/c/edges.c',
'pyrtools/pyramids/c/wrap.c',
'pyrtools/pyramids/c/internal_pointOp.c'],
depends=['pyrtools/pyramids/c/convolve.h',
'pyrtools/pyramids/c/internal_pointOp.h'],
extra_compile_args=['-fPIC', '-shared'])],
tests='TESTS',
)