mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-11-04 01:47:47 +03:00 
			
		
		
		
	Merge pull request #1883 from wiredfool/pr_1768_alt
Added --disable-osx-tcltk-framework in setup.py
This commit is contained in:
		
						commit
						f0fee4bec4
					
				| 
						 | 
					@ -207,6 +207,10 @@ Build Options
 | 
				
			||||||
  automated build systems that configure the proper paths in the
 | 
					  automated build systems that configure the proper paths in the
 | 
				
			||||||
  environment variables (e.g. Buildroot).
 | 
					  environment variables (e.g. Buildroot).
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					* Build flag: ``--disable-osx-tcltk-framework``. Skips linking against
 | 
				
			||||||
 | 
					  the OSX system TCL/TK frameworks for systems that have alternate
 | 
				
			||||||
 | 
					  versions of the libraries installed. 
 | 
				
			||||||
 | 
					
 | 
				
			||||||
* Build flag: ``--debug``. Adds a debugging flag to the include and
 | 
					* Build flag: ``--debug``. Adds a debugging flag to the include and
 | 
				
			||||||
  library search process to dump all paths searched for and found to
 | 
					  library search process to dump all paths searched for and found to
 | 
				
			||||||
  stdout.
 | 
					  stdout.
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										5
									
								
								setup.py
									
									
									
									
									
								
							
							
						
						
									
										5
									
								
								setup.py
									
									
									
									
									
								
							| 
						 | 
					@ -149,11 +149,14 @@ class pil_build_ext(build_ext):
 | 
				
			||||||
        ('enable-%s' % x, None, 'Enable support for %s' % x) for x in feature
 | 
					        ('enable-%s' % x, None, 'Enable support for %s' % x) for x in feature
 | 
				
			||||||
    ] + [
 | 
					    ] + [
 | 
				
			||||||
        ('disable-platform-guessing', None, 'Disable platform guessing on Linux'),
 | 
					        ('disable-platform-guessing', None, 'Disable platform guessing on Linux'),
 | 
				
			||||||
 | 
					        ('disable-osx-tcltk-framework', None,
 | 
				
			||||||
 | 
					             'Disable linking against system tcl/tk frameworks on OSX'),
 | 
				
			||||||
        ('debug', None, 'Debug logging')
 | 
					        ('debug', None, 'Debug logging')
 | 
				
			||||||
    ]
 | 
					    ]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def initialize_options(self):
 | 
					    def initialize_options(self):
 | 
				
			||||||
        self.disable_platform_guessing = None
 | 
					        self.disable_platform_guessing = None
 | 
				
			||||||
 | 
					        self.disable_osx_tcltk_framework = None
 | 
				
			||||||
        build_ext.initialize_options(self)
 | 
					        build_ext.initialize_options(self)
 | 
				
			||||||
        for x in self.feature:
 | 
					        for x in self.feature:
 | 
				
			||||||
            setattr(self, 'disable_%s' % x, None)
 | 
					            setattr(self, 'disable_%s' % x, None)
 | 
				
			||||||
| 
						 | 
					@ -644,7 +647,7 @@ class pil_build_ext(build_ext):
 | 
				
			||||||
                                  define_macros=defs))
 | 
					                                  define_macros=defs))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if feature.tcl and feature.tk:
 | 
					        if feature.tcl and feature.tk:
 | 
				
			||||||
            if sys.platform == "darwin":
 | 
					            if sys.platform == "darwin" and not self.disable_osx_tcltk_framework:
 | 
				
			||||||
                # locate Tcl/Tk frameworks
 | 
					                # locate Tcl/Tk frameworks
 | 
				
			||||||
                frameworks = []
 | 
					                frameworks = []
 | 
				
			||||||
                framework_roots = [
 | 
					                framework_roots = [
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user