diff options
author | Olivier Tilloy <olivier@tilloy.net> | 2009-10-19 09:51:45 +0200 |
---|---|---|
committer | Olivier Tilloy <olivier@fluendo.com> | 2009-10-19 09:51:45 +0200 |
commit | 182d0a273a41b1f099368605f127b777e07f9a5f (patch) | |
tree | 6ae90bacd31db660d0c237907f9e12d4c41fa0ee /src/SConscript | |
parent | 6300f33df2e838bec12f9038e8063fe895bafe0e (diff) | |
download | pyexiv2-182d0a273a41b1f099368605f127b777e07f9a5f.tar.gz |
Install all the python modules.
Diffstat (limited to 'src/SConscript')
-rw-r--r-- | src/SConscript | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/SConscript b/src/SConscript index 60e13b6..cc40ec3 100644 --- a/src/SConscript +++ b/src/SConscript @@ -3,6 +3,7 @@ import sys import os.path +from glob import glob env = Environment() @@ -18,7 +19,7 @@ env.Append(LIBS=libs) cpp_sources = ['exiv2wrapper.cpp', 'exiv2wrapper_python.cpp'] libpyexiv2 = env.SharedLibrary('exiv2python', cpp_sources) -# Install the shared library and the Python module, invoked using +# Install the shared library and the Python modules, invoked using # 'scons install'. If DESTDIR is specified on the command line when invoking # scons, it will be prepended to each installed target file. See # http://www.gnu.org/prep/standards/html_node/DESTDIR.html for reference. @@ -28,5 +29,6 @@ if (dest_dir is None) or (not os.path.isabs(dest_dir)): install_dir = python_lib_path else: install_dir = os.path.join(dest_dir, python_lib_path[1:]) -env.Install(install_dir, [libpyexiv2, 'pyexiv2.py']) +env.Install(install_dir, [libpyexiv2]) +env.Install(os.path.join(install_dir, 'pyexiv2'), glob('pyexiv2/*.py')) env.Alias('install', install_dir) |