File: setup.py.cmake2.in

package info (click to toggle)
libvigraimpex 1.11.1%2Bdfsg-8
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 50,356 kB
  • sloc: cpp: 57,785; python: 8,603; ansic: 1,798; makefile: 97; javascript: 65; sh: 50
file content (37 lines) | stat: -rw-r--r-- 1,512 bytes parent folder | download | duplicates (5)
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
import distutils, ctypes.util, shutil, os, sys
from distutils.core import setup

# copy the required DLLs to the directory $vigranumpy_tmp_dir/dlls
# if additional libraries are linked dynamically (e.g. tiff, png)
# they must be added to the list as well
dlls = ['@Boost_PYTHON_LIBRARY_RELEASE@',
        '@FFTW3_LIBRARY@',
        '@HDF5_Z_LIBRARY@',
        '@HDF5_SZ_LIBRARY@',
        '@HDF5_CORE_LIBRARY@',
        '@HDF5_HL_LIBRARY@']

for d in dlls:
    if not d:
        continue
    dll = ctypes.util.find_library(os.path.splitext(os.path.basename(d))[0])
    shutil.copy(dll, '@vigranumpy_tmp_dir@/dlls')
vigraimpex_dll='@VIGRAIMPEX_LOCATION@'.replace('$(OutDir)', 'release').replace('$(Configuration)', 'release')
shutil.copy(vigraimpex_dll, '@vigranumpy_tmp_dir@/dlls')
msvc_runtime = ctypes.util.find_library(ctypes.util.find_msvcrt())
shutil.copy(msvc_runtime, '@vigranumpy_tmp_dir@/dlls')

docdir = '@DOCDIR@'

setup(name = 'vigranumpy',
      description = 'VIGRA Computer Vision Library',
      author = 'Ullrich Koethe',
      author_email = 'ullrich.koethe@iwr.uni-heidelberg.de',
      url = 'http://hci.iwr.uni-heidelberg.de/vigra/',
      license = 'MIT',
      version = '@vigra_version@',
      packages = ['vigra', 'vigra.pyqt'],
      package_dir = {'vigra': 'vigra', 'vigra.pyqt': 'vigra/pyqt'},
      package_data = {'vigra': ['*.pyd', 'dlls/*.dll',
                  'doc/vigra/*.*', 'doc/vigra/documents/*.*',
                  'doc/vigranumpy/*.*', 'doc/vigranumpy/_static/*.*']})