diff options
author | Willem Jan Palenstijn <wjp@usecode.org> | 2019-07-08 18:44:33 +0200 |
---|---|---|
committer | Willem Jan Palenstijn <wjp@usecode.org> | 2019-07-08 18:44:33 +0200 |
commit | 92b10f955e962f9c8fc25e013304eb6b9b3bf012 (patch) | |
tree | 55ffa29d53b1ca37b632c802ef67cf57257e9f48 | |
parent | 4d673b3cdb6d27d430087758a8081e4a10267595 (diff) | |
download | astra-92b10f955e962f9c8fc25e013304eb6b9b3bf012.tar.gz astra-92b10f955e962f9c8fc25e013304eb6b9b3bf012.tar.bz2 astra-92b10f955e962f9c8fc25e013304eb6b9b3bf012.tar.xz astra-92b10f955e962f9c8fc25e013304eb6b9b3bf012.zip |
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.
-rw-r--r-- | python/builder.py | 6 |
1 files changed, 3 insertions, 3 deletions
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', |