summaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2016-11-21 17:00:50 +0100
committerWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2016-11-21 17:04:31 +0100
commit7e10c16eee71c608a1dba1dd2fec8471567f6b61 (patch)
tree3034a56036862548a4ea0f946393d1ec3713da20 /python
parenta99c472c5dce7f16822294521ab6f33e01864052 (diff)
downloadastra-7e10c16eee71c608a1dba1dd2fec8471567f6b61.tar.gz
astra-7e10c16eee71c608a1dba1dd2fec8471567f6b61.tar.bz2
astra-7e10c16eee71c608a1dba1dd2fec8471567f6b61.tar.xz
astra-7e10c16eee71c608a1dba1dd2fec8471567f6b61.zip
Overhaul package installation
There are now three ways of installing from configure/make: ./configure --with-install-type=prefix (default) libraries go into @libdir@ matlab tools/mex go into @datadir@/astra/matlab octave tools/mex go into @datadir@/astra/octave python module goes into site-packages ./configure --with-install-type=dir libraries go into @prefix@/lib matlab tools/mex go into @prefix@/matlab octave tools/mex go into @prefix@/octave python module goes into @prefix@/python ./configure --with-install-type=module matlab tools/mex go into @prefix@/matlab octave tools/mex go into @prefix@/octave python module goes into site-packages library is installed along with the matlab/octave/python module(s), with rpath
Diffstat (limited to 'python')
-rw-r--r--python/builder.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/python/builder.py b/python/builder.py
index 7c55054..1105169 100644
--- a/python/builder.py
+++ b/python/builder.py
@@ -64,6 +64,14 @@ if cfgHasToBeUpdated:
cfg.write(cfgToWrite)
cfg.close()
+
+pkgdata = { }
+try:
+ if os.environ['ASTRA_INSTALL_LIBRARY_AS_DATA']:
+ pkgdata['astra'] = [os.environ['ASTRA_INSTALL_LIBRARY_AS_DATA']]
+except KeyError:
+ pass
+
cmdclass = { }
ext_modules = [ ]
@@ -88,5 +96,6 @@ setup (name = 'astra-toolbox',
cmdclass = cmdclass,
#ext_modules = [Extension("astra","astra/astra.pyx")],
packages=['astra', 'astra.plugins'],
+ package_data=pkgdata,
requires=["numpy"],
)