mirror of
				https://github.com/kovidgoyal/calibre.git
				synced 2025-11-02 18:47:01 -05:00 
			
		
		
		
	Port headless plugin to build on python2/python3
The only thing needed is to port the buildsystem to not pass strings starting with a "b" as build flags.
This commit is contained in:
		
							parent
							
								
									2761fd5bd0
								
							
						
					
					
						commit
						3258c464e7
					
				@ -111,8 +111,8 @@ def get_sip_dir():
 | 
				
			|||||||
pyqt['pyqt_sip_dir'] = get_sip_dir()
 | 
					pyqt['pyqt_sip_dir'] = get_sip_dir()
 | 
				
			||||||
pyqt['sip_inc_dir'] = os.environ.get('SIP_INC_DIR', sysconfig.get_path('include'))
 | 
					pyqt['sip_inc_dir'] = os.environ.get('SIP_INC_DIR', sysconfig.get_path('include'))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
glib_flags = subprocess.check_output([PKGCONFIG, '--libs', 'glib-2.0']).strip() if islinux or ishaiku else ''
 | 
					glib_flags = subprocess.check_output([PKGCONFIG, '--libs', 'glib-2.0']).decode().strip() if islinux or ishaiku else ''
 | 
				
			||||||
fontconfig_flags = subprocess.check_output([PKGCONFIG, '--libs', 'fontconfig']).strip() if islinux or ishaiku else ''
 | 
					fontconfig_flags = subprocess.check_output([PKGCONFIG, '--libs', 'fontconfig']).decode().strip() if islinux or ishaiku else ''
 | 
				
			||||||
qt_inc = pyqt['inc']
 | 
					qt_inc = pyqt['inc']
 | 
				
			||||||
qt_lib = pyqt['lib']
 | 
					qt_lib = pyqt['lib']
 | 
				
			||||||
ft_lib_dirs = []
 | 
					ft_lib_dirs = []
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user