From 92b10f955e962f9c8fc25e013304eb6b9b3bf012 Mon Sep 17 00:00:00 2001 From: Willem Jan Palenstijn Date: Mon, 8 Jul 2019 18:44:33 +0200 Subject: Replace absolute path by relative path in builder.py A recent setuptools is using the full path as part of the name of the temporary build directory, which made the full temp path too long when called from conda-build in Windows. --- python/builder.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'python/builder.py') diff --git a/python/builder.py b/python/builder.py index 81636a1..ae41eb8 100644 --- a/python/builder.py +++ b/python/builder.py @@ -61,16 +61,16 @@ if os.environ.get('ASTRA_INSTALL_LIBRARY_AS_DATA', ''): cmdclass = {} ext_modules = [] -ext_modules = cythonize(os.path.join(self_path, 'astra', '*.pyx'), +ext_modules = cythonize(os.path.join('.', 'astra', '*.pyx'), language_level=2) cmdclass = {'build_ext': build_ext} for m in ext_modules: if m.name in ('astra.plugin_c', 'astra.algorithm_c'): - m.sources.append(os.path.join(self_path, 'astra', 'src', + m.sources.append(os.path.join('.', 'astra', 'src', 'PythonPluginAlgorithm.cpp')) if m.name in ('astra.plugin_c'): - m.sources.append(os.path.join(self_path, 'astra', 'src', + m.sources.append(os.path.join('.', 'astra', 'src', 'PythonPluginAlgorithmFactory.cpp')) setup(name='astra-toolbox', -- cgit v1.2.3