Added examples to the installation, and modified the Makefile to remove the temp version file.
This commit is contained in:
parent
36b080270f
commit
eed3b71bc8
@ -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
|
||||
|
1
Makefile
1
Makefile
@ -23,3 +23,4 @@ clean:
|
||||
rm -rf CMakeCache.txt
|
||||
rm -rf CMakeFiles
|
||||
rm -rf cmake_install.cmake
|
||||
rm -rf TEMP_VERSION.txt
|
||||
|
4
setup.py
4
setup.py
@ -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)
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user