Added examples to the installation, and modified the Makefile to remove the temp version file.

This commit is contained in:
Samer Afach 2017-01-13 12:05:58 +01:00
parent 36b080270f
commit eed3b71bc8
22 changed files with 5 additions and 4 deletions

View File

@ -1,5 +1,5 @@
recursive-include spintrum/OpenBLAS_install *
recursive-include src *
recursive-include examples *
recursive-include spintrum/examples *
include CMakeLists.txt
include get_version.py

View File

@ -23,3 +23,4 @@ clean:
rm -rf CMakeCache.txt
rm -rf CMakeFiles
rm -rf cmake_install.cmake
rm -rf TEMP_VERSION.txt

View File

@ -179,7 +179,7 @@ def recursive_glob(rootdir, pattern='*'):
for looproot, _, filenames in os.walk(rootdir)
for filename in filenames
if fnmatch.fnmatch(filename, pattern)]
return lst
return list(lst)
def get_openblas():
@ -260,10 +260,10 @@ setup(name='spintrum',
author_email='samer@afach.de',
license='MPL',
packages=['spintrum'],
package_data={'spintrum': [lib_file] + recursive_glob("examples")},
install_requires=['numpy', 'mpmath'],
python_requires = '>=3.3',
include_package_data=True, # enable including files with MANIFEST.in
package_data={'': [lib_file]},
zip_safe=False,
cmdclass=dict(build=DependenciesBuilder)
)