Added examples to the installation, and modified the Makefile to remove the temp version file.
This commit is contained in:
		@@ -1,5 +1,5 @@
 | 
				
			|||||||
recursive-include spintrum/OpenBLAS_install *
 | 
					recursive-include spintrum/OpenBLAS_install *
 | 
				
			||||||
recursive-include src *
 | 
					recursive-include src *
 | 
				
			||||||
recursive-include examples *
 | 
					recursive-include spintrum/examples *
 | 
				
			||||||
include CMakeLists.txt
 | 
					include CMakeLists.txt
 | 
				
			||||||
 | 
					include get_version.py
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										1
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										1
									
								
								Makefile
									
									
									
									
									
								
							@@ -23,3 +23,4 @@ clean:
 | 
				
			|||||||
	rm -rf CMakeCache.txt
 | 
						rm -rf CMakeCache.txt
 | 
				
			||||||
	rm -rf CMakeFiles
 | 
						rm -rf CMakeFiles
 | 
				
			||||||
	rm -rf cmake_install.cmake
 | 
						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 looproot, _, filenames in os.walk(rootdir)
 | 
				
			||||||
            for filename in filenames
 | 
					            for filename in filenames
 | 
				
			||||||
            if fnmatch.fnmatch(filename, pattern)]
 | 
					            if fnmatch.fnmatch(filename, pattern)]
 | 
				
			||||||
    return lst
 | 
					    return list(lst)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
def get_openblas():
 | 
					def get_openblas():
 | 
				
			||||||
@@ -260,10 +260,10 @@ setup(name='spintrum',
 | 
				
			|||||||
      author_email='samer@afach.de',
 | 
					      author_email='samer@afach.de',
 | 
				
			||||||
      license='MPL',
 | 
					      license='MPL',
 | 
				
			||||||
      packages=['spintrum'],
 | 
					      packages=['spintrum'],
 | 
				
			||||||
 | 
					      package_data={'spintrum': [lib_file] + recursive_glob("examples")},
 | 
				
			||||||
      install_requires=['numpy', 'mpmath'],
 | 
					      install_requires=['numpy', 'mpmath'],
 | 
				
			||||||
      python_requires = '>=3.3',
 | 
					      python_requires = '>=3.3',
 | 
				
			||||||
      include_package_data=True, # enable including files with MANIFEST.in
 | 
					      include_package_data=True, # enable including files with MANIFEST.in
 | 
				
			||||||
      package_data={'': [lib_file]},
 | 
					 | 
				
			||||||
      zip_safe=False,
 | 
					      zip_safe=False,
 | 
				
			||||||
      cmdclass=dict(build=DependenciesBuilder)
 | 
					      cmdclass=dict(build=DependenciesBuilder)
 | 
				
			||||||
      )
 | 
					      )
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user