make package_data work
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
This commit is contained in:
		
					parent
					
						
							
								e2ba9ab1d2
							
						
					
				
			
			
				commit
				
					
						63573a9797
					
				
			
		
					 241 changed files with 6 additions and 2 deletions
				
			
		
							
								
								
									
										6
									
								
								setup.py
									
										
									
									
									
								
							
							
						
						
									
										6
									
								
								setup.py
									
										
									
									
									
								
							|  | @ -11,14 +11,18 @@ def data_finder(data_dir): | |||
|     for name in os.listdir(data_dir): | ||||
|         entry = os.path.join(data_dir, name) | ||||
|         if os.path.isdir(entry): | ||||
|             entries.append(entry) | ||||
|             entries.extend(data_finder(entry)) | ||||
|         else: | ||||
|             entries.append(entry) | ||||
| 
 | ||||
|     return entries | ||||
| 
 | ||||
| cur = os.getcwd() | ||||
| os.chdir("cdist") | ||||
| package_data = data_finder("conf") | ||||
| 
 | ||||
|     # package_dir={'cdist': 'src/mypkg'}, | ||||
| os.chdir(cur) | ||||
| 
 | ||||
| print(package_data) | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue