aboutsummaryrefslogtreecommitdiffstats
path: root/src/SConscript
diff options
context:
space:
mode:
authorOlivier Tilloy <olivier@tilloy.net>2007-01-01 19:32:08 +0100
committerOlivier Tilloy <olivier@tilloy.net>2007-01-01 19:32:08 +0100
commit2f5e04af9af49546a70c0bcbbe0df15d1cafac41 (patch)
tree2c764a699ccd605a2750196a3d753dc1bd08f8af /src/SConscript
parenta8c429575b203a03c809277eda31a224b47cdb74 (diff)
downloadpyexiv2-2f5e04af9af49546a70c0bcbbe0df15d1cafac41.tar.gz
Added an 'install' target to the SConscript script, invoke 'scons install' to use.
Diffstat (limited to 'src/SConscript')
-rw-r--r--src/SConscript8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/SConscript b/src/SConscript
index 765501b..f04b9e9 100644
--- a/src/SConscript
+++ b/src/SConscript
@@ -14,4 +14,10 @@ env.Append(CPPPATH=[pythonIncPath])
cppSources = ['libpyexiv2.cpp', 'libpyexiv2_wrapper.cpp']
-env.SharedLibrary('libpyexiv2', cppSources)
+# Build shared library libpyexiv2
+libpyexiv2 = env.SharedLibrary('libpyexiv2', cppSources)
+
+pythonLibPath = os.path.join(sys.prefix, 'lib', 'python' + sys.version[:3])
+# install the Python module, invoked using 'scons install'
+env.Alias(target='install', source=env.Install(pythonLibPath, libpyexiv2))
+env.Alias(target='install', source=env.Install(pythonLibPath, 'pyexiv2.py'))