Ticket #40802: patch-setupext.py.diff
File patch-setupext.py.diff, 2.2 KB (added by jwoillez@…, 11 years ago) |
---|
-
setupext.py
old new 1334 1334 ext.library_dirs.extend([os.path.join(sys.prefix, 'dlls')]) 1335 1335 1336 1336 elif sys.platform == 'darwin': 1337 tcl_lib_dir = tk_lib_dir = os.path.join(get_base_dirs()[0], 'lib') 1338 result = self.parse_tcl_config(tcl_lib_dir, tk_lib_dir) 1339 if result is None: 1340 raise SystemExit("Tcl/Tk not found, aborting") 1341 1342 (tcl_lib_dir, tcl_inc_dir, tcl_lib, 1343 tk_lib_dir, tk_inc_dir, tk_lib) = result 1344 ext.include_dirs.extend([tcl_inc_dir, tk_inc_dir]) 1345 ext.library_dirs.extend([tcl_lib_dir, tk_lib_dir]) 1346 ext.libraries.extend([tcl_lib, tk_lib]) 1347 1348 return 1337 1349 # this config section lifted directly from Imaging - thanks to 1338 1350 # the effbot! 1339 1351 … … 1575 1587 name = "gtk3agg" 1576 1588 1577 1589 def check_requirements(self): 1590 if self.get_config() is False: 1591 raise CheckFailed("skipping due to configuration") 1592 1578 1593 if 'TRAVIS' in os.environ: 1579 1594 raise CheckFailed("Can't build with Travis") 1580 1595 … … 1640 1655 name = "gtk3cairo" 1641 1656 1642 1657 def check_requirements(self): 1658 if self.get_config() is False: 1659 raise CheckFailed("skipping due to configuration") 1660 1643 1661 if 'TRAVIS' in os.environ: 1644 1662 raise CheckFailed("Can't build with Travis") 1645 1663 … … 1668 1686 name = "wxagg" 1669 1687 1670 1688 def check_requirements(self): 1689 if self.get_config() is False: 1690 raise CheckFailed("skipping due to configuration") 1691 1671 1692 try: 1672 1693 import wxversion 1673 1694 except ImportError: … … 1764 1785 return '.'.join(temp) 1765 1786 1766 1787 def check_requirements(self): 1788 if self.get_config() is False: 1789 raise CheckFailed("skipping due to configuration") 1790 1767 1791 try: 1768 1792 from PyQt4 import pyqtconfig 1769 1793 except ImportError: … … 1800 1824 name = "cairo" 1801 1825 1802 1826 def check_requirements(self): 1827 if self.get_config() is False: 1828 raise CheckFailed("skipping due to configuration") 1829 1803 1830 try: 1804 1831 import cairo 1805 1832 except ImportError: