summaryrefslogtreecommitdiffstats
path: root/python/builder.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/builder.py')
-rw-r--r--python/builder.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/python/builder.py b/python/builder.py
index 243888b..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 = [ ]
@@ -74,7 +82,7 @@ for m in ext_modules:
if m.name == 'astra.plugin_c':
m.sources.append('astra/src/PythonPluginAlgorithm.cpp')
-setup (name = 'PyASTRAToolbox',
+setup (name = 'astra-toolbox',
version = '1.7.1',
description = 'Python interface to the ASTRA-Toolbox',
author='D.M. Pelt',
@@ -88,5 +96,6 @@ setup (name = 'PyASTRAToolbox',
cmdclass = cmdclass,
#ext_modules = [Extension("astra","astra/astra.pyx")],
packages=['astra', 'astra.plugins'],
+ package_data=pkgdata,
requires=["numpy"],
)