1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822 6823 6824 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872
|
SCons - a software construction tool
Change Log
NOTE: The 4.0.0 Release of SCons dropped Python 2.7 Support
RELEASE 4.0.1 - Thu, 16 Jul 2020 15:04:42 -0700
From Rob Boehne:
- Fix fortran tools to set SHFORTRAN variables to $FORTRAN, similarly SHF77, SHF90, SHF95,
SHF03 and SHF08 will default to the variables $F77, $F90, $F95, $F03 and $F08 respectively.
If you were depending on changing the value of FORTRAN (or $F[0-9][0-9]) having no effect
on the value of SHFORTRAN, this change will break that. The values of FORTRAN, F77, F90,
F95, F03, F08 and SHFORTRAN, SHF77 (etc.) now are not overridden in generate if alredy set
by the user.
- Fix subprocess execution of 'lslpp' on AIX to produce text standard i/o.
- Re-do the fix for suncxx tool (Oracle Studio compiler) now that only Python 3 is supported,
to avoid decoding errors.
From William Deegan:
- Added Environment() variable TEMPFILEDIR which allows setting the directory which temp
files createdby TEMPFILEMUNGE are created in.
RELEASE 4.0.0 - Sat, 04 Jul 2020 12:00:27 +0000
From Dirk Baechle:
- Updated documentation toolchain to work properly under Python3, also
removed libxslt support from the Docbook Tool. (issue #3580)
- Added Docker images for building and testing SCons. (issue #3585)
From James Benton:
- Improve Visual Studio solution/project generation code to add support
for a per-variant cppflags. Intellisense can be affected by cppflags,
this is especially important when it comes to /std:c++* which specifies
what C++ standard version to target. SCons will append /Zc:__cplusplus
to the project's cppflags when a /std:c++* flag is found as this is
required for intellisense to use the C++ standard version from cppflags.
From Rob Boehne
- Specify UTF-8 encoding when opening Java source file as text. By default, encoding is the output
of locale.getpreferredencoding(False), and varies by platform.
From Joseph Brill:
- MSVC updates: When there are multiple product installations (e.g, Community and
Build Tools) of MSVC 2017 or MSVC 2019, an Enterprise, Professional,
or Community installation will be selected before a Build Tools installation when
"14.1" or "14.2" is requested, respectively. (GH Issue #3699).
- MSVC updates: When there are multiple product installations of MSVC 2017 (e.g.,
Community and Express), 2017 Express is no longer returned when "14.1" is
requested. Only 2017 Express will be returned when "14.1Exp" is requested.
(GH Issue #3699).
- MSVC updates: An MSVC 6.0 installation now appears in the installed versions list
when msvc debug output is enabled (GH Issue #3699).
- MSVS test updates: Tests for building a program using generated MSVS project and
solution files using MSVS 2015 and later now work as expected on x86 hosts.
- Test update: Reduce the number of "false negative" test failures for the interactive
configuration test (test/interactive/configure.py).
- MSVS update: Fix the development environment path for MSVS 7.0.
From William Deegan:
- Fix broken clang + MSVC 2019 combination by using MSVC configuration logic to
propagate'VCINSTALLDIR' and 'VCToolsInstallDir' which clang tools use to locate
header files and libraries from MSVC install. (Fixes GH Issue #3480)
- Added C:\msys64\mingw64\bin to default mingw and clang windows PATH's. This
is a reasonable default and also aligns with changes in Appveyor's VS2019 image.
- Drop support for Python 2.7. SCons will be Python 3.5+ going forward.
- Change SCons.Node.ValueWithMemo to consider any name passed when memoizing Value() nodes
- Fix Github Issue #3550 - When using Substfile() with a value like Z:\mongo\build\install\bin
the implementation using re.sub() would end up interpreting the string and finding regex escape
characters where it should have been simply replacing existing text. Switched to use string.replace().
- Fix Github Issue #2904 - Provide useful error message when more than one Configure Contexts are opened.
Only one open is allowed. You must call conf.Finish() to complete the currently open one before creating another
- Add msys2 installed mingw default path to PATH for mingw tool.
- C:\msys64\mingw64\bin
- Purge obsolete internal build and tooling scripts
- Allow user specified location for vswhere.exe specified by VSWHERE.
NOTE: This must be set at the time the 'msvc' 'msvs' and/or 'mslink' tool(s) are initialized to have any effect.
- Resolve Issue #3451 and Issue #3450 - Rewrite SCons setup.py and packaging. Move script logic to entry points so
package can create scripts which use the correct version of Python.
- Resolve Issue #3248 - Removing '-Wl,-Bsymbolic' from SHLIBVERSIONFLAGS
NOTE: If your build depends on the above you must now add to your SHLIBVERSIONFLAGS
- Speedup bin/docs-update-generated by caching parsed docbook schema. (60x speedup)
- Reorganized source tree. Moved src/engine/SCons to SCons to be more in line with current Python source
tree organization practices.
- Renamed as.py to asm.py and left redirecting tool. 'as' is a reserved word and so
changing the name was required as we wanted to import symbols for use in compilation_db
tool.
- Add CompilationDatabase() builder in compilation_db tool. Contributed by MongoDB.
Setting COMPILATIONDB_USE_ABSPATH to True|False controls whether the files are absolute or relative
paths. Address Issue #3693 and #3694 found during development.
- Fixed Github Issue 3628 - Hardcoding pickle protocol to 4 (supports python 3.4+)
and skipping Python 3.8's new pickle protocol 5 whose main advantage is for out-of-band data buffers.
NOTE: If you used Python 3.8 with SCons 3.0.0 or above, you may get a a pickle protocol error. Remove your
.sconsign.dblite. You will end up with a full rebuild.
From Andrii Doroshenko:
- Extended `Environment.Dump()` to select a format to serialize construction variables (pretty, json).
From Jeremy Elson:
- Updated design doc to use the correct syntax for Depends()
From Adam Gross:
- Added support for scanning multiple entries in an action string if
IMPLICIT_COMMAND_DEPENDENCIES is set to 2 or 'all'. This enables more thorough
action scanning where every item in each command line is scanned to determine
if it is a non-source and non-target path and added to the list of implicit dependencies
for the target.
- Added support for taking instances of the Value class as implicit
dependencies.
- Added new module SCons.Scanner.Python to allow scanning .py files.
- Added support for explicitly passing a name when creating Value() nodes. This may be useful
when the value can't be converted to a string or if having a name is otherwise desirable.
- Fixed usage of abspath and path for RootDir objects on Windows. Previously
env.fs.Dir("T:").abspath would return "T:\T:" and now it correctly returns "T:".
From Ivan Kravets, PlatformIO
- New conditional C Scanner (`SCons.Scanner.C.CConditionalScanner()`)
which interprets C/C Preprocessor conditional syntax (#ifdef, #if, #else,
#elif, #define, etc.)
- Improvements for virtual C Pre-Processor:
* Handle UNSIGNED LONG and LONG numeric constants in DEC (keep support for HEX)
* Skip unrecognized directives, such as `#if( defined ...)`
* Ignore `#include DYNAMIC_INCLUDE` directive that depends on a dynamic
macro which is not located in a state TABLE.
* Cleanup CPP expressions before evaluating (strip comments, carriage returns)
From Iosif Kurazs:
- Added a new flag called "linedraw" for the command line argument "--tree"
that instructs scons to use single line drawing characters to draw the dependency tree.
From Daniel Moody:
- Add no_progress (-Q) option as a set-able option. However, setting it in the
SConstruct/SConscript will still cause "scons: Reading SConscript files ..." to be
printed, since the option is not set when the build scripts first get read.
- Added check for SONAME in environment to setup symlinks correctly (Github Issue #3246)
- User callable's called during substition expansion could possibly throw a TypeError
exception, however SCons was using TypeError to detect if the callable had a different
signature than expected, and would silently fail to report user's exceptions. Fixed to
use signature module to detect function signature instead of TypeError. (Github Issue #3654)
- Added storage of SConstructs and SConscripts nodes into global set for checking
if a given node is a SConstruct/SConscript.
Added new node function SCons.Node.is_sconscript(self) (Github Issue #3625)
From Andrew Morrow:
- Fix Issue #3469 - Fixed improper reuse of temporary and compiled files by Configure when changing
the order and/or number of tests. This is done by using the hash of the generated temporary files
content and (For the target files) the hash of the action.
So where previously files would be named:
- config_1.c, config_1.o, config_1
The will now be named (For example)
- conftest_68b375d16e812c43e6d72d6e93401e7c_0.c,
conftest_68b375d16e812c43e6d72d6e93401e7c_0_5713f09fc605f46b2ab2f7950455f187.o
or
conftest_68b375d16e812c43e6d72d6e93401e7c_0.o
conftest_68b375d16e812c43e6d72d6e93401e7c_0_5713f09fc605f46b2ab2f7950455f187 (for executable)
From Mathew Robinson:
- Improve performance of Subst by preventing unnecessary frame
allocations by no longer defining the *Subber classes inside of their
respective function calls.
- Improve performance of Subst in some cases by preventing
unnecessary calls to eval when a token is surrounded in braces
but is not a function call.
- Improve performance of subst by removing unnecessary recursion.
- Cleanup dangling symlinks before running builders (Issue #3516)
From Mats Wichmann:
- Remove deprecated SourceCode
- str.format syntax errors fixed
- a bunch of linter/checker syntax fixups
- Convert remaining uses of insecure/deprecated mktemp method.
- Clean up some duplications in manpage. Clarify portion of manpage on Dir and File nodes.
- Reduce needless list conversions.
- Fixed regex in Python scanner.
- Accommodate VS 2017 Express - it's got a more liberal license then VS
Community, so some people prefer it (from 2019, no more Express)
- vswhere call should also now work even if programs aren't on the C: drive.
- Add an alternate warning message if cl.exe is not found and msvc config
cache is in use (SCONS_CACHE_MSVC_CONFIG was given) - config cache
may be out of date.
- Fixed bug where changing TEXTFILESUFFIX would cause Substfile() to rebuild. (Github Issue #3540)
- Script/Main.py now uses importlib instead of imp module.
- Drop some Python 2-isms.
- MSVC updates: pass on VSCMD_DEBUG and VSCMD_SKIP_SENDTELEMETRY to msvc
tool setup if set in environment. Add Powershell to default env
(used to call telemetry script).
- Microsoft Visual Studio - switch to using uuid module to generate GUIDs rather than hand rolled
method using md5 directly.
NOTE: This change affects the following builders' output. If your build depends on the output of these builders
you will likely see a rebuild.
* Package() (with PACKAGETYPE='msi')
* MSVSSolution()
* MSVSProject()
- Docbook builder provides a fallback if lxml fails to generate
a document with tostring().
- Fix description of ARCOMSTR constr. var. (issue 3636). Previously the text was a copy of ASCOMSTR which
has different function.
- Update xml files in SCons to reflect changed relative paths after
code restructuring (src/engine/SCons -> SCons)
- Preliminary Python 3.9 support - elimination of some warnings.
- Drop the with_metaclass jig which was designed to let class
definitions using a metaclass be written the same for Py2/Py3.
- Bump python_version_unsupported (and deprecated) to indicate 3.5
is lowest supported Python.
- ParseFlags should not modify the user's passed in dict in case it's
a compound data structure (e.g. values are lists) (issue #3665)
- In Py3 classes no longer need to be listed as deriving from object.
- Remove deprecated check for Task subclasses needing a needs_execute
method - this is now enforced via an abstract base class, so the
check and test is no longer needed.
- Close various logfiles (trace, cache, taskmastertrace, configure)
when done using atexit calls.
- Rebase forked copy of shutil.copytree to Python 3.7 stlib version.
- Significant rework of documentation: API docs are now generated
using Sphinx; manpage and user guide now use more "standard"
markup elements (which could facilitate later conversion to a
different doc format, should that choice be made); significant
rewordings in manpage. Manpage Examples moved to an external
repository / website (scons-cookbook.readthedocs.io).
- Clean up test harness and tests' use of subdir, file_fixture and
dir_fixture.
- SubstitutionEnvironment and OverrideEnvironment now have keys()
and values() methods to better emulate a dict (already had items()).
RELEASE 3.1.2 - Mon, 17 Dec 2019 02:06:27 +0000
From Edoardo Bezzeccheri
- Added debug option "action_timestamps" which outputs to stdout the absolute start and end time for each target.
From Rob Boehne
- Fix suncxx tool (Oracle Studio compiler) when using Python 3. Previously would throw an exception.
Resolved by properly handling tool version string output as unicode.
From Tim Gates
- Resolved a typo in engine.SCons.Tool
From Adam Gross:
- Resolved a race condition in multithreaded Windows builds with Python 2
in the case where a child process is spawned while a Python action has a
file open. Original author: Ryan Beasley.
- Added memoization support for calls to Environment.Value() in order to
improve performance of repeated calls.
From Jason Kenny
- Update Command() function to accept target_scanner, source_factory, and target_factory arguments.
This makes Command act more like a one-off builder.
From Ivan Kravets
- Added support for "-imacros" to ParseFlags
From Jacek Kuczera:
- Fix CheckFunc detection code for Visual 2019. Some functions
(e.g. memmove) were incorrectly recognized as not available.
From Jakub Kulik
- Fix stacktrace when using SCons with Python 3.5+ and SunOS/Solaris related tools.
From Philipp Maierhöfer:
- Avoid crash with UnicodeDecodeError on Python 3 when a Latex log file in
non-UTF-8 encoding (e.g. containing umlauts in Latin-1 encoding when
the fontenc package is included with \usepackage[T1]{fontenc}) is read.
From Mathew Robinson:
- Improved threading performance by ensuring NodeInfo is shared
across threads. Results in ~13% improvement for parallel builds
(-j# > 1) with many shared nodes.
- Improve performance of Entry.disambiguate() by making check for
most common case first, preventing unnecessary IO.
- Improved DAG walk performance by reducing unnecessary work when
there are no un-visited children.
From Mats Wichmann
- Replace instances of string find method with "in" checks where
the index from find() was not used.
- CmdStringHolder fix from issue #3428
- Turn previously deprecated debug options into failures:
--debug=tree, --debug=dtree, --debug=stree, --debug=nomemoizer.
- Experimental New Feature: Enable caching MSVC configuration
If SCONS_CACHE_MSVC_CONFIG shell environment variable is set,
SCons will cache the results of past calls to vcvarsall.bat to
a file; integrates with existing memoizing of such vars.
On vs2019 saves 5+ seconds per SCons invocation, which really
helps test suite runs.
- Remove deprecated SourceSignatures, TargetSignatures
- Remove deprecated Builder keywords: overrides and scanner
- Remove deprecated env.Copy
- Remove deprecated BuildDir plus SConscript keyword build_dir
- A number of documentation improvements.
RELEASE 3.1.1 - Mon, 07 Aug 2019 20:09:12 -0500
From William Deegan:
- Remove obsoleted references to DeciderNeedsNode which could cause crash when using --debug=explain
From Jason Kenny
- Add Fix and test for crash in 3.1.0 when using Decider('MD5-timestamp') and --debug=explain
From Ben Reed:
- Added -fmerge-all-constants to flags that get included in both CCFLAGS and LINKFLAGS.
From Mathew Robinson:
- Fix issue #3415 - Update remaining usages of EnvironmentError to SConsEnvironmentError
this patch fixes issues introduced in 3.1.0 where any of the
following would cause SCons to error and exit:
- CacheDir not write-able
- JSON encoding errors for CacheDir config
- JSON decoding errors for CacheDir config
RELEASE 3.1.0 - Mon, 20 Jul 2019 16:59:23 -0700
From Joseph Brill:
- Code to supply correct version-specifier argument to vswhere for
VS version selection.
From William Deegan:
- Enhanced --debug=explain output. Now the separate components of the dependency list are split up
as follows:
scons: rebuilding `file3' because:
the dependency order changed:
->Sources
Old:xxx New:zzz
Old:yyy New:yyy
Old:zzz New:xxx
->Depends
->Implicit
Old:/usr/bin/python New:/usr/bin/python
- Fix Issue #3350 - SCons Exception EnvironmentError is conflicting with Python's EnvironmentError.
- Fix spurious rebuilds on second build for cases where builder has > 1 target and the source file
is generated. This was causing the > 1th target to not have it's implicit list cleared when the source
file was actually built, leaving an implicit list similar to follows for 2nd and higher target
['/usr/bin/python', 'xxx', 'yyy', 'zzz']
This was getting persisted to SConsign and on rebuild it would be corrected to be similar to this
['zzz', 'yyy', 'xxx', '/usr/bin/python']
Which would trigger a rebuild because the order changed.
The fix involved added logic to mark all shared targets as peers and then ensure they're implicit
list is all cleared together.
- Fix Issue #3349 - SCons Exception EnvironmentError is conflicting with Python's EnvironmentError.
Renamed to SConsEnvironmentError
- Fix Issue #3350 - mslink failing when too many objects. This is resolved by adding TEMPFILEARGJOIN variable
which specifies what character to join all the argements output into the tempfile. The default remains a space
when mslink, msvc, or mslib tools are loaded they change the TEMPFILEARGJOIN to be a line separator (\r\n on win32)
- Fix performance degradation for MD5-timestamp decider. NOTE: This changes the Decider() function arguments.
From:
def my_decider(dependency, target, prev_ni):
To:
def my_decider(dependency, target, prev_ni, repo_node):
Where repo_node is the repository (or other) node to use to check if the node is out of date instead of dependency.
From Peter Diener:
- Additional fix to issue #3135 - Also handle 'pure' and 'elemental' type bound procedures
- Fix issue #3135 - Handle Fortran submodules and type bound procedures
From Adam Gross:
- Upgraded and improved Visual Studio solution/project generation code using the MSVSProject builder.
- Added support for Visual Studio 2017 and 2019.
- Added support for the following per-variant parameters to the builder:
- cpppaths: Provides per-variant include paths.
- cppdefines: Provides per-variant preprocessor definitions.
From Michael Hartmann:
- Fix handling of Visual Studio Compilers to properly reject any unknown HOST_PLATFORM or TARGET_PLATFORM
From Bert Huijben:
- Added support for Visual Studio 2019 toolset.
From Mathew Robinson:
- Update cache debug output to include cache hit rate.
- No longer unintentionally hide exceptions in Action.py
- Allow builders and pseudo-builders to inherit from OverrideEnvironments
From Leonard de Ruijter:
- Add logic to derive correct version argument to vswhere
From Lukas Schrangl:
- Enable LaTeX scanner to find more than one include per line
From Mats Wichmann:
- scons-time takes more care closing files and uses safer mkdtemp to avoid
possible races on multi-job runs.
- Use importlib to dynamically load tool and platform modules instead of imp module
- sconsign: default to .sconsign.dblite if no filename is specified.
Be more informative in case of unsupported pickle protocol (py2 only).
- Fix issue #3336 - on Windows, paths were being added to PATH even if
tools were not found in those paths.
- More fixes for newer Java versions (since 9): handle new jdk directory
naming (jdk-X.Y instead of jdkX.Y) on Windows; handle two-digit major
version. Docstrings improved.
- Fixups for pylint: exception types, redefined functions,
globals, etc. Some old code removed to resolve issues (hashlib is
always present on modern Pythons; no longer need the code for
2.5-and-earlier optparse). cmp is not a builtin function in Py3,
drop one (unused) use; replace one. Fix another instance of
renaming to SConsEnvironmentError. Trailing whitespace.
Consistently use not is/in (if not x is y -> if x is not y).
- Add a PY3-only function for setting up the cachedir that should be less
prone to races. Add a hack to the PY2 version (from Issue #3351) to
be less prone to a race in the check for old-style cache.
- Fix coding error in docbook tool only exercised when using python lxml
- Recognize two additional GNU compiler header directory options in
ParseFlags: -iquote and -idirafter.
- Fix more re patterns that contain \ but not specified as raw strings
(affects scanners for D, LaTeX, swig)
RELEASE 3.0.5 - Mon, 26 Mar 2019 15:04:42 -0700
From William Deegan:
- Fix Issue #3283 - Handle using --config=force in combination with Decider('MD5-timestamp').
3.0.2 in fix for issue #2980 added that deciders can throw DeciderNeedsNode exception.
The Configure logic directly calls the decider when using --config=force but wasn't handling
that exception. This would yield minimally configure tests using TryLink() not running and
leaving TypeError Nonetype exception in config.log
- Fix Issue #3303 - Handle --config=force overwriting the Environment passed into Configure()'s
Decider and not clearing it when the configure context is completed.
- Add default paths for yacc tool on windows to include cygwin, mingw, and chocolatey
- Fix issue #2799 - Fix mingw tool to respect SHCCCOMSTR, SHLINKCOMSTR and LDMODULECOMSTR
- Fix Issue #3329 - Add support for MS SDK V10.0A (which is commonly installed with VS2017)
- Fix Issue #3333 - Add support for finding vswhere under 32 bit windows installs.
From Maciej Kumorek:
- Update the MSVC tool to include the nologo flag by default in RCFLAGS
From Daniel Moody:
- Change the default for AppendENVPath to delete_existing=0, so path
order will not be changed, unless explicitly set (Issue #3276)
- Fixed bug which threw error when running SCons on windows system with no MSVC installed.
- Update link tool to convert target to node before accessing node member
- Update mingw tool to remove MSVC like nologo CCFLAG
- Add default paths for lex tool on windows to include cygwin, mingw, and chocolatey
- Add lex construction variable LEXUNISTD for turning off unix headers on windows
- Update lex tool to use win_flex on windows if available
From Mats Wichmann:
- Quiet open file ResourceWarnings on Python >= 3.6 caused by
not using a context manager around Popen.stdout
- Add the textfile tool to the default tool list
- Fix syntax on is/is not clauses: should not use with a literal
- Properly retrieve exit code when catching SystemExit
- scons-time now uses context managers around file opens
- Fix regex patterns that were not specified as raw strings
From Bernhard M. Wiedemann:
- Do not store build host+user name if reproducible builds are wanted
RELEASE 3.0.4 - Mon, 20 Jan 2019 22:49:27 +0000
From Mats Wichmann:
- Improve finding of Microsoft compiler: add a 'products' wildcard
in case 2017 Build Tools only is installed as it is considered a separate
product from the default Visual Studio
- Add TEMPFILESUFFIX to allow a customizable filename extension, as
described in the patch attached to issue #2431.
- scons.py and sconsign.py stopped working if script called as a symlink
to location in scons-local location.
- Fix issue running scons using a symlink to scons.py in an scons-local dir
- Doc updates around Default(), and the various *TARGETS variables.
From Daniel Moody:
- Improved support for VC14.1 and Visual Studio 2017, as well as arm and arm64 targets.
Issues #3268 & Issue #3222
- Initial support for ARM targets with Visual Studio 2017 - Issue #3182 (You must set TARGET_ARCH for this to work)
- Update TempFileMunge class to use PRINT_CMD_LINE_FUNC
From Tobias Herzog
- Enhance cpp scanner regex logic to detect if/elif expressions without whitespaces but
parenthesis like "#if(defined FOO)" or "#elif!(BAR)" correctly.
RELEASE 3.0.3 - Mon, 07 Jan 2019 20:05:22 -0400
NOTE: 3.0.2 release was dropped because there was a packaging bug. Please consider all 3.0.2
content.
From William Deegan:
- Fixes to packaging logic. Ensuring the SCons.Tool.clangCommon module is added
to the release packages.
- Modify scons.bat script to check for scons python script without .py extension if no file
scons.py exists. This enables an all platform wheel to work.
From Mats Wichmann:
- Update doc examples to work with Python 3.5+: map() now returns an iterable instead of a list.
RELEASE 3.0.2 - Mon, 31 Dec 2018 16:00:12 -0700
From Bernard Blackham:
- Fixed handling of side-effects in task master (fixes #3013).
From William Deegan:
- Remove long deprecated SCons.Options code and tests. This removes BoolOption,EnumOption,
ListOption,PackageOption, and PathOption which have been replaced by *Variable() many years ago.
- Re-Enable parallel SCons (-j) when running via Pypy
- Move SCons test framework files to testing/framework and remove all references to QMtest.
QMTest has not been used by SCons for some time now.
- Updated logic for mingw and clang on win32 to search default tool install paths if not
found in normal SCons PATH. If the user specifies PATH or tool specific paths they
will be used and the default paths below will be ignored.
- Default path for clang/clangxx : C:\Program Files\LLVM\bin
- Default path for mingw : C:\MinGW\bin and/or C:\mingw-w64\*\mingw64\bin
- Key program to locate mingw : mingw32-make (as the gcc with mingw prefix has no fixed name)
- Fixed issue causing stack trace when python Action function contains a unicode string when being
run with Python 2.7
- Add alternate path to QT install for Centos in qt tool: /usr/lib64/qt-3.3/bin
- Fix Java tools to search reasonable default paths for Win32, Linux, macOS. Add required paths
for swig and java native interface to JAVAINCLUDES. You should add these to your CPPPATH if you need
to compile with them. This handles spaces in paths in default Java paths on windows.
- Added more java paths to match install for Centos 7 of openjdk
- Fix new logic which populates JAVAINCLUDES to handle the case where javac is not found.
- Fix GH Issue #2580 - # in FRAMEWORKPATH doesn't get properly expanded. The # is left in the
command line.
- Fix issue #2980 with credit to Piotr Bartosik (and William Blevins). This is an issue where using
TimeStamp-MD5 Decider and CacheDir can yield incorrect md5's being written into the .sconsign.
The difference between Piotr Bartosik's patch and the current code is that the more complicated
creation of file to csig map is only done when the count of children for the current node doesn't
match the previous count which is loaded from the sconsign.
- Fix issue # 3106 MSVC if using MSVC_BATCH and target dir had a space would fail due to quirk in
MSVC's handling of escaped targetdirs when batch compiling.
- Fix GH Issue #3141 unicode string in a TryAction() with python 2.7 crashes.
- Fix GH Issue #3212 - Use of Py3 and CacheDir + Configure's TryCompile (or likely and Python Value Nodes)
yielded trying to combine strings and bytes which threw exception.
- Fix GH Issue #3225 SCons.Util.Flatten() doesn't handle MappingView's produced by dictionary as return
values from dict().{items(), keys(), values()}.
- Fix GH Issue #3241 - Properly support versioned shared libraries for MacOS. We've also introduced two
new env variables APPLELINK_CURRENT_VERSION and APPLELINK_COMPATIBILITY_VERSION which will specify
what is passed to the linkers -current_version and -compatibility_version flags. If not specified
they will be derived from SHLIBVERSION as such:
- APPLELINK_CURRENT_VERSION = SHLIBVERSION
- APPLELINK_COMPATIBILITY_VERSION = all but the last digit in SHLIBVERSION with .0 appended.
Note that the values of the above will be validated. Valid format for either APPLELINK variable is
X[.Y[.Z]] where 0 <= X <= 65535, 0 <= Y <= 255, 0 <= Z <= 255.
The new variables have been added to the documents and should show up in user guide and manpage.
- Fix GH Issue #3136 no longer wrap io.{BufferedReader,BufferedWriter,BufferedRWPair,BufferedRandom,TextIOWrapper
with logic to set HANDLE_FLAG_INHERIT flag on the file handle. Python 3.4+ automatically sets this according
to Python docs: https://docs.python.org/3/library/os.html#fd-inheritance
From Ray Donnelly:
- Fix the PATH created by scons.bat (and other .bat files) to provide a normalized
PATH. Some pythons in the 3.6 series are no longer able to handle paths which
have ".." in them and end up crashing. This is done by cd'ing into the directory
we want to add to the path and then using %CD% to give us the normalized directory
See bug filed under Python 3.6: https://bugs.python.org/issue32457.
Note: On Win32 PATH's which have not been normalized may cause undefined behavior
by other executables being run by SCons (or any subprocesses of executables being run by SCons).
Resolving this issue should eliminate that possibility going forward.
From Andrew Featherstone
- Removed unused --warn options from the man page and source code.
From Arda Fu
- Fix cpp scanner regex logic to treat ifndef for py3.5+. Previously it was
not properly differentiating between if, ifdef, and ifndef.
From Philipp Maierhöfer
- Added a __hash__ method to the class SCons.Subst.Literal. Required when substituting Literal
objects when SCons runs with Python 3.
- Added missing FORTRANMODDIRPREFIX to the gfortran tool.
From Matthew Marinets:
- Fixed an issue that caused the Java emitter to incorrectly parse arguments to constructors that
implemented a class.
From Fredrik Medley:
- Fix exception when printing of EnviromentError messages.
Specifically, this fixes error reporting of the race condition when
initializing the cache which error previously was hidden.
From Daniel Moody:
- Updated Jar builder to handle nodes and directories better
- Updated Jar builder to flatten source list which could contain embedded lists
- Removed some magic numbers from jar.py on behalf of Mats Wichmann (mats@linux.com)
- Set the pickling protocal back to highest which was causing issues
with variant dir tests. This will cause issues if reading sconsigns
pickled with the previous lower protocol.
- Updated swig to setup default paths for windows
- Updated gettext tools to setup default paths for windows with Cygwin/MinGW setups
- Add common location for default paths for cygwin and mingw in Platform modules
- Updated YACC tool to work on windows with Cygwin/MinGW setups
- Set the pickling protocal back to highest which was causing issues
with variant dir tests. This will cause issues if reading sconsigns
pickled with the previous lower protocol.
- Updated FS.py to handle removal of splitunc function from python 3.7
- Updated the vc.py to ignore MSVS versions where no compiler could be found
From Gary Oberbrunner:
- Fix bug when Installing multiple subdirs outside the source tree
- fix to_str to handle None without raising exception
- Fix -jN for python 3.7
From Jonathon Reinhart:
- Replace all instances of `int main()` in C code with `int main(void)`.
Specifically, this fixes the test cases use by Configure.CheckCC() which
would fail when using -Wstrict-prototypes.
From Zachary Tessler:
- Fix calculation of signatures for FunctionActions that contain list (or set,...)
comprehensions whose expressions involve constant literals. Those constants had
been ignored in signatures, so changing them did not cause targets to be rebuilt.
From Paweł Tomulik:
- In the testing framework, module TestCommon, fixed must_contain(),
must_not_contain(), and related methods of TestCommon class to work with
substrings located at zero offset.
- Added virtualenv support. A new function Virtualenv() determines whether
SCons runs in a virtualenv. The search PATH may also be extended to
prefer executables from the current virtualenv over the ones provided by
base environment. New option --enable-virtualenv provided to import some
virtualenv-related variables to SCons and extend every env['ENV']['PATH']
automatically. New option --ignore-virtualenv disables this. Two
environment variables, SCONS_ENABLE_VIRTUALENV and
SCONS_IGNORE_VIRTUALENV are supported for the same purpose.
From Richard West:
- Add SConstruct.py, Sconstruct.py, sconstruct.py to the search path for the root SConstruct file.
Allows easier debugging within Visual Studio
- Change setup.py to change the install directory (via pip, or setup.py install) from scons-#.#.#
to scons (Yielding <pythondir>/lib/scons/SCons/ instead of <pythondir>/lib/scons/SCons-#.#.#/).
This changes SCons to better comply with normal Python installation practices.
From Mats Wichmann:
- Recognize new java 9, 10, 11 (as 9.0 and 10.0, 11.0)
- Updated manpage scons.xml to fix a nested list problem
- Updated doc terminiology: use prepend instead of append as appropriate
- XML validity fixes from SConstruct.py change
- Update wiki links to new github location
- Update bug links to new github location
- Make it easier for SConscript() call to fail on missing script.
It was possible to call SCons.Warnings.warningAsException
(not documented as a user API) to make all warnings fail. Now
SConscript can take an optional must_exist flag which if true fails
if the script does not exist. Not failing on missing script is
now considered deprecated, and the first instance will print a
deprecation message. It is now also possible to flip the scons
behavior (which still defaults to warn, not fail) by calling
SCons.Script.set_missing_sconscript_error, which is also not a
documented interface at the moment.
- Convert TestCmd.read to use with statement on open (quiets 17 py3 warnings)
- Quiet py3 warning in UtilTests.py
- Fix tests specifying octal constants for py3
- Fix must_contain tests for py3
- RPM package generation:
- Fix supplying a build architecture
- Disable auto debug package generation on certain rpmbuild versions
- Adjust some tests to only supply build-id file on certain rpmbuild versions
- Tests now use a file fixture for the repeated (trivial) main.c program.
- Document and comment cleanup.
- Added new Environment Value X_RPM_EXTRADEFS to supply custom settings
to the specfile without adding specific logic for each one to scons.
- The test for Python.h needed by swig tests is moved to get_python_platform
so it does not have to be repeated in every test; picks up one failure
which did not make the (previously needed) check. Windows version
of get_python_platform needed some rework in case running in virtualenv.
- If test opens os.devnull, register with atexit so file opens do not leak.
- Fix bugs in Win32 process spawn logic to handle OSError exception correctly.
- Use time.perf_counter instead of time.clock if it exists.
time.clock deprecated since py3.3, due to remove in 3.8. deprecation
warnings from py3.7 were failing a bunch of tests on Windows since they
mess up expected stderr.
- Prefer Py3's inspect.getfullargspec over deprecated inspect.getargspec.
Switched to "new" (standard in Py2.7) usage of receiving a namedtuple -
we were unpacking to a four-tuple, two of the items of which were unused;
getfullargspec returns a named tuple with seven elements so it is a
cleaner drop-in replacement using the namedtuple.
- Updated the test-framework.rst documentation.
- Remove obsoleted internal implementaiton of OrderedDict.
- Test for tar packaging fixups
- Stop using deprecated unittest asserts
- messages in strip-install-dir test now os-neutral
- Add xz compression format to packaging choices.
- Syntax cleanups - trailing blanks, use "is" to compare with None, etc.
Three uses of variables not defined are changed.
- Some script changes in trying to find scons engine
- Update (pep8) configure-cache script, add a --show option.
- Fix for a couple of "what if tool not found" exceptions in framework.
- Add Textfile/Substfile to default environment. (issue #3147)
- sconsign: a couple of python3 fixes; be more tolerant of implicit
entries which have no signatures; minor PEP8 changes.
- Fix a couple of type mistakes (list-> string, filter type -> list)
- Fix a couple of type mistakes in packaging tools: list-> string in msi,
filter type -> list in ipk
From Bernhard M. Wiedemann:
- Update SCons' internal scons build logic to allow overriding build date
with SOURCE_DATE_EPOCH for SCons itself.
- Change the datestamps in SCons' docs and embedded in code use ISO 8601 format and UTC
From Hao Wu
- Typo in customized decider example in user guide
- Replace usage of unittest.TestSuite with unittest.main() (fix #3113)
RELEASE 3.0.1 - Mon, 12 Nov 2017 15:31:33 -0700
From Daniel Moody:
- Jar can take multiple targets, and will make a duplicate jar from the sources for each target
- Added some warnings in case the Jar builder makes an implicit target
- Added Jar method and changed jar build to be more specific. Jar method will take in
directories or classes as source. Added more tests to JAR to ensure the jar was
packaged with the correct compiled class files.
- Added a No result test case to handle bug which seems unrelated to java in the
swig-dependencies.py test, more info here: http://scons.tigris.org/issues/show_bug.cgi?id=2907
- Added a travis script to test on ubuntu trusty now that the project is on github
so that Continuus Integration tests can be run automatically. It tests most case and considers
no result a pass as well. Improving this script can install more dependincies allowing for more
tests to be run.
From Daniel Moody:
- Updated the Jar Builder tool in Tool/__init__.py so that is doesn't force class files as
sources, allowing directories to be passed, which was causing test/Java/JAR.py to fail.
From William Deegan:
- Fix issue where code in utility routine to_String_for_subst() had code whose result was never
properly returned.
(Found by: James Rinkevich https://pairlist4.pair.net/pipermail/scons-users/2017-October/006358.html )
- Fixed Variables.GenerateHelpText() to now use the sort parameter. Due to incorrect 2to3 fixer changes
8 years ago it was being used as a boolean parameter. Now you can specify sort to be a callable, or boolean
value. (True = normal sort). Manpage also updated.
- Fixed Tool loading logic from exploding sys.path with many site_scons/site_tools prepended on py3.
- Added additional output with time to process each SConscript file when using --debug=time.
From Thomas Berg:
- Fixed a regression in scons-3.0.0 where "from __future__ import print_function" was imposed
on the scope where SConstruct is executed, breaking existing builds using PY 2.7.
From William Deegan:
- Fix broken subst logic where a string with "$$(abc)" was being treated as "$(abc) and the
logic for removing the signature escapes was then failing because there was no closing "$)".
This was introduced by a pull request to allow recursive variable evaluations to yield a string
such as "$( $( some stuff $) $)".
From Zachary Tessler:
- Fix incorrect warning for repeated identical builder calls that use overrides
RELEASE 3.0.0 - Mon, 18 Sep 2017 08:32:04 -0700
NOTE: This is a major release. You should expect that some targets may rebuild when upgrading.
Significant changes in some python action signatures. Also switching between PY 2.7 and PY 3.5, 3.6
will cause rebuilds.
From William Blevins:
- Updated D language scanner support to latest: 2.071.1. (PR #1924)
https://dlang.org/spec/module.html accessed 11 August 2016
- Enhancements:
- Added support for selective imports: "import A : B, C;" -> A
- Added support for renamed imports. "import B = A;" -> A
- Supports valid combinations: "import A, B, CCC = C, DDD = D : EEE = FFF;" -> A, B, C, D
- Notes:
- May find new (previously missed) Dlang dependencies.
- May cause rebuild after upgrade due to dependency changes.
- Updated Fortran-related tests to pass under GCC 5/6.
- Fixed SCons.Tool.Packaging.rpm.package source nondeterminism across builds.
From William Deegan:
- Removed deprecated tools CVS, Perforce, BitKeeper, RCS, SCCS, Subversion.
- Removed deprecated module SCons.Sig
- Added prioritized list of xsltproc tools to docbook. The order will now be as
follows: xsltproc, saxon, saxon-xslt, xalan (with first being highest priority, first
tool found is used)
- Fixed MSVSProject example code (http://scons.tigris.org/issues/show_bug.cgi?id=2979)
- Defined MS SDK 10.0 and Changed VS 2015 to use SDK 10.0
- Changes to Action Function and Action Class signiture creation. NOTE: This will cause rebuilds
for many builds when upgrading to SCons 3.0
- Fixed Bug #3027 - "Cross Compiling issue: cannot override ranlib"
- Fixed Bug #3020 - "Download link in user guide wrong. python setup.py install --version-lib broken"
- Fixed Bug #2486 - Added SetOption('silent',True) - Previously this value was not allowed to be set.
- Fixed Bug #3040 - Non-unicode character in CHANGES.txt
- Fixed Bug #2622 - AlwaysBuild + MSVC regression.
- Fixed Bug #3025 - (Credit to Florian : User flow86 on tigris) - Fix typo JAVACLASSSUFIX should have been
JAVACLASSSUFFIX
From Ibrahim Esmat:
- Added the capability to build Windows Store Compatible libraries that can be used
with Universal Windows Platform (UWP) Apps and published to the store
From Daniel Holth:
- Add basic support for PyPy (by deleting __slots__ from Node with a
metaclass on PyPy); wrap most-used open() calls in 'with' statements to
avoid too many open files.
- Add __main__.py for `python -m SCons` in case it is on PYTHONPATH.
- Always use highest available pickle protocol for efficiency.
- Remove unused command line fallback for the zip tool.
From Gaurav Juvekar:
- Fix issue #2832: Expand construction variables in 'chdir' argument of builders. (PR #463)
- Fix issue #2910: Make --tree=all handle Unicode. (PR #427)
- Fix issue #2788: Fix typo in documentation example for sconf. (PR #388)
From Alexey Klimkin:
- Use memoization to optimize PATH evaluation across all dependencies per
node. (PR #345)
- Use set() where it is applicable (PR #344)
From M. Limber:
- Fixed msvs.py for Visual Studio Express editions that would report
"Error : ValueError: invalid literal for float(): 10.0Exp".
From Rick Lupton:
- Update LaTeX scanner to understand \import and related commands
From Steve Robinson:
- Add support for Visual Studio 2017. This support requires vswhere.exe a helper
tool installed with newer installs of 2017. SCons expects it to be located at
"C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe"
It can be downloaded separately at
https://github.com/Microsoft/vswhere
From Tom Tanner:
- Allow nested $( ... $) sections
From Paweł Tomulik:
- Fixed the issue with LDMODULEVERSIONFLAGS reported by Tim Jenness
(https://pairlist4.pair.net/pipermail/scons-users/2016-May/004893.html).
An error was causing "-Wl,Bsymbolic" being added to linker's command-line
even when there was no specified value in LDMODULEVERSION and thus no
need for the flags to be specified.
- Added LoadableModule to the list of global functions (DefaultEnvironment
builders).
From Manish Vachharajani:
- Update debian rules, compat, and control to not use features
deprecated or obsolete in later versions of debhelpers
- Update python version to 2.7 in debian/control
From Richard Viney:
- Fixed PCHPDBFLAGS causing a deprecation warning on MSVC v8 and later when
using PCHs and PDBs together.
From Richard West:
- Added nested / namespace tool support
- Added a small fix to the python3 tool loader when loading a tool as a package
- Added additional documentation to the user manual on using toolpaths with the environment
This includes the use of sys.path to search for tools installed via pip or package managers
- Added support for a PyPackageDir function for use with the toolpath
From Russel Winder:
- Reordered the default D tools from "dmd, gdc, ldc" to "dmd, ldc, gdc".
- Add a ProgramAllAtOnce builder to the dmd, ldc, and gdc tools. (PR #448)
- Remove a file name exception for very old Fedora LDC installation.
- gdc can now handle building shared objects (tested for version 6.3.0).
- Remove establishing the SharedLibrary builder in the dmd, ldc, and gdc
tools, must now include the ar tool to get this builder as is required for
other compiler tools.
- Add clang and clang++ tools based on Paweł Tomulik's work.
RELEASE 2.5.1 - Mon, 03 Nov 2016 13:37:42 -0400
From William Deegan:
- Add scons-configure-cache.py to packaging. It was omitted
From Alexey Klimkin:
- Use memoization to optimize PATH evaluation across all dependencies per
node. (PR #345)
RELEASE 2.5.0 - Mon, 09 Apr 2016 11:27:42 -0700
From Dirk Baechle:
- Removed a lot of compatibility methods and workarounds
for Python versions < 2.7, in order to prepare the work
towards a combined 2.7/3.x version. (PR #284)
Also fixed the default arguments for the print_tree and
render_tree methods. (PR #284, too)
From William Blevins:
- Added support for cross-language dependency scanning;
SCons now respects scanner keys for implicit dependencies.
- Notes for SCons users with heterogeneous systems.
- May find new (previously missed) dependencies.
- May cause rebuild after upgrade due to dependency changes.
- May find new dependency errors (EG. cycles).
- Discovered in some of the SCons QT tests.
- Resolved missing cross-language dependencies for
SWIG bindings (fixes #2264).
- Corrected typo in User Guide for Scanner keyword. (PR #2959)
- Install builder interacts with scanner found in SCANNERS differently.
- Previous: Install builder recursively scanned implicit dependencies
for scanners from SCANNER, but not for built-in (default) scanners.
- Current: Install builder will not scan for implicit dependencies via
either scanner source. This optimizes some Install builder behavior
and brings orthogonality to Install builder scanning behavior.
From William Deegan:
- Add better messaging when two environments have
different actions for the same target (Bug #2024)
- Fix issue only with MSVC and Always build where targets
marked AlwaysBuild wouldn't make it into CHANGED_SOURCES
and thus yield an empty compile command line. (Bug #2622)
- Fix posix platform escaping logic to properly handle paths
with parens in them "()". (Bug #2225)
From Jakub Pola:
- Intel Compiler 2016 (Linux/Mac) update for tool directories.
From Adarsh Sanjeev:
- Fix for issue #2494: Added string support for Chmod function.
From Tom Tanner:
- change cache to use 2 character subdirectories, rather than one character,
so as not to give huge directories for large caches, a situation which
causes issues for NFS.
For existing caches, you will need to run the scons-configure-cache.py
script to update them to the new format. You will get a warning every time
you build until you co this.
- Fix a bunch of unit tests on windows
RELEASE 2.4.1 - Mon, 07 Nov 2015 10:37:21 -0700
From Arfrever Frehtes Taifersar Arahesis:
- Fix for Bug # 2791 - Setup.py fails unnecessarily under Jython.
From Dirk Baechle:
- Fixed license of SVG titlepage files in the context of Debian
packaging, such that they allow for commercial use too (#2985).
From William Blevins:
- InstallVersionedLib now available in the DefaultEnvironment context.
- Improves orthogonality of use cases between different Install functions.
From Carnë Draug:
- Added new configure check, CheckProg, to check for
existence of a program.
From Andrew Featherstone:
- Fix for issue #2840 - Fix for two environments specifying same target with different
actions not throwing hard error. Instead SCons was incorrectly issuing a warning
and continuing.
From Hiroaki Itoh :
- Add support `Microsoft Visual C++ Compiler for Python 2.7'
Compiler can be obtained at: https://www.microsoft.com/en-us/download/details.aspx?id=44266
From Florian Miedniak:
- Fixed tigris issue #3011: Glob() excludes didn't work when used with VariantDir(duplicate=0)
From William Roberts:
- Fix bug 2831 and allow Help() text to be appended to AddOption() help.
From Paweł Tomulik:
- Reimplemented versioning for shared libraries, with the following effects
- Fixed tigris issues #3001, #3006.
- Fixed several other issues not reported to tigris, including:
issues with versioned libraries in subdirectories with tricky names,
issues with versioned libraries and variant directories,
issue with soname not being injected to library when using D linkers,
- Switched to direct symlinks instead of daisy-chained ones -- soname and
development symlinks point directly to the versioned shared library now),
for rationale see:
https://www.debian.org/doc/debian-policy/ch-sharedlibs.html
https://fedoraproject.org/wiki/Packaging:Guidelines#Devel_Packages
https://bitbucket.org/scons/scons/pull-requests/247/new-versioned-libraries-gnulink-cyglink/diff#comment-10063929
- New construction variables to allow override default behavior: SONAME,
SHLIBVERSIONFLAGS, _SHLIBVERSIONFLAGS, SHLIBNOVERSIONSYMLINKS,
LDMODULEVERSION, LDMODULEVERSIONFLAGS, _LDMODULEVERSIONFLAGS,
LDMODULENOVERSIONSYMLINKS.
- Changed logic used to configure the versioning machinery from
platform-centric to linker-oriented.
- The SHLIBVERSION/LDMODULEVERSION variables are no longer validated by
SCons (more freedom to users).
- InstallVersionedLib() doesn't use SHLIBVERSION anymore.
- Enchanced docs for the library versioning stuff.
- New tests for versioned libraries.
- Library versioning is currently implemented for the following linker
tools: 'cyglink', 'gnulink', 'sunlink'.
- Fix to swig tool - pick-up 'swig', 'swig3.0' and 'swig2.0' (in order).
- Fix to swig tool - respect env['SWIG'] provided by user.
RELEASE 2.4.0 - Mon, 21 Sep 2015 08:56:00 -0700
From Dirk Baechle:
- Switched several core classes to use "slots", to
reduce the overall memory consumption in large
projects (fixes #2180, #2178, #2198)
- Memoizer counting uses decorators now, instead of
the old metaclasses approach.
From Andrew Featherstone
- Fixed typo in SWIGPATH description
RELEASE 2.3.6 - Mon, 31 Jul 2015 14:35:03 -0700
From Rob Smith:
- Added support for Visual Studio 2015
RELEASE 2.3.5 - Mon, 17 Jun 2015 21:07:32 -0700
From Stephen Pollard:
- Documentation fixes for libraries.xml and
builders-writing.xml (#2989 and #2990)
From William Deegan:
- Extended docs for InstallVersionedLib/SharedLibrary,
and added SKIP_WIN_PACKAGES argument to build script
bootstrap.py (PR #230, #3002).
From William Blevins:
- Fixed symlink support (PR #227, #2395).
- Updated debug-count test case (PR #229).
From Alexey Klimkin:
- Fixed incomplete LIBS flattening and substitution in
Program scanner(PR #205, #2954).
From Dirk Baechle:
- Added new method rentry_exists_on_disk to Node.FS (PR #193).
From Russel Winder:
- Fixed several D tests under the different OS.
- Add support for f08 file extensions for Fortran 2008 code.
From Anatoly Techtonik:
- Show --config choices if no argument is specified (PR #202).
- Fixed build crash when XML toolchain isn't installed, and
activated compression for ZIP archives.
From Alexandre Feblot:
- Fix for VersionedSharedLibrary under 'sunos' platform.
- Fixed dll link with precompiled headers on MSVC 2012
- Added an 'exclude' parameter to Glob()
From Laurent Marchelli:
- Support for multiple cmdargs (one per variant) in VS project files.
- Various improvements for TempFileMunge class.
- Added an implementation for Visual Studio users files (PR #209).
From Dan Pidcock:
- Added support for the 'PlatformToolset' tag in VS project files (#2978).
From James McCoy:
- Added support for '-isystem' to ParseFlags.
RELEASE 2.3.4 - Mon, 27 Sep 2014 12:50:35 -0400
From Bernhard Walle and Dirk Baechle:
- Fixed the interactive mode, in connection with
Configure contexts (#2971).
From Anatoly Techtonik:
- Fix EnsureSConsVersion warning when running packaged version
From Russel Winder:
- Fix D tools for building shared libraries
RELEASE 2.3.3 - Sun, 24 Aug 2014 21:08:33 -0400
From Roland Stark:
- Fixed false line length calculation in the TempFileMunge class (#2970).
From Gary Oberbrunner:
- Improve SWIG detection
From Russel Winder:
- Fix regression on Windows in D language update
From Neal Becker and Stefan Zimmermann:
- Python 3 port and compatibility
From Anatoly Techtonik:
- Do not fail on EnsureSConsVersion when running from checkout
From Kendrick Boyd and Rob Managan:
- Fixed the newglossary action to work with VariantDir (LaTeX).
From Manuel Francisco Naranjo:
- Added a default for the BUILDERS environment variable,
to prevent not defined exception on a Clone().
From Andrew Featherstone:
- Added description of CheckTypeSize method (#1991).
- Fixed handling of CPPDEFINE var in Append()
for several list-dict combinations (#2900).
From William Blevins:
- Added test for Java derived-source dependency tree generation.
- Added Copy Action symlink soft-copy support (#2395).
- Various contributions to the documentation (UserGuide).
RELEASE 2.3.2
From Dirk Baechle:
- Update XML doc editor configuration
- Fix: Allow varlist to be specified as list of strings for Actions (#2754)
From veon on bitbucket:
- Fixed handling of nested ifs in CPP scanner PreProcessor class.
From Shane Gannon:
- Support for Visual Studio 2013 (12.0)
From Michael Haubenwallner:
- Respect user's CC/CXX values; don't always overwrite in generate()
- Delegate linker Tool.exists() to CC/CXX Tool.exists().
From Rob Managan:
- Updated the TeX builder to support use of the -synctex=1
option and the files it creates.
- Updated the TeX builder to correctly clean auxiliary files when
the biblatex package is used.
From Gary Oberbrunner:
- get default RPM architecture more robustly when building RPMs
From Amir Szekely:
- Fixed NoClean() for multi-target builders (#2353).
From Paweł Tomulik:
- Fix SConf tests that write output
From Russel Winder:
- Revamp of the D language support. Tools for DMD, GDC and LDC provided
and integrated with the C and C++ linking. NOTE: This is only tested
with D v2. Support for D v1 is now deprecated.
From Anatoly Techtonik:
- Several improvements for running scons.py from source:
* engine files form source directory take priority over all other
importable versions
* message about scons.py running from source is removed to fix tests
that were failing because of this extra line in the output
* error message when SCons import fails now lists lookup paths
- Remove support for QMTest harness from runtest.py
- Remove RPM and m4 from default tools on Windows
- BitKeeper, CVS, Perforce, RCS, SCCS are deprecated from default
tools and will be removed in future SCons versions to speed up
SCons initialization (it will still be possible to use these tools
explicitly)
From Sye van der Veen:
- Support for Visual Studio 12.0Exp, and fixes for earlier MSVS
versions.
RELEASE 2.3.1
From Andrew Featherstone:
- Added support for EPUB output format to the DocBook tool.
From Tom Tanner:
- Stop leaking file handles to subprocesses by switching to using subprocess
always.
- Allow multiple options to be specified with --debug=a,b,c
- Add support for a readonly cache (--cache-readonly)
- Always print stats if requested
- Generally try harder to print out a message on build errors
- Adds a switch to warn on missing targets
- Add Pseudo command to mark targets which should not exist after
they are built.
From Bogdan Tenea:
- Check for 8.3 filenames on cygwin as well as win32 to make variant_dir work properly.
From Alexandre Feblot:
- Make sure SharedLibrary depends on all dependent libs (by depending on SHLINKCOM)
From Stefan Sperling:
- Fixed the setup of linker flags for a versioned SharedLibrary
under OpenBSD (#2916).
From Antonio Cavallo:
- Improve error if Visual Studio bat file not found.
From Manuel Francisco Naranjo:
- Allow Subst.Literal string objects to be compared with each other,
so they work better in AddUnique() and Remove().
From David Rothenberger:
- Added cyglink linker that uses Cygwin naming conventions for
shared libraries and automatically generates import libraries.
From Dirk Baechle:
- Update bootstrap.py so it can be used from any dir, to run
SCons from a source (non-installed) dir.
- Count statistics of instances are now collected only when
the --debug=count command-line option is used (#2922).
- Added release_target_info() to File nodes, which helps to
reduce memory consumption in clean builds and update runs
of large projects.
- Fixed the handling of long options in the command-line
parsing (#2929).
- Fixed misspelled variable in intelc.py (#2928).
From Gary Oberbrunner:
- Test harness: fail_test() can now print a message to help debugging.
From Anatoly Techtonik:
- Require rpmbuild when building SCons package.
- Print full stack on certain errors, for debugging.
- Improve documentation for Textfile builder.
From William Deegan:
- VS2012 & VS2010 Resolve initialization issues by adding path to reg.exe
in shell used to run batch files.
- MSVC Support fixed defaulting TARGET_ARCH to HOST_ARCH. It should be
None if not explicitly set.
- MSVC Fixed issue where if more than one Architectures compilers are
detected, it would take the last one found, and not the first.
From Philipp Kraus:
- Added optional ZIPROOT to Zip tool.
From Dirk Baechle:
- Replaced old SGML-based documentation toolchain with a more modern
approach, that also requires less external dependencies (programs and
Python packages). Added a customized Docbook XSD for strict validation of
all input XML files.
From Luca Falavigna:
- Fixed spelling errors in MAN pages (#2897).
From Michael McDougall:
- Fixed description of ignore_case for EnumVariable in the
MAN page (#2774).
RELEASE 2.3.0 - Mon, 02 Mar 2013 13:22:29 -0400
From Anatoly Techtonik:
- Added ability to run scripts/scons.py directly from source checkout
- Hide deprecated --debug={dtree,stree,tree} from --help output
- Error messages from option parser now include hints about valid choices
- Cleaned up some Python 1.5 and pre-2.3 code, so don't expect SCons
to run on anything less than Python 2.4 anymore
- Several fixes for runtest.py:
* exit with an error if no tests were found
* removed --noqmtest option - this behavior is by default
* replaced `-o FILE --xml` combination with `--xml FILE`
* changed `-o, --output FILE` option to capture stdout/stderr output
from runtest.py
- Remove os_spawnv_fix.diff patch required to enable parallel builds
support prior to Python 2.2
From Juan Lang:
- Fix WiX Tool to use .wixobj rather than .wxiobj for compiler output
- Support building with WiX releases after 2.0
From Alexey Klimkin:
- Fix nested LIBPATH expansion by flattening sequences in subst_path.
From eyan on Bitbucket:
- Print target name with command execution time with --debug=time
From Thomas Berg and Evgeny Podjachev:
- Fix subprocess spawning on Windows. Work around a Windows
bug that can crash python occasionally when using -jN. (#2449)
From Dirk Baechle:
- Updated test framework to support dir and file fixtures and
added ability to test external (out-of-tree) tools (#2862).
See doc in QMTest/test-framework.rst.
- Fixed several errors in the test suite (Java paths, MSVS version
detection, Tool import), additionally
* provided MinGW command-line support for the CXX, AS and
Fortran tests,
* refactored the detection of the gcc version and the according
Fortran startup library,
* provided a new module rpmutils.py, wrapping the RPM naming rules
for target files and further hardware-dependent info (compatibility,
compiler flags, ...),
* added new test methods must_exist_one_of() and
must_not_exist_any_of() and
* removed Aegis support from runtest.py. (#2872)
From Gary Oberbrunner:
- Add -jN support to runtest.py to run tests in parallel
- Add MSVC10 and MSVC11 support to get_output low-level bat script runner.
- Fix MSVS solution generation for VS11, and fixed tests.
From Rob Managan:
- Updated the TeX builder to support the \newglossary command
in LaTeX's glossaries package and the files it creates.
- Improve support for new versions of biblatex in the TeX builder
so biber is called automatically if biblatex requires it.
- Add SHLIBVERSION as an option that tells SharedLibrary to build
a versioned shared library and create the required symlinks.
Add builder InstallVersionedLib to create the required symlinks
installing a versioned shared library.
RELEASE 2.2.0 - Mon, 05 Aug 2012 15:37:48 +0000
From dubcanada on Bitbucket:
- Fix 32-bit Visual Express C++ on 64-bit Windows (generate 32-bit code)
From Paweł Tomulik:
- Added gettext toolset
- Fixed FindSourceFiles to find final sources (leaf nodes).
From Greg Ward:
- Allow Node objects in Java path (#2825)
From Joshua Hughes:
- Make Windows not redefine builtin file as un-inheritable (#2857)
- Fix WINDOWS_INSERT_DEF on MinGW (Windows) (#2856)
From smallbub on Bitbucket:
- Fix LINKCOMSTR, SHLINKCOMSTR, and LDMODULECOMSTR on Windows (#2833).
From Mortoray:
- Make -s (silent mode) be silent about entering subdirs (#2976).
- Fix cloning of builders when cloning environment (#2821).
From Gary Oberbrunner:
- Show valid Visual Studio architectures in error message
when user passes invalid arch.
From Alexey Petruchik:
- Support for Microsoft Visual Studio 11 (both using it
and generating MSVS11 solution files).
From Alexey Klimkin:
- Fixed the Taskmaster, curing spurious build failures in
multi-threaded runs (#2720).
From Dirk Baechle:
- Improved documentation of command-line variables (#2809).
- Fixed scons-doc.py to properly convert main XML files (#2812).
From Rob Managan:
- Updated the TeX builder to support LaTeX's multibib package.
- Updated the TeX builder to support LaTeX's biblatex package.
- Added support for using biber instead of bibtex by setting
env['BIBTEX'] = 'biber'
From Arve Knudsen:
- Test for FORTRANPPFILESUFFIXES (#2129).
RELEASE 2.1.0 - Mon, 09 Sep 2011 20:54:57 -0700
From Anton Lazarev:
- Fix Windows resource compiler scanner to accept DOS line endings.
From Matthias:
- Update MSVS documents to remove note indicating that only one
project is currently supported per solution file.
From Grzegorz Bizoń:
- Fix long compile lines in batch mode by using TEMPFILE
- Fix MSVC_BATCH=False (was treating it as true)
From Justin Gullingsrud:
- support -std=c++0x and related CXXFLAGS in pkgconfig (ParseFlags)
From Vincent Beffara:
- Support -dylib_file in pkgconfig (ParseFlags)
From Gary Oberbrunner and Sohail Somani:
- new construction variable WINDOWS_EMBED_MANIFEST to automatically
embed manifests in Windows EXEs and DLLs.
From Gary Oberbrunner:
- Fix Visual Studio project generation when CPPPATH contains Dir nodes
- Ensure Visual Studio project is regenerated when CPPPATH or CPPDEFINES change
- Fix unicode error when using non-ASCII filenames with Copy or Install
- Put RPATH in LINKCOM rather than LINKFLAGS so resetting
LINKFLAGS doesn't kill RPATH
- Fix precompiled headers on Windows when variant dir name has spaces.
- Adding None to an Action no longer fails (just returns original action)
- New --debug=prepare option to show each target as it's being
prepared, whether or not anything needs to be done for it.
- New debug option --debug=duplicate to print a line for each
unlink/relink (or copy) of a variant file from its source file.
- Improve error message for EnumVariables to show legal values.
- Fix Intel compiler to sort versions >9 correctly (esp. on Linux)
- Fix Install() when the source and target are directories and the
target directory exists.
From David Garcia Garzon:
- Fix Delete to be able to delete broken symlinks and dir
symlinks.
From Imran Fanaswala and Robert Lehr:
- Handle .output file generated by bison/yacc properly. Cleaning it
when necessary.
From Antoine Dechaume:
- Handle SWIG file where there is whitespace after the module name
properly. Previously the generated files would include
the whitespace.
From Dmitry R.:
- Handle Environment in case __semi_deepcopy is None
From Benoit Belley:
- Much improved support for Windows UNC paths (\\SERVERNAME).
From Jean-Baptiste Lab:
- Fix problems with appending CPPDEFINES that contain
dictionaries, and related issues with Parse/MergeFlags and
CPPDEFINES.
From Allen Weeks:
- Fix for an issue with implicit-cache with multiple targets
when dependencies are removed on disk.
From Evgeny Podjachev and Alexey Petruchick:
- Support generation of Microsoft Visual Studio 2008 (9.0)
and 2010 (10.0) project and solution files.
From Ken Deeter:
- Fix a problem when FS Entries which are actually Dirs have builders.
From Luca Falavigna:
- Support Fortran 03
From Gary Oberbrunner:
- Print the path to the SCons package in scons --version
From Jean-Fran�ois Colson:
- Improve Microsoft Visual Studio Solution generation, and fix
various errors in the generated solutions especially when using
MSVS_SCC_PROVIDER, and when generating multiple projects. The
construction variable MSVS_SCC_PROJECT_BASE_PATH, which never
worked properly, is removed. Users can use the new variable
MSVS_SCC_CONNECTION_ROOT instead if desired.
From Anatoly Techtonik:
- Use subprocess in bootstrap.py instead of os.execve to avoid
losing output control on Windows (http://bugs.python.org/issue9148)
- Revert patch for adding SCons to App Paths, because standard cmd
shell doesn't search there. This is confusing, because `scons` can
be executed from explorer, but fail to start from console.
- Fix broken installation with easy_install on Windows (issue #2051)
SCons traditionally installed in a way that allowed to run multiple
versions side by side. This custom logic was incompatible with
easy_install way of doing things.
- Use epydoc module for generating API docs in HTML if command line
utility is not found in PATH. Actual for Windows.
From Alexander Goomenyuk:
- Add .sx to assembly source scanner list so .sx files
get their header file dependencies detected.
From Arve Knudsen:
- Set module metadata when loading site_scons/site_init.py
so it is treated as a proper module; __doc__, __file__ and
__name__ now refer to the site_init.py file.
From Russel Winder:
- Users Guide updates explaining that Tools can be packages as
well as python modules.
From Gary Oberbrunner:
- New systemwide and per-user site_scons dirs.
From Dirk Baechle:
- XML fixes in User's Guide.
- Fixed the detection of 'jar' and 'rmic' during
the initialization of the respective Tools (#2730).
- Improved docs for custom Decider functions and
custom Scanner objects (#2711, #2713).
- Corrected SWIG module names for generated *.i files (#2707).
From Joe Zuntz:
- Fixed a case-sensitivity problem with Fortran modules.
From Bauke Conijn:
- Added Users Guide example for auto-generated source code
From Steven Knight:
- Fix explicit dependencies (Depends()) on Nodes that don't have
attached Builders.
- Fix use of the global Alias() function with command actions.
From Matt Hughes:
- Fix the ability to append to default $*FLAGS values (which are
implemented as CLVar instances) in a copied construction environment
without affecting the original construction environment's value.
From Rob Managan:
- Updated the TeX command strings to include a /D on Windows in
case the new directory is on a different drive letter.
- Fixed the LaTeX scanner so dependencies are found in commands that
are broken across lines with a comment or have embedded spaces.
- The TeX builders should now work with tex files that are generated
by another program. Thanks to Hans-Martin von Gaudecker for
isolating the cause of this bug.
- Added support for INDEXSTYLE environment variable so makeindex can
find style files.
- Added support for the bibunits package so we call bibtex on all
the bu*.aux files.
- Add support of finding path information on OSX for TeX applications
MacPorts and Fink paths need to be added by the user
From Russel Winder:
- Add support for DMD version 2 (the phobos2 library).
From William Deegan:
- Add initial support for VS/VC 2010 (express and non-express versions)
- Remove warning for not finding MS VC/VS install.
"scons: warning: No version of Visual Studio compiler found
- C/C++ compilers most likely not set correctly"
- Add support for Linux 3.0
RELEASE 2.0.1 - Mon, 15 Aug 2010 15:46:32 -0700
From Dirk Baechle:
- Fix XML in documentation.
From Joe Zuntz:
- Fixed a case-sensitivity problem with Fortran modules.
From Bauke Conijn:
- Added Users Guide example for auto-generated source code
From Steven Knight:
- Fix explicit dependencies (Depends()) on Nodes that don't have
attached Builders.
From Matt Hughes:
- Fix the ability to append to default $*FLAGS values (which are
implemented as CLVar instances) in a copied construction environment
without affecting the original construction environment's value.
From Rob Managan:
- Updated the TeX command strings to include a /D on Windows in
case the new directory is on a different drive letter.
- Fixed the LaTeX scanner so dependencies are found in commands that
are broken across lines with a comment or have embedded spaces.
RELEASE 2.0.0.final.0 - Mon, 14 Jun 2010 22:01:37 -0700
From Dirk Baechle:
- Fix XML in documentation.
From Steven Knight:
- Provide forward compatibility for the 'profile' module.
- Provide forward compatibility for the 'pickle' module.
- Provide forward compatibility for the 'io' module.
- Provide forward compatibility for the 'queue' module.
- Provide forward compatibility for the 'collections' module.
- Provide forward compatibility for the 'builtins' module.
- Provide forward compatibility for 'sys.intern()'.
- Convert to os.walk() from of os.path.walk().
- Remove compatibility logic no longer needed.
- Add a '-3' option to runtest to print 3.x incompatibility warnings.
- Convert old-style classes into new-style classes.
- Fix "Ignoring corrupt sconsign entry" warnings when building
in a tree with a pre-2.0 .sconsign file.
- Fix propagation from environment of VS*COMNTOOLS to resolve issues
initializing MSVC/MSVS/SDK issues.
- Handle detecting Visual C++ on Python versions with upper-case
platform architectures like 'AMD64'.
From W. Trevor King:
- Revisions to README.
From Greg Noel:
- Apply numerous Python fixers to update code to more modern idioms.
Find where fixers should be applied to code in test strings and
apply the fixers there, too.
- Write a fixer to convert string functions to string methods.
- Modify the 'dict' fixer to be less conservative.
- Modify the 'apply' fixer to handle more cases.
- Create a modified 'types' fixer that converts types to 2.x
equivalents rather than 3.x equivalents.
- Write a 'division' fixer to highlight uses of the old-style
division operator. Correct usage where needed.
- Add forward compatibility for the new 'memoryview' function
(which replaces the 'buffer' function).
- Add forward compatibility for the 'winreg' module.
- Remove no-longer-needed 'platform' module.
- Run tests with the '-3' option to Python 2.6 and clear up
various reported incompatibilities.
- Comb out code paths specialized to Pythons older than 2.4.
- Update deprecation warnings; most now become mandatory.
- Start deprecation cycle for BuildDir() and build_dir.
- Start deprecation cycle for SourceCode() and related factories
- Fixed a problem with is_Dict() not identifying some objects derived
from UserDict.
From Jim Randall:
- Document the AllowSubstExceptions() function in the User's Guide.
From William Deegan:
- Migrate MSVC/MSVS/SDK improvements from 1.3 branch.
RELEASE 1.3.0 - Tue, 23 Mar 2010 21:44:19 -0400
From Steven Knight:
- Update man page and documentation.
From William Deegan (plus minor patch from Gary Oberbrunner):
- Support Visual Studio 8.0 Express
RELEASE 1.2.0.d20100306 - Sat, 06 Mar 2010 16:18:33 -0800
From Luca Falavigna:
- Fix typos in the man page.
From Gottfried Ganssauge:
- Support execution when SCons is installed via easy_install.
From Steven Knight:
- Make the messages for Configure checks of compilers consistent.
- Issue an error message if a BUILDERS entry is not a Builder
object or a callable wrapper.
From Rob Managan:
- Update tex builder to handle the case where a \input{foo}
command tries to work with a directory named foo instead of the
file foo.tex. The builder now ignores a directory and continues
searching to find the correct file. Thanks to Lennart Sauerbeck
for the test case and initial patch
Also allow the \include of files in subdirectories when variantDir
is used with duplicate=0. Previously latex would crash since
the directory in which the .aux file is written was not created.
Thanks to Stefan Hepp for finding this and part of the solution.
From James Teh:
- Patches to fix some issues using MS SDK V7.0
From William Deegan:
- Lots of testing and minor patches to handle mixed MS VC and SDK
installations, as well as having only the SDK installed.
RELEASE 1.2.0.d20100117 - Sun, 17 Jan 2010 14:26:59 -0800
From Jim Randall:
- Fixed temp filename race condition on Windows with long cmd lines.
From David Cournapeau:
- Fixed tryRun when sconf directory is in a variant dir.
- Do not add -fPIC for ifort tool on non-posix platforms (darwin and
windows).
- Fix bug 2294 (spurious CheckCC failures).
- Fix SCons bootstrap process on windows 64 (wrong wininst name)
From William Deegan:
- Final merge from vs_revamp branch to main
- Added definition and usage of HOST_OS, HOST_ARCH, TARGET_OS,
TARGET_ARCH, currently only defined/used by Visual Studio
Compilers. This will be rolled out to other platforms/tools
in the future.
- Add check for python >= 3.0.0 and exit gracefully.
For 1.3 python >= 1.5.2 and < 3.0.0 are supported
- Fix bug 1944 - Handle non-existent .i file in swig emitter, previously
it would crash with an IOError exception. Now it will try to make an
educated guess on the module name based on the filename.
From Lukas Erlinghagen:
- Have AddOption() remove variables from the list of
seen-but-unknown variables (which are reported later).
- An option name and aliases can now be specified as a tuple.
From Hartmut Goebel:
- Textfile builder.
From Jared Grubb:
- use "is/is not" in comparisons with None instead of "==" or "!=".
From Jim Hunziker:
- Avoid adding -gphobos to a command line multiple times
when initializing use of the DMD compiler.
From Jason Kenney:
- Sugguested HOST/TARGET OS/ARCH separation.
From Steven Knight:
- Fix the -n option when used with VariantDir(duplicate=1)
and the variant directory doesn't already exist.
- Fix scanning of Unicode files for both UTF-16 endian flavors.
- Fix a TypeError on #include of file names with Unicode characters.
- Fix an exception if a null command-line argument is passed in.
- Evaluate Requires() prerequisites before a Node's direct children
(sources and dependencies).
From Greg Noel:
- Remove redundant __metaclass__ initializations in Environment.py.
- Correct the documentation of text returned by sconf.Result().
- Document that filenames with '.' as the first character are
ignored by Glob() by default (matching UNIX glob semantics).
- Fix SWIG testing infrastructure to work on Mac OS X.
- Restructure a test that occasionally hung so that the test would
detect when it was stuck and fail instead.
- Substfile builder.
From Gary Oberbrunner:
- When reporting a target that SCons doesn't know how to make,
specify whether it's a File, Dir, etc.
From Ben Webb:
- Fix use of $SWIGOUTDIR when generating Python wrappers.
- Add $SWIGDIRECTORSUFFIX and $SWIGVERSION construction variables.
From Rob Managan:
- Add -recorder flag to Latex commands and updated internals to
use the output to find files TeX creates. This allows the MiKTeX
installations to find the created files
- Notify user of Latex errors that would get buried in the
Latex output
- Remove LATEXSUFFIXES from environments that don't initialize Tex.
- Add support for the glossaries package for glossaries and acronyms
- Fix problem that pdftex, latex, and pdflatex tools by themselves did
not create the actions for bibtex, makeindex,... by creating them
and other environment settings in one routine called by all four
tex tools.
- Fix problem with filenames of sideeffects when the user changes
the name of the output file from the latex default
- Add scanning of files included in Latex by means of \lstinputlisting{}
Patch from Stefan Hepp.
- Change command line for epstopdf to use --outfile= instead of -o
since this works on all platforms.
Patch from Stefan Hepp.
- Change scanner to properly search for included file from the
directory of the main file instead of the file it is included from.
Also update the emitter to add the .aux file associated with
\include{filename} commands. This makes sure the required directories
if any are created for variantdir cases.
Half of the patch from Stefan Hepp.
RELEASE 1.2.0.d20090223 - Mon, 23 Feb 2009 08:41:06 -0800
From Stanislav Baranov:
- Make suffix-matching for scanners case-insensitive on Windows.
From David Cournapeau:
- Change the way SCons finds versions of Visual C/C++ and Visual
Studio to find and use the Microsoft v*vars.bat files.
From Robert P. J. Day:
- User's Guide updates.
From Dan Eaton:
- Fix generation of Visual Studio 8 project files on x64 platforms.
From Allan Erskine:
- Set IncludeSearchPath and PreprocessorDefinitions in generated
Visual Studio 8 project files, to help IntelliSense work.
From Mateusz Gruca:
- Fix deletion of broken symlinks by the --clean option.
From Steven Knight:
- Fix the error message when use of a non-existent drive on Windows
is detected.
- Add sources for files whose targets don't exist in $CHANGED_SOURCES.
- Detect implicit dependencies on commands even when the command is
quoted.
- Fix interaction of $CHANGED_SOURCES with the --config=force option.
- Fix finding #include files when the string contains escaped
backslashes like "C:\\some\\include.h".
- Pass $CCFLAGS to Visual C/C++ precompiled header compilation.
- Remove unnecessary nested $( $) around $_LIBDIRFLAGS on link lines
for the Microsoft linker, the OS/2 ilink linker and the Phar Lap
linkloc linker.
- Spell the Windows environment variables consistently "SystemDrive"
and "SystemRoot" instead of "SYSTEMDRIVE" and "SYSTEMROOT".
RELEASE 1.2.0.d20090113 - Tue, 13 Jan 2009 02:50:30 -0800
From Stanislav Baranov, Ted Johnson and Steven Knight:
- Add support for batch compilation of Visual Studio C/C++ source
files, controlled by a new $MSVC_BATCH construction variable.
From Steven Knight:
- Print the message, "scons: Build interrupted." on error output,
not standard output.
- Add a --warn=future-deprecated option for advance warnings about
deprecated features that still have warnings hidden by default.
- Fix use of $SOURCE and $SOURCES attributes when there are no
sources specified in the Builder call.
- Add support for new $CHANGED_SOURCES, $CHANGED_TARGETS,
$UNCHANGED_SOURCES and $UNCHANGED_TARGETS variables.
- Add general support for batch builds through new batch_key= and
targets= keywords to Action object creation.
From Arve Knudsen:
- Make linker tools differentiate properly between SharedLibrary
and LoadableModule.
- Document TestCommon.shobj_prefix variable.
- Support $SWIGOUTDIR values with spaces.
From Rob Managan:
- Don't automatically try to build .pdf graphics files for
.eps files in \includegraphics{} calls in TeX/LaTeX files
when building with the PDF builder (and thus using pdflatex).
From Gary Oberbrunner:
- Allow AppendENVPath() and PrependENVPath() to interpret '#'
for paths relative to the top-level SConstruct directory.
- Use the Borland ilink -e option to specify the output file name.
- Document that the msvc Tool module uses $PCH, $PCHSTOP and $PDB.
- Allow WINDOWS_INSERT_DEF=0 to disable --output-def when linking
under MinGW.
From Zia Sobhani:
- Fix typos in the User's Guide.
From Greg Spencer:
- Support implicit dependency scanning of files encoded in utf-8
and utf-16.
From Roberto de Vecchi:
- Remove $CCFLAGS from the the default definitions of $CXXFLAGS for
Visual C/C++ and MIPSpro C++ on SGI so, they match other tools
and avoid flag duplication on C++ command lines.
From Ben Webb:
- Handle quoted module names in SWIG source files.
- Emit *_wrap.h when SWIG generates header file for directors
From Matthew Wesley:
- Copy file attributes so we identify, and can link a shared library
from, shared object files in a Repository.
RELEASE 1.2.0 - Sat, 20 Dec 2008 22:47:29 -0800
From Steven Knight:
- Don't fail if can't import a _subprocess module on Windows.
- Add warnings for use of the deprecated Options object.
RELEASE 1.1.0.d20081207 - Sun, 07 Dec 2008 19:17:23 -0800
From Benoit Belley:
- Improve the robustness of GetBuildFailures() by refactoring
SCons exception handling (especially BuildError exceptions).
- Have the --taskmastertrace= option print information about
individual Task methods, not just the Taskmaster control flow.
- Eliminate some spurious dependency cycles by being more aggressive
about pruning pending children from the Taskmaster walk.
- Suppress mistaken reports of a dependency cycle when a child
left on the pending list is a single Node in EXECUTED state.
From David Cournapeau:
- Fix $FORTRANMODDIRPREFIX for the ifort (Intel Fortran) tool.
From Brad Fitzpatrick:
- Don't pre-generate an exception message (which will likely be
ignored anyway) when an EntryProxy re-raises an AttributeError.
From Jared Grubb:
- Clean up coding style and white space in Node/FS.py.
- Fix a typo in the documentation for $_CPPDEFFLAGS.
- Issue 2401: Fix usage of comparisons with None.
From Ludwig H�hne:
- Handle Java inner classes declared within a method.
From Steven Knight:
- Fix label placement by the "scons-time.py func" subcommand
when a profile value was close to (or equal to) 0.0.
- Fix env.Append() and env.Prepend()'s ability to add a string to
list-like variables like $CCFLAGS under Python 2.6.
- Other Python2.6 portability: don't use "as" (a Python 2.6 keyword).
Don't use the deprecated Exception.message attribute.
- Support using the -f option to search for a different top-level
file name when walking up with the -D, -U or -u options.
- Fix use of VariantDir when the -n option is used and doesn't,
therefore, actually create the variant directory.
- Fix a stack trace from the --debug=includes option when passed a
static or shared library as an argument.
- Speed up the internal find_file() function (used for searching
CPPPATH, LIBPATH, etc.).
- Add support for using the Python "in" keyword on construction
environments (for example, if "CPPPATH" in env: ...).
- Fix use of Glob() when a repository or source directory contains
an in-memory Node without a corresponding on-disk file or directory.
- Add a warning about future reservation of $CHANGED_SOURCES,
$CHANGED_TARGETS, $UNCHANGED_SOURCES and $UNCHANGED_TARGETS.
- Enable by default the existing warnings about setting the resource
$SOURCE, $SOURCES, $TARGET and $TARGETS variable.
From Rob Managan:
- Scan for TeX files in the paths specified in the $TEXINPUTS
construction variable and the $TEXINPUTS environment variable.
- Configure the PDF() and PostScript() Builders as single_source so
they know each source file generates a separate target file.
- Add $EPSTOPDF, $EPSTOPDFFLAGS and $EPSTOPDFCOM
- Add .tex as a valid extension for the PDF() builder.
- Add regular expressions to find \input, \include and
\includegraphics.
- Support generating a .pdf file from a .eps source.
- Recursive scan included input TeX files.
- Handle requiring searched-for TeX input graphics files to have
extensions (to avoid trying to build a .eps from itself, e.g.).
From Greg Noel:
- Make the Action() function handle positional parameters consistently.
- Clarify use of Configure.CheckType().
- Make the File.{Dir,Entry,File}() methods create their entries
relative to the calling File's directory, not the SConscript
directory.
- Use the Python os.devnull variable to discard error output when
looking for the $CC or $CXX version.
- Mention LoadableModule() in the SharedLibrary() documentation.
From Gary Oberbrunner:
- Update the User's Guide to clarify use of the site_scons/
directory and the site_init.py module.
- Make env.AppendUnique() and env.PrependUnique remove duplicates
within a passed-in list being added, too.
From Randall Spangler:
- Fix Glob() so an on-disk file or directory beginning with '#'
doesn't throw an exception.
RELEASE 1.1.0 - Thu, 09 Oct 2008 08:33:47 -0700
From Chris AtLee
- Use the specified environment when checking for the GCC compiler
version.
From Ian P. Cardenas:
- Fix Glob() polluting LIBPATH by returning copy of list
From David Cournapeau:
- Add CheckCC, CheckCXX, CheckSHCC and CheckSHCXX tests to
configuration contexts.
- Have the --profile= argument use the much faster cProfile module
(if it's available in the running Python version).
- Reorder MSVC compilation arguments so the /Fo is first.
From Bill Deegan:
- Add scanning Windows resource (.rc) files for implicit dependencies.
From John Gozde:
- When scanning for a #include file, don't use a directory that
has the same name as the file.
From Ralf W. Grosse-Kunstleve
- Suppress error output when checking for the GCC compiler version.
From Jared Grubb:
- Fix VariantDir duplication of #included files in subdirectories.
From Ludwig H�hne:
- Reduce memory usage when a directory is used as a dependency of
another Node (such as an Alias) by returning a concatenation
of the children's signatures + names, not the children's contents,
as the directory contents.
- Raise AttributeError, not KeyError, when a Builder can't be found.
- Invalidate cached Node information (such as the contenst returned
by the get_contents() method) when calling actions with Execute().
- Avoid object reference cycles from frame objects.
- Reduce memory usage from Null Executor objects.
- Compute MD5 checksums of large files without reading the entire
file contents into memory. Add a new --md5-chunksize option to
control the size of each chunk read into memory.
From Steven Knight:
- Fix the ability of the add_src_builder() method to add a new
source builder to any other builder.
- Avoid an infinite loop on non-Windows systems trying to find the
SCons library directory if the Python library directory does not
begin with the string "python".
- Search for the SCons library directory in "scons-local" (with
no version number) after "scons-local-{VERSION}".
From Rob Managan:
- Fix the user's ability to interrupt the TeX build chain.
- Fix the TeX builder's allowing the user to specify the target name,
instead of always using its default output name based on the source.
- Iterate building TeX output files until all warning are gone
and the auxiliary files stop changing, or until we reach the
(configurable) maximum number of retries.
- Add TeX scanner support for: glossaries, nomenclatures, lists of
figures, lists of tables, hyperref and beamer.
- Use the $BIBINPUTS, $BSTINPUTS, $TEXINPUTS and $TEXPICTS construction
variables as search paths for the relevant types of input file.
- Fix building TeX with VariantDir(duplicate=0) in effect.
- Fix the LaTeX scanner to search for graphics on the TEXINPUTS path.
- Have the PDFLaTeX scanner search for .gif files as well.
From Greg Noel:
- Fix typos and format bugs in the man page.
- Add a first draft of a wrapper module for Python's subprocess
module.
- Refactor use of the SCons.compat module so other modules don't
have to import it individually.
- Add .sx as a suffix for assembly language files that use the
C preprocessor.
From Gary Oberbrunner:
- Make Glob() sort the returned list of Files or Nodes
to prevent spurious rebuilds.
- Add a delete_existing keyword argument to the AppendENVPath()
and PrependENVPath() Environment methods.
- Add ability to use "$SOURCE" when specifying a target to a builder
From Damyan Pepper:
- Add a test case to verify that SConsignFile() files can be
created in previously non-existent subdirectories.
From Jim Randall:
- Make the subdirectory in which the SConsignFile() file will
live, if the subdirectory doesn't already exist.
From Ali Tofigh:
- Add a test to verify duplication of files in VariantDir subdirectories.
RELEASE 1.0.1 - Sat, 06 Sep 2008 07:29:34 -0700
From Greg Noel:
- Add a FindFile() section to the User's Guide.
- Fix the FindFile() documentation in the man page.
- Fix formatting errors in the Package() description in the man page.
- Escape parentheses that appear within variable names when spawning
command lines using os.system().
RELEASE 1.0.0 - XXX
From Jared Grubb:
- Clear the Node state when turning a generic Entry into a Dir.
From Ludwig H�hne:
- Fix sporadic output-order failures in test/GetBuildFailures/parallel.py.
- Document the ParseDepends() function in the User's Guide.
From khomenko:
- Create a separate description and long_description for RPM packages.
From Steven Knight:
- Document the GetLaunchDir() function in the User's Guide.
- Have the env.Execute() method print an error message if the
executed command fails.
- Add a script for creating a standard SCons development system on
Ubuntu Hardy. Rewrite subsidiary scripts for install Python and
SCons versions in Python (from shell).
From Greg Noel:
- Handle yacc/bison on newer Mac OS X versions creating file.hpp,
not file.cpp.h.
- In RPCGEN tests, ignore stderr messages from older versions of
rpcgen on some versions of Mac OS X.
- Fix typos in man page descriptions of Tag() and Package(), and in
the scons-time man page.
- Fix documentation of SConf.CheckLibWithHeader and other SConf methods.
- Update documentation of SConscript(variant_dir) usage.
- Fix SWIG tests for (some versions of) Mac OS X.
From Jonas Olsson:
- Print the warning about -j on Windows being potentially unreliable if
the pywin32 extensions are unavailable or lack file handle operations.
From Jim Randall:
- Fix the env.WhereIs() method to expand construction variables.
From Rogier Schouten:
- Enable building of shared libraries with the Bordand ilink32 linker.
RELEASE 1.0.0 - Sat, 09 Aug 2008 12:19:44 -0700
From Luca Falavigna:
- Fix SCons man page indentation under Debian's man page macros.
From Steven Knight:
- Clarify the man page description of the SConscript(src_dir) argument.
- User's Guide updates:
- Document the BUILD_TARGETS, COMMAND_LINE_TARGETS and
DEFAULT_TARGETS variables.
- Document the AddOption(), GetOption() and SetOption() functions.
- Document the Requires() function; convert to the Variables
object, its UnknownOptions() method, and its associated
BoolVariable(), EnumVariable(), ListVariable(), PackageVariable()
and PathVariable() functions.
- Document the Progress() function.
- Reorganize the chapter and sections describing the different
types of environments and how they interact. Document the
SetDefault() method. Document the PrependENVPath() and
AppendENVPath() functions.
- Reorganize the command-line arguments chapter. Document the
ARGLIST variable.
- Collect some miscellaneous sections into a chapter about
configuring build output.
- Man page updates:
- Document suggested use of the Visual C/C++ /FC option to fix
the ability to double-click on file names in compilation error
messages.
- Document the need to use Clean() for any SideEffect() files that
must be explicitly removed when their targets are removed.
- Explicitly document use of Node lists as input to Dependency().
From Greg Noel:
- Document MergeFlags(), ParseConfig(), ParseFlags() and SideEffect()
in the User's Guide.
From Gary Oberbrunner:
- Document use of the GetBuildFailures() function in the User's Guide.
From Adam Simpkins:
- Add man page text clarifying the behavior of AddPreAction() and
AddPostAction() when called with multiple targets.
From Alexey Zezukin:
- Fix incorrectly swapped man page descriptions of the --warn= options
for duplicate-environment and missing-sconscript.
RELEASE 0.98.5 - Sat, 07 Jun 2008 08:20:35 -0700
From Benoit Belley:
- Fix the Intel C++ compiler ABI specification for EMT64 processors.
From David Cournapeau:
- Issue a (suppressable) warning, not an error, when trying to link
C++ and Fortran object files into the same executable.
From Steven Knight:
- Update the scons.bat file so that it returns the real exit status
from SCons, even though it uses setlocal + endlocal.
- Fix the --interactive post-build messages so it doesn't get stuck
mistakenly reporting failures after any individual build fails.
- Fix calling File() as a File object method in some circumstances.
- Fix setup.py installation on Mac OS X so SCons gets installed
under /usr/lcoal by default, not in the Mac OS X Python framework.
RELEASE 0.98.4 - Sat, 17 May 2008 22:14:46 -0700
From Benoit Belley:
- Fix calculation of signatures for Python function actions with
closures in Python versions before 2.5.
From David Cournapeau:
- Fix the initialization of $SHF77FLAGS so it includes $F77FLAGS.
From Jonas Olsson:
- Fix a syntax error in the Intel C compiler support on Windows.
From Steven Knight:
- Change how we represent Python Value Nodes when printing and when
stored in .sconsign files (to avoid blowing out memory by storing
huge strings in .sconsign files after multiple runs using Configure
contexts cause the Value strings to be re-escaped each time).
- Fix a regression in not executing configuration checks after failure
of any configuration check that used the same compiler or other tool.
- Handle multiple destinations in Visual Studio 8 settings for the
analogues to the INCLUDE, LIBRARY and PATH variables.
From Greg Noel:
- Update man page text for VariantDir().
RELEASE 0.98.3 - Tue, 29 Apr 2008 22:40:12 -0700
From Greg Noel:
- Fix use of $CXXFLAGS when building C++ shared object files.
From Steven Knight:
- Fix a regression when a Builder's source_scanner doesn't select
a more specific scanner for the suffix of a specified source file.
- Fix the Options object backwards compatibility so people can still
"import SCons.Options.{Bool,Enum,List,Package,Path}Option" submodules.
- Fix searching for implicit dependencies when an Entry Node shows up
in the search path list.
From Stefano:
- Fix expansion of $FORTRANMODDIR in the default Fortran command line(s)
when it's set to something like ${TARGET.dir}.
RELEASE 0.98.2 - Sun, 20 Apr 2008 23:38:56 -0700
From Steven Knight:
- Fix a bug in Fortran suffix computation that would cause SCons to
run out of memory on Windows systems.
- Fix being able to specify --interactive mode command lines with
\ (backslash) path name separators on Windows.
From Gary Oberbrunner:
- Document Glob() in the User's Guide.
RELEASE 0.98.1 - Fri, 18 Apr 2008 19:11:58 -0700
From Benoit Belley:
- Speed up the SCons.Util.to_string*() functions.
- Optimize various Node intialization and calculations.
- Optimize Executor scanning code.
- Optimize Taskmaster execution, including dependency-cycle checking.
- Fix the --debug=stree option so it prints its tree once, not twice.
From Johan Boul�:
- Fix the ability to use LoadableModule() under MinGW.
From David Cournapeau:
- Various missing Fortran-related construction variables have been added.
- SCons now uses the program specified in the $FORTRAN construction
variable to link Fortran object files.
- Fortran compilers on Linux (Intel, g77 and gfortran) now add the -fPIC
option by default when compilling shared objects.
- New 'sunf77', 'sunf90' and 'sunf95' Tool modules have been added to
support Sun Fortran compilers. On Solaris, the Sun Fortran compilers
are used in preference to other compilers by default.
- Fortran support now uses gfortran in preference to g77.
- Fortran file suffixes are now configurable through the
$F77FILESUFFIXES, $F90FILESUFFIXES, $F95FILESUFFIXES and
$FORTRANFILESUFFIXES variables.
From Steven Knight:
- Make the -d, -e, -w and --no-print-directory options "Ignored for
compatibility." (We're not going to implement them.)
- Fix a serious inefficiency in how SCons checks for whether any source
files are missing when a Builder call creates many targets from many
input source files.
- In Java projects, make the target .class files depend only on the
specific source .java files where the individual classes are defined.
- Don't store duplicate source file entries in the .sconsign file so
we don't endlessly rebuild the target(s) for no reason.
- Add a Variables object as the first step towards deprecating the
Options object name. Similarly, add BoolVariable(), EnumVariable(),
ListVariable(), PackageVariable() and PathVariable() functions
as first steps towards replacing BoolOption(), EnumOption(),
ListOption(), PackageOption() and PathOption().
- Change the options= keyword argument to the Environment() function
to variables=, to avoid confusion with SCons command-line options.
Continue supporting the options= keyword for backwards compatibility.
- When $SWIGFLAGS contains the -python flag, expect the generated .py
file to be in the same (sub)directory as the target.
- When compiling C++ files, allow $CCFLAGS settings to show up on the
command line even when $CXXFLAGS has been redefined.
- Fix --interactive with -u/-U/-D when a VariantDir() is used.
From Anatoly Techtonik:
- Have the scons.bat file add the script execution directory to its
local %PATH% on Windows, so the Python executable can be found.
From Mike Wake:
- Fix passing variable names as a list to the Return() function.
From Matthew Wesley:
- Add support for the GDC 'D' language compiler.
RELEASE 0.98 - Sun, 30 Mar 2008 23:33:05 -0700
From Benoit Belley:
- Fix the --keep-going flag so it builds all possible targets even when
a later top-level target depends on a child that failed its build.
- Fix being able to use $PDB and $WINDWOWS_INSERT_MANIFEST together.
- Don't crash if un-installing the Intel C compiler leaves left-over,
dangling entries in the Windows registry.
- Improve support for non-standard library prefixes and suffixes by
stripping all prefixes/suffixes from file name string as appropriate.
- Reduce the default stack size for -j worker threads to 256 Kbytes.
Provide user control over this value by adding --stack-size and
--warn=stack-size options, and a SetOption('stack_size') function.
- Fix a crash on Linux systems when trying to use the Intel C compiler
and no /opt/intel_cc_* directories are found.
- Improve using Python functions as actions by incorporating into
a FunctionAction's signature:
- literal values referenced by the byte code.
- values of default arguments
- code of nested functions
- values of variables captured by closures
- names of referenced global variables and functions
- Fix the closing message when --clean and --keep-going are both
used and no errors occur.
- Add support for the Intel C compiler on Mac OS X.
- Speed up reading SConscript files by about 20% (for some
configurations) by: 1) optimizing the SCons.Util.is_*() and
SCons.Util.flatten() functions; 2) avoiding unnecessary os.stat()
calls by using a File's .suffix attribute directly instead of
stringifying it.
From Jérôme Berger:
- Have the D language scanner search for .di files as well as .d files.
- Add a find_include_names() method to the Scanner.Classic class to
abstract out how included names can be generated by subclasses.
- Allow the D language scanner to detect multiple modules imported by
a single statement.
From Konstantin Bozhikov:
- Support expansion of construction variables that contain or refer
to lists of other variables or Nodes within expansions like $CPPPATH.
- Change variable substitution (the env.subst() method) so that an
input sequence (list or tuple) is preserved as a list in the output.
From David Cournapeau:
- Add a CheckDeclaration() call to configure contexts.
- Improve the CheckTypeSize() code.
- Add a Define() call to configure contexts, to add arbitrary #define
lines to a generated configure header file.
- Add a "gfortran" Tool module for the GNU F95/F2003 compiler.
- Avoid use of -rpath with the Mac OS X linker.
- Add comment lines to the generated config.h file to describe what
the various #define/#undef lines are doing.
From Steven Knight:
- Support the ability to subclass the new-style "str" class as input
to Builders.
- Improve the performance of our type-checking by using isinstance()
with new-style classes.
- Fix #include (and other $*PATH variables searches) of files with
absolute path names. Don't die if they don't exist (due to being
#ifdef'ed out or the like).
- Fix --interactive mode when Default(None) is used.
- Fix --debug=memoizer to work around a bug in base Python 2.2 metaclass
initialization (by just not allowing Memoization in Python versions
that have the bug).
- Have the "scons-time time" subcommand handle empty log files, and
log files that contain no results specified by the --which option.
- Fix the max Y of vertical bars drawn by "scons-time --fmt=gnuplot".
- On Mac OS X, account for the fact that the header file generated
from a C++ file will be named (e.g.) file.cpp.h, not file.hpp.
- Fix floating-point numbers confusing the Java parser about
generated .class file names in some configurations.
- Document (nearly) all the values you can now fetch with GetOption().
- Fix use of file names containing strings of multiple spaces when
using ActionFactory instances like the Copy() or Move() function.
- Fix a 0.97 regression when using a variable expansion (like
$OBJSUFFIX) in a source file name to a builder with attached source
builders that match suffix (like Program()+Object()).
- Have the Java parser recognize generics (surrounded by angle brackets)
so they don't interfere with identifying anonymous inner classes.
- Avoid an infinite loop when trying to use saved copies of the
env.Install() or env.InstallAs() after replacing the method
attributes.
- Improve the performance of setting construction variables.
- When cloning a construction environment, avoid over-writing an
attribute for an added method if the user explicitly replaced it.
- Add a warning about deprecated support for Python 1.5, 2.0 and 2.1.
- Fix being able to SetOption('warn', ...) in SConscript files.
- Add a warning about env.Copy() being deprecated.
- Add warnings about the --debug={dtree,stree,tree} options
being deprecated.
- Add VariantDir() as the first step towards deprecating BuildDir().
Add the keyword argument "variant_dir" as the replacement for
"build_dir".
- Add warnings about the {Target,Source}Signatures() methods and
functions being deprecated.
From Rob Managan:
- Enhance TeX and LaTeX support to work with BuildDir(duplicate=0).
- Re-run LaTeX when it issues a package warning that it must be re-run.
From Leanid Nazdrynau:
- Have the Copy() action factory preserve file modes and times
when copying individual files.
From Jan Nijtmans:
- If $JARCHDIR isn't set explicitly, use the .java_classdir attribute
that was set when the Java() Builder built the .class files.
From Greg Noel:
- Document the Dir(), File() and Entry() methods of Dir and File Nodes.
- Add the parse_flags option when creating Environments
From Gary Oberbrunner:
- Make File(), Dir() and Entry() return a list of Nodes when passed
a list of names, instead of trying to make a string from the name
list and making a Node from that string.
- Fix the ability to build an Alias in --interactive mode.
- Fix the ability to hash the contents of actions for nested Python
functions on Python versions where the inability to pickle them
returns a TypeError (instead of the documented PicklingError).
From Jonas Olsson:
- Fix use of the Intel C compiler when the top compiler directory,
but not the compiler version, is specified.
- Handle Intel C compiler network license files (port@system).
From Jim Randall:
- Fix how Python Value Nodes are printed in --debug=explain output.
From Adam Simpkins:
- Add a --interactive option that starts a session for building (or
cleaning) targets without re-reading the SConscript files every time.
- Fix use of readline command-line editing in --interactive mode.
- Have the --interactive mode "build" command with no arguments
build the specified Default() targets.
- Fix the Chmod(), Delete(), Mkdir() and Touch() Action factories to
take a list (of Nodes or strings) as arguments.
From Vaclav Smilauer:
- Fix saving and restoring an Options value of 'all' on Python
versions where all() is a builtin function.
From Daniel Svensson:
- Code correction in SCons.Util.is_List().
From Ben Webb:
- Support the SWIG %module statement with following modifiers in
parenthese (e.g., '%module(directors="1")').
RELEASE 0.97.0d20071212 - Wed, 12 Dec 2007 09:29:32 -0600
From Benoit Belley:
- Fix occasional spurious rebuilds and inefficiency when using
--implicit-cache and Builders that produce multiple targets.
- Allow SCons to not have to know about the builders of generated
files when BuildDir(duplicate=0) is used, potentially allowing some
SConscript files to be ignored for smaller builds.
From David Cournapeau:
- Add a CheckTypeSize() call to configure contexts.
From Ken Deeter:
- Make the "contents" of Alias Nodes a concatenation of the children's
content signatures (MD5 checksums), not a concatenation of the
children's contents, to avoid using large amounts of memory during
signature calculation.
From Malte Helmert:
- Fix a lot of typos in the man page and User's Guide.
From Geoffrey Irving:
- Speed up conversion of paths in .sconsign files to File or Dir Nodes.
From Steven Knight:
- Add an Options.UnknownOptions() method that returns any settings
(from the command line, or whatever dictionary was passed in)
that aren't known to the Options object.
- Add a Glob() function.
- When removing targets with the -c option, use the absolute path (to
avoid problems interpreting BuildDir() when the top-level directory
is the source directory).
- Fix problems with Install() and InstallAs() when called through a
clone (of a clone, ...) of a cloned construction environment.
- When executing a file containing Options() settings, add the file's
directory to sys.path (so modules can be imported from there) and
explicity set __name__ to the name of the file so the statement's
in the file can deduce the location if they need to.
- Fix an O(n^2) performance problem when adding sources to a target
through calls to a multi Builder (including Aliases).
- Redefine the $WINDOWSPROGMANIFESTSUFFIX and
$WINDOWSSHLIBMANIFESTSUFFIX variables so they pick up changes to
the underlying $SHLIBSUFFIX and $PROGSUFFIX variables.
- Add a GetBuildFailures() function that can be called from functions
registered with the Python atexit module to print summary information
about any failures encountered while building.
- Return a NodeList object, not a Python list, when a single_source
Builder like Object() is called with more than one file.
- When searching for implicit dependency files in the directories
in a $*PATH list, don't create Dir Nodes for directories that
don't actually exist on-disk.
- Add a Requires() function to allow the specification of order-only
prerequisites, which will be updated before specified "downstream"
targets but which don't actually cause the target to be rebuilt.
- Restore the FS.{Dir,File,Entry}.rel_path() method.
- Make the default behavior of {Source,Target}Signatures('timestamp')
be equivalent to 'timestamp-match', not 'timestamp-newer'.
- Fix use of CacheDir with Decider('timestamp-newer') by updating
the modification time when copying files from the cache.
- Fix random issues with parallel (-j) builds on Windows when Python
holds open file handles (especially for SCons temporary files,
or targets built by Python function actions) across process creation.
From Maxim Kartashev:
- Fix test scripts when run on Solaris.
From Gary Oberbrunner:
- Fix Glob() when a pattern is in an explicitly-named subdirectory.
From Philipp Scholl:
- Fix setting up targets if multiple Package builders are specified
at once.
RELEASE 0.97.0d20070918 - Tue, 18 Sep 2007 10:51:27 -0500
From Steven Knight:
- Fix the wix Tool module to handle null entries in $PATH variables.
- Move the documentation of Install() and InstallAs() from the list
of functions to the list of Builders (now that they're implemented
as such).
- Allow env.CacheDir() to be set per construction environment. The
global CacheDir() function now sets an overridable global default.
- Add an env.Decider() method and a Node.Decider() method that allow
flexible specification of an arbitrary function to decide if a given
dependency has changed since the last time a target was built.
- Don't execute Configure actions (while reading SConscript files)
when cleaning (-c) or getting help (-h or -H).
- Add to each target an implicit dependency on the external command(s)
used to build the target, as found by searching env['ENV']['PATH']
for the first argument on each executed command line.
- Add support for a $IMPLICIT_COMMAND_DEPENDENCIES construction
variabe that can be used to disable the automatic implicit
dependency on executed commands.
- Add an "ensure_suffix" keyword to Builder() definitions that, when
true, will add the configured suffix to the targets even if it looks
like they already have a different suffix.
- Add a Progress() function that allows for calling a function or string
(or list of strings) to display progress while walking the DAG.
- Allow ParseConfig(), MergeFlags() and ParseFlags() to handle output
from a *config command with quoted path names that contain spaces.
- Make the Return() function stop processing the SConscript file and
return immediately. Add a "stop=" keyword argument that can be set
to False to preserve the old behavior.
- Fix use of exitstatfunc on an Action.
- Introduce all man page function examples with "Example:" or "Examples:".
- When a file gets added to a directory, make sure the directory gets
re-scanned for the new implicit dependency.
- Fix handling a file that's specified multiple times in a target
list so that it doesn't cause dependent Nodes to "disappear" from
the dependency graph walk.
From Carsten Koch:
- Avoid race conditions with same-named files and directory creation
when pushing copies of files to CacheDir().
From Tzvetan Mikov:
- Handle $ in Java class names.
From Gary Oberbrunner:
- Add support for the Intel C compiler on Windows64.
- On SGI IRIX, have $SHCXX use $CXX by default (like other platforms).
From Sohail Somani:
- When Cloning a construction environment, set any variables before
applying tools (so the tool module can access the configured settings)
and re-set them after (so they end up matching what the user set).
From Matthias Troffaes:
- Make sure extra auxiliary files generated by some LaTeX packages
and not ending in .aux also get deleted by scons -c.
From Greg Ward:
- Add a $JAVABOOTCLASSPATH variable for directories to be passed to the
javac -bootclasspath option.
From Christoph Wiedemann:
- Add implicit dependencies on the commands used to build a target.
RELEASE 0.97.0d20070809 - Fri, 10 Aug 2007 10:51:27 -0500
From Lars Albertsson:
- Don't error if a #include line happens to match a directory
somewhere on a path (like $CPPPATH, $FORTRANPATH, etc.).
From Mark Bertoglio:
- Fix listing multiple projects in Visual Studio 7.[01] solution files,
including generating individual project GUIDs instead of re-using
the solution GUID.
From Jean Brouwers:
- Add /opt/SUNWspro/bin to the default execution PATH on Solaris.
From Allan Erskine:
- Only expect the Microsoft IDL compiler to emit *_p.c and *_data.c
files if the /proxy and /dlldata switches are used (respectively).
From Steven Knight:
- Have --debug=explain report if a target is being rebuilt because
AlwaysBuild() is specified (instead of "unknown reasons").
- Support {Get,Set}Option('help') to make it easier for SConscript
files to tell if a help option (-h, --help, etc.) has been specified.
- Support {Get,Set}Option('random') so random-dependency interaction
with CacheDir() is controllable from SConscript files.
- Add a new AddOption() function to support user-defined command-
line flags (like --prefix=, --force, etc.).
- Replace modified Optik version with new optparse compatibility module
for command line processing in Scripts/SConsOptions.py
- Push and retrieve built symlinks to/from a CacheDir() as actual
symlinks, not by copying the file contents.
- Fix how the Action module handles stringifying the shared library
generator in the Tool/mingw.py module.
- When generating a config.h file, print "#define HAVE_{FEATURE} 1"
instad of just "#define HAVE_{FEATURE}", for more compatibility
with Autoconf-style projects.
- Fix expansion of $TARGET, $TARGETS, $SOURCE and $SOURCES keywords in
Visual C/C++ PDB file names.
- Fix locating Visual C/C++ PDB files in build directories.
- Support an env.AddMethod() method and an AddMethod() global function
for adding a new method, respectively, to a construction environment
or an arbitrary object (such as a class).
- Fix the --debug=time option when the -j option is specified and all
files are up to date.
- Add a $SWIGOUTDIR variable to allow setting the swig -outdir option,
and use it to identify files created by the swig -java option.
- Add a $SWIGPATH variable that specifies the path to be searched
for included SWIG files, Also add related $SWIGINCPREFIX and
$SWIGINCSUFFIX variables that specify the prefix and suffix to
be be added to each $SWIGPATH directory when expanded on the SWIG
command line.
- More efficient copying of construction environments (mostly borrowed
from copy.deepcopy() in the standard Python library).
- When printing --tree=prune output, don't print [brackets] around
source files, only do so for built targets with children.
- Fix interpretation of Builder source arguments when the Builder has
a src_suffix *and* a source_builder and the argument has no suffix.
- Fix use of expansions like ${TARGET.dir} or ${SOURCE.dir} in the
following construction variables: $FORTRANMODDIR, $JARCHDIR,
$JARFLAGS, $LEXFLAGS, $SWIGFLAGS, $SWIGOUTDIR and $YACCFLAGS.
- Fix dependencies on Java files generated by SWIG so they can be
detected and built in one pass.
- Fix SWIG when used with a BuildDir().
From Leanid Nazdrynau:
- When applying Tool modules after a construction environment has
already been created, don't overwrite existing $CFILESUFFIX and
$CXXFILESUFFIX value.
- Support passing the Java() builder a list of explicit .java files
(not only a list of directories to be scanned for .java files).
- Support passing .java files to the Jar() and JavaH() builders, which
then use the builder underlying the Java() builder to turn them into
.class files. (That is, the Jar()-Java() chain of builders become
multi-step, like the Program()-Object()-CFile() builders.)
- Support passing SWIG .i files to the Java builders (Java(),
Jar(), JavaH()), to cause intermediate .java files to be created
automatically.
- Add $JAVACLASSPATH and $JAVASOURCEPATH variables, that get added to
the javac "-classpath" and "-sourcepath" options. (Note that SCons
does *not* currently search these paths for implicit dependencies.)
- Commonize initialization of Java-related builders.
From Jan Nijtmans:
- Find Java anonymous classes when the next token after the name is
an open parenthesis.
From Gary Oberbrunner:
- Fix a code example in the man page.
From Tilo Prutz:
- Add support for the file names that Java 1.5 (and 1.6) generates for
nested anonymous inner classes, which are different from Java 1.4.
From Adam Simpkins:
- Allow worker threads to terminate gracefully when all jobs are
finished.
From Sohail Somani:
- Add LaTeX scanner support for finding dependencies specified with
the \usepackage{} directive.
RELEASE 0.97 - Thu, 17 May 2007 08:59:41 -0500
From Steven Knight:
- Fix a bug that would make parallel builds stop in their tracks if
Nodes that depended on lists that contained some Nodes built together
caused the reference count to drop below 0 if the Nodes were visited
and commands finished in the wrong order.
- Make sure the DirEntryScanner doesn't choke if it's handed something
that's not a directory (Node.FS.Dir) Node.
RELEASE 0.96.96 - Thu, 12 Apr 2007 12:36:25 -0500
NOTE: This is (Yet) a(nother) pre-release of 0.97 for testing purposes.
From Joe Bloggs:
- Man page fix: remove cut-and-paste sentence in NoCache() description.
From Dmitry Grigorenko and Gary Oberbrunner:
- Use the Intel C++ compiler, not $CC, to link C++ source.
From Helmut Grohne:
- Fix the man page example of propagating a user's external environment.
From Steven Knight:
- Back out (most of) the Windows registry installer patch, which
seems to not work on some versions of Windows.
- Don't treat Java ".class" attributes as defining an inner class.
- Fix detecting an erroneous Java anonymous class when the first
non-skipped token after a "new" keyword is a closing brace.
- Fix a regression when a CPPDEFINES list contains a tuple, the second
item of which (the option value) is a construction variable expansion
(e.g. $VALUE) and the value of the variable isn't a string.
- Improve the error message if an IOError (like trying to read a
directory as a file) occurs while deciding if a node is up-to-date.
- Fix "maximum recursion" / "unhashable type" errors in $CPPPATH
PathList expansion if a subsidiary expansion yields a stringable,
non-Node object.
- Generate API documentation from the docstrings (using epydoc).
- Fix use of --debug=presub with Actions for out-of-the-box Builders.
- Fix handling nested lists within $CPPPATH, $LIBPATH, etc.
- Fix a "builders_used" AttributeError that real-world Qt initialization
triggered in the refactored suffix handling for Builders.
- Make the reported --debug=time timings meaningful when used with -j.
Better documentation of what the times mean.
- User Guide updates: --random, AlwaysBuild(), --tree=,
--debug=findlibs, --debug=presub, --debug=stacktrace,
--taskmastertrace.
- Document (in both man page and User's Guide) that --implicit-cache
ignores changes in $CPPPATH, $LIBPATH, etc.
From Jean-Baptiste Lab:
- Remove hard-coded dependency on Python 2.2 from Debian packaging files.
From Jeff Mahovsky:
- Handle spaces in the build target name in Visual Studio project files.
From Rob Managan:
- Re-run LaTeX after BibTeX has been re-run in response to a changed
.bib file.
From Joel B. Mohler:
- Make additional TeX auxiliary files (.toc, .idx and .bbl files)
Precious so their removal doesn't affect whether the necessary
sections are included in output PDF or PostScript files.
From Gary Oberbrunner:
- Fix the ability to import modules in the site_scons directory from
a subdirectory.
From Adam Simpkins:
- Make sure parallel (-j) builds all targets even if they show up
multiple times in the child list (as a source and a dependency).
From Matthias Troffaes:
- Don't re-run TeX if the triggering strings (\makeindex, \bibliography
\tableofcontents) are commented out.
From Richard Viney:
- Fix use of custom include and lib paths with Visual Studio 8.
- Select the default .NET Framework SDK Dir based on the version of
Visual Studio being used.
RELEASE 0.96.95 - Mon, 12 Feb 2007 20:25:16 -0600
From Anatoly Techtonik:
- Add the scons.org URL and a package description to the setup.py
arguments.
- Have the Windows installer add a registry entry for scons.bat in the
"App Paths" key, so scons.bat can be executed without adding the
directory to the %PATH%. (Python itself works this way.)
From Anonymous:
- Fix looking for default paths in Visual Studio 8.0 (and later).
- Add -lm to the list of default D libraries for linking.
From Matt Doar:
- Provide a more complete write-your-own-Scanner example in the man page.
From Ralf W. Grosse-Kunstleve:
- Contributed upstream Python change to our copied subprocess.py module
for more efficient standard input processing.
From Steven Knight:
- Fix the Node.FS.Base.rel_path() method when the two nodes are on
different drive letters. (This caused an infinite loop when
trying to write .sconsign files.)
- Fully support Scanners that use a dictionary to map file suffixes
to other scanners.
- Support delayed evaluation of the $SPAWN variable to allow selection
of a function via ${} string expansions.
- Add --srcdir as a synonym for -Y/--repository.
- Document limitations of #include "file.h" with Repository().
- Fix use of a toolpath under the source directory of a BuildDir().
- Fix env.Install() with a file name portion that begins with '#'.
- Fix ParseConfig()'s handling of multiple options in a string that's
replaced a *FLAGS construction variable.
- Have the C++ tools initialize common C compilation variables ($CCFLAGS,
$SHCCFLAGS and $_CCCOMCOM) even if the 'cc' Tool isn't loaded.
From Leanid Nazdrynau:
- Fix detection of Java anonymous classes if a newline precedes the
opening brace.
From Gary Oberbrunner:
- Document use of ${} to execute arbitrary Python code.
- Add support for:
1) automatically adding a site_scons subdirectory (in the top-level
SConstruct directory) to sys.path (PYTHONPATH);
2) automatically importing site_scons/site_init.py;
3) automatically adding site_scons/site_tools to the toolpath.
From John Pye:
- Change ParseConfig() to preserve white space in arguments passed in
as a list.
From a smith:
- Fix adding explicitly-named Java inner class files (and any
other file names that may contain a '$') to Jar files.
From David Vitek:
- Add a NoCache() function to mark targets as unsuitable for propagating
to (or retrieving from) a CacheDir().
From Ben Webb:
- If the swig -noproxy option is used, it won't generate a .py file,
so don't emit it as a target that we expect to be built.
RELEASE 0.96.94 - Sun, 07 Jan 2007 18:36:20 -0600
NOTE: This is a pre-release of 0.97 for testing purposes.
From Anonymous:
- Allow arbitrary white space after a SWIG %module declaration.
From Paul:
- When compiling resources under MinGW, make sure there's a space
between the --include-dir option and its argument.
From Jay Kint:
- Alleviate long command line issues on Windows by executing command
lines directly via os.spawnv() if the command line doesn't need
shell interpretation (has no pipes, redirection, etc.).
From Walter Franzini:
- Exclude additional Debian packaging files from the copyright check.
From Fawad Halim:
- Handle the conflict between the impending Python 2.6 'as' keyword
and our Tool/as.py module name.
From Steven Knight:
- Speed up the Node.FS.Dir.rel_path() method used to generate path names
that get put into the .sconsign* file(s).
- Optimize Node.FS.Base.get_suffix() by computing the suffix once, up
front, when we set the Node's name. (Duh...)
- Reduce the Memoizer's responsibilities to simply counting hits and
misses when the --debug=memoizer option is used, not to actually
handling the key calculation and memoization itself. This speeds
up some configurations significantly, and should cause no functional
differences.
- Add a new scons-time script with subcommands for generating
consistent timing output from SCons configurations, extracting
various information from those timings, and displaying them in
different formats.
- Reduce some unnecessary stat() calls from on-disk entry type checks.
- Fix SideEffect() when used with -j, which was badly broken in 0.96.93.
- Propagate TypeError exceptions when evaluating construction variable
expansions up the stack, so users can see what's going on.
- When disambiguating a Node.FS.Entry into a Dir or File, don't look
in the on-disk source directory until we've confirmed there's no
on-disk entry locally and there *is* one in the srcdir. This avoids
creating a phantom Node that can interfere with dependencies on
directory contents.
- Add an AllowSubstExceptions() function that gives the SConscript
files control over what exceptions cause a string to expand to ''
vs. terminating processing with an error.
- Allow the f90.py and f95.py Tool modules to compile earlier source
source files of earlier Fortran version.
- Fix storing signatures of files retrieved from CacheDir() so they're
correctly identified as up-to-date next invocation.
- Make sure lists of computed source suffixes cached by Builder objects
don't persist across changes to the list of source Builders (so the
addition of suffixes like .ui by the qt.py Tool module take effect).
- Enhance the bootstrap.py script to allow it to be used to execute
SCons more easily from a checked-out source tree.
From Ben Leslie:
- Fix post-Memoizer value caching misspellings in Node.FS._doLookup().
From Rob Managan, Dmitry Mikhin and Joel B. Mohler:
- Handle TeX/LaTeX files in subdirectories by changing directory
before invoking TeX/LaTeX.
- Scan LaTeX files for \bibliography lines.
- Support multiple file names in a "\bibliography{file1,file2}" string.
- Handle TeX warnings about undefined citations.
- Support re-running LaTeX if necessary due to a Table of Contents.
From Dmitry Mikhin:
- Return LaTeX if "Rerun to get citations correct" shows up on the next
line after the "Warning:" string.
From Gary Oberbrunner:
- Add #include lines to fix portability issues in two tests.
- Eliminate some unnecessary os.path.normpath() calls.
- Add a $CFLAGS variable for C-specific options, leaving $CCFLAGS
for options common to C and C++.
From Tom Parker:
- Have the error message print the missing file that Qt can't find.
From John Pye:
- Fix env.MergeFlags() appending to construction variable value of None.
From Steve Robbins:
- Fix the "sconsign" script when the .sconsign.dblite file is explicitly
specified on the command line (and not intuited from the old way of
calling it with just ".sconsign").
From Jose Pablo Ezequiel "Pupeno" Fernandez Silva:
- Give the 'lex' tool knowledge of the additional target files produced
by the flex "--header-file=" and "--tables-file=" options.
- Give the 'yacc' tool knowledge of the additional target files produced
by the bison "-g", "--defines=" and "--graph=" options.
- Generate intermediate files with Objective C file suffixes (.m) when
the lex and yacc source files have appropriate suffixes (.lm and .ym).
From Sohail Somain:
- Have the mslink.py Tool only look for a 'link' executable on Windows
systems.
From Vaclav Smilauer:
- Add support for a "srcdir" keyword argument when calling a Builder,
which will add a srcdir prefix to all non-relative string sources.
From Jonathan Ultis:
- Allow Options converters to take the construction environment as
an optional argument.
RELEASE 0.96.93 - Mon, 06 Nov 2006 00:44:11 -0600
NOTE: This is a pre-release of 0.97 for testing purposes.
From Anonymous:
- Allow Python Value Nodes to be Builder targets.
From Matthias:
- Only filter Visual Studio common filename prefixes on complete
directory names.
From Chad Austin:
- Fix the build of the SCons documentation on systems that don't
have "python" in the $PATH.
From Ken Boortz:
- Enhance ParseConfig() to recognize options that begin with '+'.
From John Calcote, Elliot Murphy:
- Document ways to override the CCPDBFLAGS variable to use the
Microsoft linker's /Zi option instead of the default /Z7.
From Christopher Drexler:
- Make SCons aware bibtex must be called if any \include files
cause creation of a bibliography.
- Make SCons aware that "\bilbiography" in TeX source files means
that related .bbl and .blg bibliography files will be created.
(NOTE: This still needs to search for the string in \include files.)
From David Gruener:
- Fix inconsistent handling of Action strfunction arguments.
- Preserve white space in display Action strfunction strings.
From James Y. Knight and Gerard Patel:
- Support creation of shared object files from assembly language.
From Steven Knight:
- Speed up the Taskmaster significantly by avoiding unnecessary
re-scans of Nodes to find out if there's work to be done, having it
track the currently-executed top-level target directly and not
through its presence on the target list, and eliminating some other
minor list(s), method(s) and manipulation.
- Fix the expansion of $TARGET and $SOURCE in the expansion of
$INSTALLSTR displayed for non-environment calls to InstallAs().
- Fix the ability to have an Alias() call refer to a directory
name that's not identified as a directory until later.
- Enhance runtest.py with an option to use QMTest as the harness.
This will become the default behavior as we add more functionality
to the QMTest side.
- Let linking on mingw use the default function that chooses $CC (gcc)
or $CXX (g++) depending on whether there are any C++ source files.
- Work around a bug in early versions of the Python 2.4 profile module
that caused the --profile= option to fail.
- Only call Options validators and converters once when initializing a
construction environment.
- Fix the ability of env.Append() and env.Prepend(), in all known Python
versions, to handle different input value types when the construction
variable being updated is a dictionary.
- Add a --cache-debug option for information about what files it's
looking for in a CacheDir().
- Document the difference in construction variable expansion between
{Action,Builder}() and env.{Action,Builder}().
- Change the name of env.Copy() to env.Clone(), keeping the old name
around for backwards compatibility (with the intention of eventually
phasing it out to avoid confusion with the Copy() Action factory).
From Arve Knudsen:
- Support cleaning and scanning SWIG-generated files.
From Carsten Koch:
- Allow selection of Visual Studio version by setting $MSVS_VERSION
after construction environment initialization.
From Jean-Baptiste Lab:
- Try using zipimport if we can't import Tool or Platform modules
using the normal "imp" module. This allows SCons to be packaged
using py2exe's all-in-one-zip-file approach.
From Ben Liblit:
- Do not re-scan files if the scanner returns no implicit dependencies.
From Sanjoy Mahajan:
- Change use of $SOURCES to $SOURCE in all TeX-related Tool modules.
From Joel B. Mohler:
- Make SCons aware that "\makeindex" in TeX source files means that
related .ilg, .ind and .idx index files will be created.
(NOTE: This still needs to search for the string in \include files.)
- Prevent scanning the TeX .aux file for additional files from
trying to remove it twice when the -c option is used.
From Leanid Nazdrynau:
- Give the MSVC RES (resource) Builder a src_builder list and a .rc
src_suffix so other builders can generate .rc files.
From Matthew A. Nicholson:
- Enhance Install() and InstallAs() to handle directory trees as sources.
From Jan Nijtmans:
- Don't use the -fPIC flag when using gcc on Windows (e.g. MinGW).
From Greg Noel:
- Add an env.ParseFlags() method that provides separate logic for
parsing GNU tool chain flags into a dictionary.
- Add an env.MergeFlags() method to apply an arbitrary dictionary
of flags to a construction environment's variables.
From Gary Oberbrunner:
- Fix parsing tripartite Intel C compiler version numbers on Linux.
- Extend the ParseConfig() function to recognize -arch and
-isysroot options.
- Have the error message list the known suffixes when a Builder call
can't build a source file with an unknown suffix.
From Karol Pietrzak:
- Avoid recursive calls to main() in the program snippet used by the
SConf subsystem to test linking against libraries. This changes the
default behavior of CheckLib() and CheckLibWithHeader() to print
"Checking for C library foo..." instead of "Checking for main()
in C library foo...".
From John Pye:
- Throw an exception if a command called by ParseConfig() or
ParseFlags() returns an error.
From Stefan Seefeld:
- Initial infrastructure for running SCons tests under QMTest.
From Sohail Somani:
- Fix tests that fail due to gcc warnings.
From Dobes Vandermeer:
- In stack traces, print the full paths of SConscript files.
From Atul Varma:
- Fix detection of Visual C++ Express Edition.
From Dobes Vandermeer:
- Let the src_dir option to the SConscript() function affect all the
the source file paths, instead of treating all source files paths
as relative to the SConscript directory itself.
From Nicolas Vigier:
- Fix finding Fortran modules in build directories.
- Fix use of BuildDir() when the source file in the source directory
is a symlink with a relative path.
From Edward Wang:
- Fix the Memoizer when the SCons Python modules are executed from
.pyo files at different locations from where they were compiled.
From Johan Zander:
- Fix missing os.path.join() when constructing the $FRAMEWORKSDKDIR/bin.
RELEASE 0.96.92 - Mon, 10 Apr 2006 21:08:22 -0400
NOTE: This was a pre-release of 0.97 for testing purposes.
From Anonymous:
- Fix the intelc.py Tool module to not throw an exception if the
only installed version is something other than ia32.
- Set $CCVERSION when using gcc.
From Matthias:
- Support generating project and solution files for Microsoft
Visual Studio version 8.
- Support generating more than one project file for a Microsoft
Visual Studio solution file.
- Add support for a support "runfile" parameter to Microsoft
Visual Studio project file creation.
- Put the project GUID, not the solution GUID, in the right spot
in the solution file.
From Erling Andersen:
- Fix interpretation of Node.FS objects wrapped in Proxy instances,
allowing expansion of things like ${File(TARGET)} in command lines.
From Stanislav Baranov:
- Add a separate MSVSSolution() Builder, with support for the
following new construction variables: $MSVSBUILDCOM, $MSVSCLEANCOM,
$MSVSENCODING, $MSVSREBUILDCOM, $MSVSSCONS, $MSVSSCONSCOM,
$MSVSSCONSFLAGS, $MSVSSCONSCRIPT and $MSVSSOLUTIONCOM.
From Ralph W. Grosse-Kunstleve and Patrick Mezard:
- Remove unneceesary (and incorrect) SCons.Util strings on some function
calls in SCons.Util.
From Bob Halley:
- Fix C/C++ compiler selection on AIX to not always use the external $CC
environment variable.
From August Hörandl:
- Add a scanner for \include and \import files, with support for
searching a directory list in $TEXINPUTS (imported from the external
environment).
- Support $MAKEINDEX, $MAKEINDEXCOM, $MAKEINDEXCOMSTR and
$MAKEINDEXFLAGS for generating indices from .idx files.
From Steven Johnson:
- Add a NoClean() Environment method and function to override removal
of targets during a -c clean, including documentation and tests.
From Steven Knight:
- Check for whether files exist on disk by listing the directory
contents, not calling os.path.exists() file by file. This is
somewhat more efficient in general, and may be significantly
more efficient on Windows.
- Minor speedups in the internal is_Dict(), is_List() and is_String()
functions.
- Fix a signature refactoring bug that caused Qt header files to
get re-generated every time.
- Don't fail when writing signatures if the .sconsign.dblite file is
owned by a different user (e.g. root) from a previous run.
- When deleting variables from stacked OverrideEnvironments, don't
throw a KeyError if we were able to delte the variable from any
Environment in the stack.
- Get rid of the last indentation tabs in the SCons source files and
add -tt to the Python invocations in the packaging build and the
tests so they don't creep back in.
- In Visual Studio project files, put quotes around the -C directory
so everything works even if the path has spaces in it.
- The Intel Fortran compiler uses -object:$TARGET, not "-o $TARGET",
when building object files on Windows. Have the the ifort Tool
modify the default command lines appropriately.
- Document the --debug=explain option in the man page. (How did we
miss this?)
- Add a $LATEXRETRIES variable to allow configuration of the number of
times LaTex can be re-called to try to resolve undefined references.
- Change the order of the arguments to Configure.Checklib() to match
the documentation.
- Handle signature calculation properly when the Python function used
for a FunctionAction is an object method.
- On Windows, assume that absolute path names without a drive letter
refer to the drive on which the SConstruct file lives.
- Add /usr/ccs/bin to the end of the the default external execution
PATH on Solaris.
- Add $PKGCHK and $PKGINFO variables for use on Solaris when searching
for the SunPRO C++ compiler. Make the default value for $PKGCHK
be /usr/sbin/pgkchk (since /usr/sbin isn't usually on the external
execution $PATH).
- Fix a man page example of overriding variables when calling
SharedLibrary() to also set the $LIBSUFFIXES variable.
- Add a --taskmastertrace=FILE option to give some insight on how
the taskmaster decides what Node to build next.
- Changed the names of the old $WIN32DEFPREFIX, $WIN32DEFSUFFIX,
$WIN32DLLPREFIX and $WIN32IMPLIBPREFIX construction variables to
new $WINDOWSDEFPREFIX, $WINDOWSDEFSUFFIX, $WINDOWSDLLPREFIX and
$WINDOWSIMPLIBPREFIX construction variables. The old names are now
deprecated, but preserved for backwards compatibility.
- Fix (?) a runtest.py hang on Windows when the --xml option is used.
- Change the message when an error occurs trying to interact with the
file system to report the target(s) in square brackets (as before) and
the actual file or directory that encountered the error afterwards.
From Chen Lee:
- Add x64 support for Microsoft Visual Studio 8.
From Baptiste Lepilleur:
- Support the --debug=memory option on Windows when the Python version
has the win32process and win32api modules.
- Add support for Visual Studio 2005 Pro.
- Fix portability issues in various tests: test/Case.py,
Test/Java/{JAR,JARCHDIR,JARFLAGS,JAVAC,JAVACFLAGS,JAVAH,RMIC}.py,
test/MSVS/vs-{6.0,7.0,7.1,8.0}-exec.py,
test/Repository/{Java,JavaH,RMIC}.py,
test/QT/{generated-ui,installed,up-to-date,warnings}.py,
test/ZIP/ZIP.py.
- Ignore pkgchk errors on Solaris when searching for the C++ compiler.
- Speed up the SCons/EnvironmentTests.py unit tests.
- Add a --verbose= option to runtest.py to print executed commands
and their output at various levels.
From Christian Maaser:
- Add support for Visual Studio Express Editions.
- Add support for Visual Studio 8 *.manifest files, includng
new $WINDOWS_INSERT_MANIFEST, $WINDOWSPROGMANIFESTSUFFIX,
$WINDOWSPROGMANIFESTPREFIX, $WINDOWSPROGMANIFESTSUFFIX,
$WINDOWSSHLIBMANIFESTPREFIX and $WINDOWSSHLIBMANIFESTSUFFIX
construction variables.
From Adam MacBeth:
- Fix detection of additional Java inner classes following use of a
"new" keyword inside an inner class.
From Sanjoy Mahajan:
- Correct TeX-related command lines to just $SOURCE, not $SOURCES
From Patrick Mezard:
- Execute build commands for a command-line target if any of the
files built along with the target is out of date or non-existent,
not just if the command-line target itself is out of date.
- Fix the -n option when used with -c to print all of the targets
that will be removed for a multi-target Builder call.
- If there's no file in the source directory, make sure there isn't
one in the build directory, too, to avoid dangling files left
over from previous runs when a source file is removed.
- Allow AppendUnique() and PrependUnique() to append strings (and
other atomic objects) to lists.
From Joel B. Mohler:
- Extend latex.py, pdflatex.py, pdftex.py and tex.py so that building
from both TeX and LaTeX files uses the same logic to call $BIBTEX
when it's necessary, to call $MAKEINDEX when it's necessary, and to
call $TEX or $LATEX multiple times to handle undefined references.
- Add an emitter to the various TeX builders so that the generated
.aux and .log files also get deleted by the -c option.
From Leanid Nazdrynau:
- Fix the Qt UIC scanner to work with generated .ui files (by using
the FindFile() function instead of checking by-hand for the file).
From Jan Nieuwenhuizen:
- Fix a problem with interpreting quoted argument lists on command lines.
From Greg Noel:
- Add /sw/bin to the default execution PATH on Mac OS X.
From Kian Win Ong:
- When building a .jar file and there is a $JARCHDIR, put the -C
in front of each .class file on the command line.
- Recognize the Java 1.5 enum keyword.
From Asfand Yar Qazi:
- Add /opt/bin to the default execution PATH on all POSIX platforms
(between /usr/local/bin and /bin).
From Jon Rafkind:
- Fix the use of Configure() contexts from nested subsidiary
SConscript files.
From Christoph Schulz:
- Add support for $CONFIGUREDIR and $CONFIGURELOG variables to control
the directory and logs for configuration tests.
- Add support for a $INSTALLSTR variable.
- Add support for $RANLIBCOM and $RANLIBCOMSTR variables (which fixes
a bug when setting $ARCOMSTR).
From Amir Szekely:
- Add use of $CPPDEFINES to $RCCOM (resource file compilation) on MinGW.
From Erick Tryzelaar:
- Fix the error message when trying to report that a given option is
not gettable/settable from an SConscript file.
From Dobes Vandermeer:
- Add support for SCC and other settings in Microsoft Visual
Studio project and solution files: $MSVS_PROJECT_BASE_PATH,
$MSVS_PROJECT_GUID, $MSVS_SCC_AUX_PATH, $MSVS_SCC_LOCAL_PATH,
$MSVS_SCC_PROJECT_NAME, $MSVS_SCC_PROVIDER,
- Add support for using a $SCONS_HOME variable (imported from the
external environment, or settable internally) to put a shortened
SCons execution line in the Visual Studio project file.
From David J. Van Maren:
- Only filter common prefixes from source files names in Visual Studio
project files if the prefix is a complete (sub)directory name.
From Thad Ward:
- If $MSVSVERSIONS is already set, don't overwrite it with
information from the registry.
RELEASE 0.96.91 - Thu, 08 Sep 2005 07:18:23 -0400
NOTE: This was a pre-release of 0.97 for testing purposes.
From Chad Austin:
- Have the environment store the toolpath and re-use it to find Tools
modules during later Copy() or Tool() calls (unless overridden).
- Normalize the directory path names in SConsignFile() database
files so the same signature file can interoperate on Windows and
non-Windows systems.
- Make --debug=stacktrace print a stacktrace when a UserError is thrown.
- Remove an old, erroneous cut-and-paste comment in Scanner/Dir.py.
From Stanislav Baranov:
- Make it possible to support with custom Alias (sub-)classes.
- Allow Builders to take empty source lists when called.
- Allow access to both TARGET and SOURCE in $*PATH expansions.
- Allow SConscript files to modify BUILD_TARGETS.
From Timothee Besset:
- Add support for Objective C/C++ .m and .mm file suffixes (for
Mac OS X).
From Charles Crain
- Fix the PharLap linkloc.py module to use target+source arguments
when calling env.subst().
From Bjorn Eriksson:
- Fix an incorrect Command() keyword argument in the man page.
- Add a $TEMPFILEPREFIX variable to control the prefix or flag used
to pass a long-command-line-execution tempfile to a command.
From Steven Knight:
- Enhanced the SCons setup.py script to install man pages on
UNIX/Linux systems.
- Add support for an Options.FormatOptionHelpText() method that can
be overridden to customize the format of Options help text.
- Add a global name for the Entry class (which had already been
documented).
- Fix re-scanning of generated source files for implicit dependencies
when the -j option is used.
- Fix a dependency problem that caused $LIBS scans to not be added
to all of the targets in a multiple-target builder call, which
could cause out-of-order builds when the -j option is used.
- Store the paths of source files and dependencies in the .sconsign*
file(s) relative to the target's directory, not relative to the
top-level SConstruct directory. This starts to make it possible to
subdivide the dependency tree arbitrarily by putting an SConstruct
file in every directory and using content signatures.
- Add support for $YACCHFILESUFFIX and $YACCHXXFILESUFFIX variables
that accomodate parser generators that write header files to a
different suffix than the hard-coded .hpp when the -d option is used.
- The default behavior is now to store signature information in a
single .sconsign.dblite file in the top-level SConstruct directory.
The old behavior of a separate .sconsign file in each directory can
be specified by calling SConsignFile(None).
- Remove line number byte codes within the signature calculation
of Python function actions, so that changing the location of an
otherwise unmodified Python function doesn't cause rebuilds.
- Fix AddPreAction() and AddPostAction() when an action has more than
one target file: attach the actions to the Executor, not the Node.
- Allow the source directory of a BuildDir / build_dir to be outside
of the top-level SConstruct directory tree.
- Add a --debug=nomemoizer option that disables the Memoizer for clearer
looks at the counts and profiles of the underlying function calls,
not the Memoizer wrappers.
- Print various --debug= stats even if we exit early (e.g. using -h).
- Really only use the cached content signature value if the file
is older than --max-drift, not just if --max-drift is set.
- Remove support for conversion from old (pre 0.96) .sconsign formats.
- Add support for a --diskcheck option to enable or disable various
on-disk checks: that File and Dir nodes match on-disk entries;
whether an RCS file exists for a missing source file; whether an
SCCS file exists for a missing source file.
- Add a --raw argument to the sconsign script, so it can print a
raw representation of each entry's NodeInfo dictionary.
- Add the 'f90' and 'f95' tools to the list of Fortran compilers
searched for by default.
- Add the +Z option by default when compiling shared objects on
HP-UX.
From Chen Lee:
- Handle Visual Studio project and solution files in Unicode.
From Sanjoy Mahajan:
- Fix a bad use of Copy() in an example in the man page, and a
bad regular expression example in the man page and User's Guide.
From Shannon Mann:
- Have the Visual Studio project file(s) echo "Starting SCons" before
executing SCons, mainly to work around a quote-stripping bug in
(some versions of?) the Windows cmd command executor.
From Georg Mischler:
- Remove the space after the -o option when invoking the Borland
BCC compiler; some versions apparently require that the file name
argument be concatenated with the option.
From Leanid Nazdrynau:
- Fix the Java parser's handling of backslashes in strings.
From Greg Noel:
- Add construction variables to support frameworks on Mac OS X:
$FRAMEWORKS, $FRAMEWORKPREFIX, $FRAMEWORKPATH, $FRAMEWORKPATHPREFIX.
- Re-order link lines so the -o option always comes right after the
command name.
From Gary Oberbrunner:
- Add support for Intel C++ beta 9.0 (both 32 and 64 bit versions).
- Document the new $FRAMEWORK* variables for Mac OS X.
From Karol Pietrzak:
- Add $RPATH (-R) support to the Sun linker Tool (sunlink).
- Add a description of env.subst() to the man page.
From Chris Prince:
- Look in the right directory, not always the local directory, for a
same-named file or directory conflict on disk.
- On Windows, preserve the external environment's %SYSTEMDRIVE%
variable, too.
From Craig Scott:
- Have the Fortran module emitter look for Fortan modules to be created
relative to $FORTRANMODDIR, not the top-level directory.
- When saving Options to a file, run default values through the
converter before comparing them with the set values. This correctly
suppresses Boolean Option values from getting written to the saved
file when they're one of the many synonyms for a default True or
False value.
- Fix the Fortran Scanner's ability to handle a module being used
in the same file in which it is defined.
From Steve-o:
- Add the -KPIC option by default when compiling shared objects on
Solaris.
- Change the default suffix for Solaris objects to .o, to conform to
Sun WorkShop's expectations. Change the profix to so_ so they can
still be differentiated from static objects in the same directory.
From Amir Szekely:
- When calling the resource compiler on MinGW, add --include-dir and
the source directory so it finds the source file.
- Update EnsureSConsVersion() to support revision numbers.
From Greg Ward:
- Fix a misplaced line in the man page.
RELEASE 0.96.90 - Tue, 15 Feb 2005 21:21:12 +0000
NOTE: This was a pre-release of 0.97 for testing purposes.
From Anonymous:
- Fix Java parsing to avoid erroneously identifying a new array
of class instances as an anonymous inner class.
- Fix a typo in the man page description of PathIsDirCreate.
From Chad Austin:
- Allow Help() to be called multiple times, appending to the help
text each call.
- Allow Tools found on a toolpath to import Python modules from
their local directory.
From Steve Christensen:
- Handle exceptions from Python functions as build actions.
- Add a set of canned PathOption validators: PathExists (the default),
PathIsFile, PathIsDir and PathIsDirCreate.
From Matthew Doar:
- Add support for .lex and .yacc file suffixes for Lex and Yacc files.
From Eric Frias:
- Huge performance improvement: wrap the tuples representing an
include path in an object, so that the time it takes to hash the
path doesn't grow porportionally to the length of the path.
From Gottfried Ganssauge:
- Fix SCons on SuSE/AMD-64 Linux by having the wrapper script also
check for the build engine in the parent directory of the Python
library directory (/usr/lib64 instead of /usr/lib).
From Stephen Kennedy:
- Speed up writing the .sconsign file at the end of a run by only
calling sync() once at the end, not after every entry.
From Steven Knight:
- When compiling with Microsoft Visual Studio, don't include the ATL and
MFC directories in the default INCLUDE and LIB environment variables.
- Remove the following deprecated features: the ParseConfig()
global function (deprecated in 0.93); the misspelled "validater"
keyword to the Options.Add() method (deprecated in 0.91); the
SetBuildSignatureType(), SetContentSignatureType(), SetJobs() and
GetJobs() global functions (deprecated in 0.14).
- Fix problems with corrupting the .sconsign.dblite file when
interrupting builds by writing to a temporary file and renaming,
not writing the file directly.
- Fix a 0.96 regression where when running with -k, targets built from
walking dependencies later on the command line would not realize
that a dependency had failed an earlier build attempt, and would
try to rebuild the dependent targets.
- Change the final messages when using -k and errors occur from
"{building,cleaning} terminated because of errors" to "done
{building,cleaning} targets (errors occurred during {build,clean})."
- Allow Configure.CheckFunc() to take an optional header argument
(already supported by Conftest.py) to specify text at the top of
the compiled test file.
- Fix the --debug=explain output when a Python function action changed
so it prints a meaningful string, not the binary representation of
the function contents.
- Allow a ListOption's default value(s) to be a Python list of specified
values, not just a string containing a comma-separated list of names.
- Add a ParseDepends() function that will parse up a list of explicit
dependencies from a "make depend" style file.
- Support the ability to change directory when executing an Action
through "chdir" keyword arguments to Action and Builder creation
and calls.
- Fix handling of Action ojects (and other callables that don't match
our calling arguments) in construction variable expansions.
- On Win32, install scons.bat in the Python directory when installing
from setup.py. (The bdist_wininst installer was already doing this.)
- Fix env.SConscript() when called with a list of SConscipt files.
(The SConscript() global function already worked properly.)
- Add a missing newline to the end of the --debug=explain "unknown
reasons" message.
- Enhance ParseConfig() to work properly for spaces in between the -I,
-L and -l options and their arguments.
- Packaging build fix: Rebuild the files that are use to report the
--version of SCons whenever the development version number changes.
- Fix the ability to specify a target_factory of Dir() to a Builder,
which the default create-a-directory Builder was interfering with.
- Mark a directory as built if it's created as part of the preparation
for another target, to avoid trying to build it again when it comes
up in the target list.
- Allow a function with the right calling signature to be put directly
in an Environment's BUILDERS dictionary, making for easier creation
and use of wrappers (pseudo-Builders) that call other Builders.
- On Python 2.x, wrap lists of Nodes returned by Builders in a UserList
object that adds a method that makes str() object return a string
with all of the Nodes expanded to their path names. (Builders under
Python 1.5.2 still return lists to avoid TypeErrors when trying
to extend() list, so Python 1.5.2 doesn't get pretty-printing of Node
lists, but everything should still function.)
- Allow Aliases to have actions that will be executed whenever
any of the expanded Alias targets are out of date.
- Fix expansion of env.Command() overrides within target and
source file names.
- Support easier customization of what's displayed by various default
actions by adding lots of new construction variables: $ARCOMSTR,
$ASCOMSTR, $ASPPCOMSTR, $BIBTEXCOMSTR, $BITKEEPERCOMSTR, $CCCOMSTR,
$CVSCOMSTR, $CXXCOMSTR, $DCOMSTR, $DVIPDFCOMSTR, $F77COMSTR,
$F90COMSTR, $F95COMSTR, $FORTRANCOMSTR, $GSCOMSTR, $JARCOMSTR,
$JAVACCOMSTR, $JAVAHCOMSTR, $LATEXCOMSTR, $LEXCOMSTR, $LINKCOMSTR,
$M4COMSTR, $MIDLCOMSTR, $P4COMSTR, $PCHCOMSTR, $PDFLATEXCOMSTR,
$PDFTEXCOMSTR, $PSCOMSTR, $QT_MOCFROMCXXCOMSTR, $QT_MOCFROMHCOMSTR,
$QT_UICCOMSTR, $RCCOMSTR, $REGSVRCOMSTR, $RCS_COCOMSTR, $RMICCOMSTR,
$SCCSCOMSTR, $SHCCCOMSTR, $SHCXXCOMSTR, $SHF77COMSTR, $SHF90COMSTR,
$SHF95COMSTR, $SHFORTRANCOMSTR, $SHLINKCOMSTR, $SWIGCOMSTR,
$TARCOMSTR, $TEXCOMSTR, $YACCCOMSTR and $ZIPCOMSTR.
- Add an optional "map" keyword argument to ListOption() that takes a
dictionary to map user-specified values to legal values from the list
(like EnumOption() already doee).
- Add specific exceptions to try:-except: blocks without any listed,
so that they won't catch and mask keyboard interrupts.
- Make --debug={tree,dtree,stree} print something even when there's
a build failure.
- Fix how Scanners sort the found dependencies so that it doesn't
matter whether the dependency file is in a Repository or not.
This may cause recompilations upon upgrade to this version.
- Make AlwaysBuild() work with Alias and Python value Nodes (making
it much simpler to support aliases like "clean" that just invoke
an arbitrary action).
- Have env.ParseConfig() use AppendUnique() by default to suppress
duplicate entries from multiple calls. Add a "unique" keyword
argument to allow the old behavior to be specified.
- Allow the library modules imported by an SConscript file to get at
all of the normally-available global functions and variables by saying
"from SCons.Script import *".
- Add a --debug=memoizer option to print Memoizer hit/mass statistics.
- Allow more than one --debug= option to be set at a time.
- Change --debug=count to report object counts before and after
reading SConscript files and before and after building targets.
- Change --debug=memory output to line up the numbers and to better
match (more or less) the headers on the --debug=count columns.
- Speed things up when there are lists of targets and/or sources by
getting rid of some N^2 walks of the lists involved.
- Cache evaluation of LazyActions so we don't create a new object
for each invocation.
- When scanning, don't create Nodes for include files that don't
actually exist on disk.
- Make supported global variables CScanner, DScanner, ProgramScanner and
SourceFileScanner. Make SourceFileScanner.add_scanner() a supported
part of the public interface. Keep the old SCons.Defaults.*Scan names
around for a while longer since some people were already using them.
- By default, don't scan directories for on-disk files. Add a
DirScanner global scanner that can be used in Builders or Command()
calls that want source directory trees scanned for on-disk changes.
Have the Tar() and Zip() Builders use the new DirScanner to preserve
the behavior of rebuilding a .tar or .zip file if any file or
directory under a source tree changes. Add Command() support for
a source_scanner keyword argument to Command() that can be set to
DirScanner to get this behavior.
- Documentation changes: Explain that $CXXFLAGS contains $CCFLAGS
by default. Fix a bad target_factory example in the man page.
Add appendices to the User's Guide to cover the available Tools,
Builders and construction variables. Comment out the build of
the old Python 10 paper, which doesn't build on all systems and
is old enough at this point that it probably isn't worth the
effort to make it do so.
From Wayne Lee:
- Avoid "maximum recursion limit" errors when removing $(-$) pairs
from long command lines.
From Clive Levinson:
- Make ParseConfig() recognize and add -mno-cygwin to $LINKFLAGS and
$CCFLAGS, and -mwindows to $LINKFLAGS.
From Michael McCracken:
- Add a new "applelink" tool to handle the things like Frameworks and
bundles that Apple has added to gcc for linking.
- Use more appropriate default search lists of linkers, compilers and
and other tools for the 'darwin' platform.
- Add a LoadableModule Builder that builds a bundle on Mac OS X (Darwin)
and a shared library on other systems.
- Improve SWIG tests for use on Mac OS X (Darwin).
From Elliot Murphy:
- Enhance the tests to guarantee persistence of ListOption
values in saved options files.
- Supply the help text when -h is used with the -u, -U or -D options.
From Christian Neeb:
- Fix the Java parser's handling of string definitions to avoid ignoring
subsequent code.
From Han-Wen Nienhuys:
- Optimize variable expansion by: using the re.sub() method (when
possible); not using "eval" for variables for which we can fetch the
value directory; avoiding slowing substitution logic when there's no
'$' in the string.
From Gary Oberbrunner:
- Add an Environment.Dump() method to print the contents of a
construction environment.
- Allow $LIBS (and similar variables) to contain explicit File Nodes.
- Change ParseConfig to add the found library names directly to the
$LIBS variable, instead of returning them.
- Add ParseConfig() support for the -framework GNU linker option.
- Add a PRINT_CMD_LINE_FUNC construction variable to allow people
to filter (or log) command-line output.
- Print an internal Python stack trace in response to an otherwise
unexplained error when --debug=stacktrace is specified.
- Add a --debug=findlibs option to print what's happening when
the scanner is searching for libraries.
- Allow Tool specifications to be passed a dictionary of keyword
arguments.
- Support an Options default value of None, in which case the variable
will not be added to the construction environment unless it's set
explicitly by the user or from an Options file.
- Avoid copying __builtin__ values into a construction environment's
dictionary when evaluating construction variables.
- Add a new cross-platform intelc.py Tool that can detect and
configure the Intel C++ v8 compiler on both Windows, where it's
named icl, and Linux, where it's named icc. It also checks that
the directory specified in the Windows registry exists, and sets a
new $INTEL_C_COMPILER_VERSION construction variable to identify the
version being used. (Niall Douglas contributed an early prototype
of parts of this module.)
- Fix the private Conftest._Have() function so it doesn't change
non-alphanumeric characters to underscores.
- Supply a better error message when a construction variable expansion
has an unknown attribute.
- Documentation changes: Update the man page to describe use of
filenames or Nodes in $LIBS.
From Chris Pawling:
- Have the linkloc tool use $MSVS_VERSION to select the Microsoft
Visual Studio version to use.
From Kevin Quick:
- Fix the Builder name returned from ListBuilders and other instances
of subclasses of the BuilderBase class.
- Add Builders and construction variables to support rpcgen:
RPCGenClient(), RPCGenHeader(), RPCGenService(), RPCGenXDR(),
$RPCGEN, $RPCGENFLAGS, $RPCGENCLIENTFLAGS, $RPCGENHEADERFLAGS,
$RPCGENSERVICEFLAGS, $RPCGENXDRFLAGS.
- Update the man page to document that prefix and suffix Builder
keyword arguments can be strings, callables or dictionaries.
- Provide more info in the error message when a user tries to build
a target multiple ways.
- Fix Delete() when a file doesn't exist and must_exist=1. (We were
unintentionally dependent on a bug in versions of the Python shutil.py
module prior to Python 2.3, which would generate an exception for
a nonexistent file even when ignore_errors was set.)
- Only replace a Node's builder with a non-null source builder.
- Fix a stack trace when a suffix selection dictionary is passed
an empty source file list.
- Allow optional names to be attached to Builders, for default
Builders that don't get attached to construction environments.
- Fix problems with Parallel Task Exception handling.
- Build targets in an associated BuildDir even if there are targets
or subdirectories locally in the source directory.
- If a FunctionAction has a callable class as its underlying Python
function, use its strfunction() method (if any) to display the
action.
- Fix handling when BuildDir() exists but is unwriteable. Add
"Stop." to those error messages for consistency.
- Catch incidents of bad builder creation (without an action) and
supply meaningful error messages.
- Fix handling of src_suffix values that aren't extensions (don't
begin with a '.').
- Don't retrieve files from a CacheDir, but report what would happen,
when the -n option is used.
- Use the source_scanner from the target Node, not the source node
itself.
- Internal Scanners fixes: Make sure Scanners are only passed Nodes.
Fix how a Scanner.Selector called its base class initialization.
Make comparisons of Scanner objects more robust. Add a name to
an internal default ObjSourceScanner.
- Add a deprecated warning for use of the old "scanner" keyword argument
to Builder creation.
- Improve the --debug=explain message when the build action changes.
- Test enhancements in SourceCode.py, option-n.py, midl.py. Better
Command() and Scanner test coverage. Improved test infrastructure
for -c output.
- Refactor the interface between Action and Executor objects to treat
Actions atomically.
- The --debug=presub option will now report the pre-substitution
each action seprately, instead of reporting the entire list before
executing the actions one by one.
- The --debug=explain option explaining a changed action will now
(more correctly) show pre-substitution action strings, instead of
the commands with substituted file names.
- A Node (file) will now be rebuilt if its PreAction or PostAction
actions change.
- Python Function actions now have their calling signature (target,
source, env) reported correctly when displayed.
- Fix BuildDir()/build_dir handling when the build_dir is underneath
the source directory and trying to use entries from the build_dir
as sources for other targets in the build-dir.
- Fix hard-coding of JDK path names in various Java tests.
- Handle Python stack traces consistently (stop at the SConscript stack
frame, by default) even if the Python source code isn't available.
- Improve the performance of the --debug={tree,dtree} options.
- Add --debug=objects logging of creation of OverrideWarner,
EnvironmentCopy and EnvironmentOverride objects.
- Fix command-line expansion of Python Value Nodes.
- Internal cleanups: Remove an unnecessary scan argument. Associate
Scanners only with Builders, not nodes. Apply overrides once when
a Builder is called, not in multiple places. Cache results from the
Node.FS.get_suffix() and Node.get_build_env() methods. Use the Python
md5 modules' hexdigest() method, if there is one. Have Taskmaster
call get_stat() once for each Node and re-use the value instead of
calling it each time it needs the value. Have Node.depends_on()
re-use the list from the children() method instead of calling it
multiple times.
- Use the correct scanner if the same source file is used for targets in
two different environments with the same path but different scanners.
- Collect logic for caching values in memory in a Memoizer class,
which cleans up a lot of special-case code in various methods and
caches additional values to speed up most configurations.
- Add a PathAccept validator to the list of new canned PathOption
validators.
From Jeff Squyres:
- Documentation changes: Use $CPPDEFINES instead of $CCFLAGS in man
page examples.
From Levi Stephen:
- Allow $JARCHDIR to be expanded to other construction variables.
From Christoph Wiedemann:
- Add an Environment.SetDefault() method that only sets values if
they aren't already set.
- Have the qt.py Tool not override variables already set by the user.
- Add separate $QT_BINPATH, $QT_CPPPATH and $QT_LIBPATH variables
so these can be set individually, instead of being hard-wired
relative to $QTDIR.
- The %TEMP% and %TMP% external environment variables are now propagated
automatically to the command execution environment on Windows systems.
- A new --config= command-line option allows explicit control of
of when the Configure() tests are run: --config=force forces all
checks to be run, --config=cache uses all previously cached values,
--config=auto (the default) runs tests only when dependency analysis
determines it's necessary.
- The Configure() subsystem can now write a config.h file with values
like HAVE_STDIO_H, HAVE_LIBM, etc.
- The Configure() subsystem now executes its checks silently when the
-Q option is specified.
- The Configure() subsystem now reports if a test result is being
taken from cache, and prints the standard output and error output
of tests even when cached.
- Configure() test results are now reported as "yes" or "no" instead of
"ok" or "failed."
- Fixed traceback printing when calling the env.Configure() method
instead of the Configure() global function.
- The Configure() subsystem now caches build failures in a .sconsign
file in the subdirectory, not a .cache file. This may cause
tests to be re-executed the first time after you install 0.97.
- Additional significant internal cleanups in the Configure() subsystem
and its tests.
- Have the Qt Builder make uic-generated files dependent on the .ui.h
file, if one exists.
- Add a test to make sure that SCons source code does not contain
try:-except: blocks that catch all errors, which potentially catch
and mask keyboard interrupts.
- Fix us of TargetSignatures('content') with the SConf subsystem.
From Russell Yanofsky:
- Add support for the Metrowerks Codewarrior compiler and linker
(mwcc and mwld).
RELEASE 0.96.1 - Mon, 23 Aug 2004 12:55:50 +0000
From Craig Bachelor:
- Handle white space in the executable Python path name within in MSVS
project files by quoting the path.
- Correct the format of a GUID string in a solution (.dsw) file so
MSVS can correctly "build enable" a project.
From Steven Knight:
- Add a must_exist flag to Delete() to let the user control whether
it's an error if the specified entry doesn't exist. The default
behavior is now to silently do nothing if it doesn't exist.
- Package up the new Platform/darwin.py, mistakenly left out of 0.96.
- Make the scons.bat REM statements into @REM so they aren't printed.
- Make the SCons packaging SConscript files platform independent.
From Anthony Roach:
- Fix scanning of pre-compiled header (.pch) files for #includes,
broken in 0.96.
RELEASE 0.96 - Wed, 18 Aug 2004 13:36:40 +0000
From Chad Austin:
- Make the CacheDir() directory if it doesn't already exist.
- Allow construction variable substitutions in $LIBS specifications.
- Allow the emitter argument to a Builder() to be or expand to a list
of emitter functions, which will be called in sequence.
- Suppress null values in construction variables like $LIBS that use
the internal _concat() function.
- Remove .dll files from the construction variables searched for
libraries that can be fed to Win32 compilers.
From Chad Austin and Christoph Wiedemann:
- Add support for a $RPATH variable to supply a list of directories
to search for shared libraries when linking a program. Used by
the GNU and IRIX linkers (gnulink and sgilink).
From Charles Crain:
- Restore the ability to do construction variable substitutions in all
kinds of *PATH variables, even when the substitution returns a Node
or other object.
From Tom Epperly:
- Allow the Java() Builder to take more than one source directory.
From Ralf W. Grosse-Kunstleve:
- Have SConsignFile() use, by default, a custom "dblite.py" that we can
control and guarantee to work on all Python versions (or nearly so).
From Jonathan Gurley:
- Add support for the newer "ifort" versions of the Intel Fortran
Compiler for Linux.
From Bob Halley:
- Make the new *FLAGS variable type work with copied Environments.
From Chris Hoeppler:
- Initialize the name of a Scanner.Classic scanner correctly.
From James Juhasz:
- Add support for the .dylib shared library suffix and the -dynamiclib
linker option on Mac OS X.
From Steven Knight:
- Add an Execute() method for executing actions directly.
- Support passing environment override keyword arguments to Command().
- Fix use of $MSVS_IGNORE_IDE_PATHS, which was broken when we added
support for $MSVS_USE_MFC_DIRS last release.
- Make env.Append() and env.Prepend() act like the underlying Python
behavior when the variable being appended to is a UserList object.
- Fix a regression that prevented the Command() global function in
0.95 from working with command-line strings as actions.
- Fix checking out a file from a source code management system when
the env.SourceCode() method was called with an individual file name
or node, not a directory name or node.
- Enhance the Task.make_ready() method to create a list of the
out-of-date Nodes for the task for use by the wrapping interface.
- Allow Scanners to pull the list of suffixes from the construction
environment when the "skeys" keyword argument is a string containing
a construction variable to be expanded.
- Support new $CPPSUFFIXES, $DSUFFIXES $FORTRANSUFFIXES, and
$IDLSUFFIXES. construction variables that contain the default list
of suffixes to be scanned by a given type of scanner, allowing these
suffix lists to be easily added to or overridden.
- Speed up Node creation when calling a Builder by comparing whether two
Environments are the same object, not if their underlying dictionaries
are equivalent.
- Add a --debug=explain option that reports the reason(s) why SCons
thinks it must rebuild something.
- Add support for functions that return platform-independent Actions
to Chmod(), Copy(), Delete(), Mkdir(), Move() and Touch() files
and/or directories. Like any other Actions, the returned Action
object may be executed directly using the Execute() global function
or env.Execute() environment method, or may be used as a Builder
action or in an env.Command() action list.
- Add support for the strfunction argument to all types of Actions:
CommandAction, ListAction, and CommandGeneratorAction.
- Speed up turning file system Nodes into strings by caching the
values after we're finished reading the SConscript files.
- Have ParseConfig() recognize and supporting adding the -Wa, -Wl,
and -Wp, flags to ASFLAGS, LINKFLAGS and CPPFLAGS, respectively.
- Change the .sconsign format and the checks for whether a Node is
up-to-date to make dependency checks more efficient and correct.
- Add wrapper Actions to SCons.Defaults for $ASCOM, $ASPPCOM, $LINKCOM,
$SHLINKCOM, $ARCOM, $LEXCOM and $YACCCOM. This makes it possible
to replace the default print behavior with a custom strfunction()
for each of these.
- When a Node has been built, don't walk the whole tree back to delete
the parents's implicit dependencies, let returning up the normal
Taskmaster descent take care of it for us.
- Add documented support for separate target_scanner and source_scanner
arguments to Builder creation, which allows different scanners to
be applied to source files
- Don't re-install or (re-generate) .h files when a subsidiary #included
.h file changes. This eliminates incorrect circular dependencies
with .h files generated from other source files.
- Slim down the internal Sig.Calculator class by eliminating methods
whose functionality is now covered by Node methods.
- Document use of the target_factory and source_factory keyword
arguments when creating Builder objects. Enhance Dir Nodes so that
they can be created with user-specified Builder objects.
- Don't blow up with stack trace when the external $PATH environment
variable isn't set.
- Make Builder calls return lists all the time, even if there's only
one target. This keeps things consistent and easier to program to
across platforms.
- Add a Flatten() function to make it easier to deal with the Builders
all returning lists of targets, not individual targets.
- Performance optimizations in Node.FS.__doLookup().
- Man page fixes: formatting typos, misspellings, bad example.
- User's Guide fixes: Fix the signatures of the various example
*Options() calls. Triple-quote properly a multi-line Split example.
- User's Guide additions: Chapter describing File and Directory
Nodes. Section describing declarative nature of SCons functions in
SConscript files. Better organization and clarification of points
raised by Robert P. J. Day. Chapter describing SConf (Autoconf-like)
functionality. Chapter describing how to install Python and
SCons. Chapter describing Java builds.
From Chris Murray:
- Add a .win32 attribute to force file names to expand with
Windows backslash path separators.
- Fix escaping file names on command lines when the expansion is
concatenated with another string.
- Add support for Fortran 90 and Fortran 95. This adds $FORTRAN*
variables that specify a default compiler, command-line, flags,
etc. for all Fortran versions, plus separate $F90* and $F95*
variables for when different compilers/flags/etc. must be specified
for different Fortran versions.
- Have individual tools that create libraries override the default
$LIBPREFIX and $LIBSUFFIX values set by the platform. This makes
it easier to use Microsoft Visual Studio tools on a CygWin platform.
From Gary Oberbrunner:
- Add a --debug=presub option to print actions prior to substitution.
- Add a warning upon use of the override keywords "targets" and
"sources" when calling Builders. These are usually mistakes which
are otherwise silently (and confusingly) turned into construction
variable overrides.
- Try to find the ICL license file path name in the external environment
and the registry before resorting to the hard-coded path name.
- Add support for fetching command-line keyword=value arguments in
order from an ARGLIST list.
- Avoid stack traces when trying to read dangling symlinks.
- Treat file "extensions" that only contain digits as part of the
file basename. This supports version numbers as part of shared
library names, for example.
- Avoid problems when there are null entries (None or '') in tool
lists or CPPPATH.
- Add an example and explanation of how to use "tools = ['default', ..."
when creating a construction environment.
- Add a section describing File and Directory Nodes and some of their
attributes and methods.
- Have ParseConfig() add a returned -pthread flag to both $CCFLAGS
and $LINKFLAGS.
- Fix some test portability issues on Mac OS X (darwin).
From Simon Perkins:
- Fix a bug introduced in building shared libraries under MinGW.
From Kevin Quick:
- Handling SCons exceptions according to Pythonic standards.
- Fix test/chained-build.py on systems that execute within one second.
- Fix tests on systems where 'ar' warns about archive creation.
From Anthony Roach:
- Fix use of the --implicit-cache option with timestamp signatures.
- If Visual Studio is installed, assume the C/C++ compiler, the linker
and the MIDL compiler that comes with it are available, too.
- Better error messages when evaluating a construction variable
expansion yields a Python syntax error.
- Change the generation of PDB files when using Visual Studio from
compile time to link time.
From sam th:
- Allow SConf.CheckLib() to search a list of libraries, like the
Autoconf AC_SEARCH_LIBS macro.
- Allow the env.WhereIs() method to take a "reject" argument to
let it weed out specific path names.
From Christoph Wiedemann:
- Add new Moc() and Uic() Builders for more explicit control over
Qt builds, plus new construction variables to control them:
$QT_AUTOSCAN, $QT_DEBUG, $QT_MOCCXXPREFIX, $QT_MOCCXXSUFFIX,
$QT_MOCHPREFIX, $QT_MOCHSUFFIX, $QT_UICDECLPREFIX, $QT_UICDECLSUFFIX,
$QT_UICIMPLPREFIX, $QT_UICIMPLSUFFIX and $QT_UISUFFIX.
- Add a new single_source keyword argument for Builders that enforces
a single source file on calls to the Builder.
RELEASE 0.95 - Mon, 08 Mar 2004 06:43:20 -0600
From Chad Austin:
- Replace print statements with calls to sys.stdout.write() so output
lines stay together when -j is used.
- Add portability fixes for a number of tests.
- Accomodate the fact that Cygwin's os.path.normcase() lies about
the underlying system being case-sensitive.
- Fix an incorrect _concat() call in the $RCINCFLAGS definition for
the mingw Tool.
- Fix a problem with the msvc tool with Python versions prior to 2.3.
- Add support for a "toolpath" Tool() and Environment keyword that
allows Tool modules to be found in specified local directories.
- Work around Cygwin Python's silly fiction that it's using a
case-sensitive file system.
- More robust handling of data in VCComponents.dat.
- If the "env" command is available, spawn commands with the more
general "env -" instead of "env -i".
From Kerim Borchaev:
- Fix a typo in a msvc.py's registry lookup: "VCComponents.dat", not
"VSComponents.dat".
From Chris Burghart:
- Fix the ability to save/restore a PackageOption to a file.
From Steve Christensen:
- Update the MSVS .NET and MSVC 6.0/7.0 path detection.
From David M. Cooke:
- Make the Fortran scanner case-insensitive for the INCLUDE string.
From Charles Crain:
- If no version of MSVC is detected but the tool is specified,
use the MSVC 6.0 paths by default.
- Ignore any "6.1" version of MSVC found in the registry; this is a
phony version number (created by later service packs?) and would
throw off the logic if the user had any non-default paths configure.
- Correctly detect if the user has independently configured the MSVC
"include," "lib" or "path" in the registry and use the appropriate
values. Previously, SCons would only use the values if all three
were set in the registry.
- Make sure side-effect nodes are prepare()d before building their
corresponding target.
- Preserve the ability to call BuildDir() multiple times with the
same target and source directory arguments.
From Andy Friesen:
- Add support for the Digital Mars "D" programming language.
From Scott Lystig Fritchie:
- Fix the ability to use a custom _concat() function in the
construction environment when calling _stripixes().
- Make the message about ignoring a missing SConscript file into a
suppressable Warning, not a hard-coded sys.stderr.write().
- If a builder can be called multiple times for a target (because
the sources and overrides are identical, or it's a builder with the
"multi" flag set), allow the builder to be called through multiple
environments so long as the builders have the same signature for
the environments in questions (that is, they're the same action).
From Bob Halley:
- When multiple targets are built by a single action, retrieve all
of them from cache, not just the first target, and exec the build
command if any of the targets isn't present in the cache.
From Zephaniah Hull:
- Fix command-line ARGUMENTS with multiple = in them.
From Steven Knight:
- Fix EnsureSConsVersion() so it checks against the SCons version,
not the Python version, on Pythons with sys.version_info.
- Don't swallow the AttributeError when someone uses an expansion like
$TARGET.bak, so we can supply a more informative error message.
- Fix an odd double-quote escape sequence in the man page.
- Fix looking up a naked drive letter as a directory (Dir('C:')).
- Support using File nodes in the LIBS construction variable.
- Allow the LIBS construction variable to be a single string or File
node, not a list, when only one library is needed.
- Fix typos in the man page: JAVACHDIR => JARCHDIR; add "for_signature"
to the __call__() example in the "Variable Substitution" section.
- Correct error message spellings of "non-existant" to "non-existent."
- When scanning for libraries to link with, don't append $LIBPREFIXES
or $LIBSUFFIXES values to the $LIBS values if they're already present.
- Add a ZIPCOMPRESSION construction variable to control whether the
internal Python action for the Zip Builder compresses the file or
not. The default value is zipfile.ZIP_DEFLATED, which generates
a compressed file.
- Refactor construction variable expansion to support recursive
expansion of variables (e.g. CCFLAGS = "$CCFLAGS -g") without going
into an infinite loop. Support this in all construction variable
overrides, as well as when copying Environments.
- Fix calling Configure() from more than one subsidiary SConscript file.
- Fix the env.Action() method so it returns the correct type of
Action for its argument(s).
- Fix specifying .class files as input to JavaH with the .class suffix
when they weren't generated using the Java Builder.
- Make the check for whether all of the objects going into a
SharedLibrary() are shared work even if the object was built in a
previous run.
- Supply meaningful error messages, not stack traces, if we try to add
a non-Node as a source, dependency, or ignored dependency of a Node.
- Generate MSVS Project files that re-invoke SCons properly regardless
of whether the file was built via scons.bat or scons.py.
(Thanks to Niall Douglas for contributing code and testing.)
- Fix TestCmd.py, runtest.py and specific tests to accomodate being
run from directories whose paths include white space.
- Provide a more useful error message if a construction variable
expansion contains a syntax error during evaluation.
- Fix transparent checkout of implicit dependency files from SCCS
and RCS.
- Added new --debug=count, --debug=memory and --debug=objects options.
--debug=count and --debug=objects only print anything when run
under Python 2.1 or later.
- Deprecate the "overrides" keyword argument to Builder() creation
in favor of using keyword argument values directly (like we do
for builder execution and the like).
- Always use the Builder overrides in substitutions, not just if
there isn't a target-specific environment.
- Add new "rsrcpath" and "rsrcdir" and attributes to $TARGET/$SOURCE,
so Builder command lines can find things in Repository source
directories when using BuildDir.
- Fix the M4 Builder so that it chdirs to the Repository directory
when the input file is in the source directory of a BuildDir.
- Save memory at build time by allowing Nodes to delete their build
environments after they've been built.
- Add AppendUnique() and PrependUnique() Environment methods, which
add values to construction variables like Append() and Prepend()
do, but suppress any duplicate elements in the list.
- Allow the 'qt' tool to still be used successfully from a copied
Environment. The include and library directories previously ended up
having the same string re-appended to the end, yielding an incorrect
path name.
- Supply a more descriptive error message when the source for a target
can't be found.
- Initialize all *FLAGS variables with objects do the right thing with
appending flags as strings or lists.
- Make things like ${TARGET.dir} work in *PATH construction variables.
- Allow a $MSVS_USE_MFC_DIRS construction variable to control whether
ATL and MFC directories are included in the default INCLUDE and
LIB paths.
- Document the dbm_module argument to the SConsignFile() function.
From Vincent Risi:
- Add support for the bcc32, ilink32 and tlib Borland tools.
From Anthony Roach:
- Supply an error message if the user tries to configure a BuildDir
for a directory that already has one.
- Remove documentation of the still-unimplemented -e option.
- Add -H help text listing the legal --debug values.
- Don't choke if a construction variable is a non-string value.
- Build Type Libraries in the target directory, not the source
directory.
- Add an appendix to the User's Guide showing how to accomplish
various common tasks in Python.
From Greg Spencer:
- Add support for Microsoft Visual Studio 2003 (version 7.1).
- Evaluate $MSVSPROJECTSUFFIX and $MSVSSOLUTIONSUFFIX when the Builder
is invoked, not when the tool is initialized.
From Christoph Wiedemann:
- When compiling Qt, make sure the moc_*.cc files are compiled using
the flags from the environment used to specify the target, not
the environment that first has the Qt Builders attached.
RELEASE 0.94 - Fri, 07 Nov 2003 05:29:48 -0600
From Hartmut Goebel:
- Add several new types of canned functions to help create options:
BoolOption(), EnumOption(), ListOption(), PackageOption(),
PathOption().
From Steven Knight:
- Fix use of CPPDEFINES with C++ source files.
- Fix env.Append() when the operand is an object with a __cmp__()
method (like a Scanner instance).
- Fix subclassing the Environment and Scanner classes.
- Add BUILD_TARGETS, COMMAND_LINE_TARGETS and DEFAULT_TARGETS variables.
From Steve Leblanc:
- SGI fixes: Fix C++ compilation, add a separate Tool/sgic++.py module.
From Gary Oberbrunner:
- Fix how the man page un-indents after examples in some browsers.
From Vincent Risi:
- Fix the C and C++ tool specifications for AIX.
RELEASE 0.93 - Thu, 23 Oct 2003 07:26:55 -0500
From J.T. Conklin:
- On POSIX, execute commands with the more modern os.spawnvpe()
function, if it's available.
- Scan .S, .spp and .SPP files for C preprocessor dependencies.
- Refactor the Job.Parallel() class to use a thread pool without a
condition variable. This improves parallel build performance and
handles keyboard interrupts properly when -j is used.
From Charles Crain:
- Add support for a JARCHDIR variable to control changing to a
directory using the jar -C option.
- Add support for detecting Java manifest files when using jar,
and specifying them using the jar m flag.
- Fix some Python 2.2 specific things in various tool modules.
- Support directories as build sources, so that a rebuild of a target
can be triggered if anything underneath the directory changes.
- Have the scons.bat and scons.py files look for the SCons modules
in site-packages as well.
From Christian Engel:
- Support more flexible inclusion of separate C and C++ compilers.
- Use package management tools on AIX and Solaris to find where
the comilers are installed, and what version they are.
- Add support for CCVERSION and CXXVERSION variables for a number
of C and C++ compilers.
From Sergey Fogel:
- Add test cases for the new capabilities to run bibtex and to rerun
latex as needed.
From Ralf W. Grosse-Kunstleve:
- Accomodate anydbm modules that don't have a sync() method.
- Allow SConsignFile() to take an argument specifying the DBM
module to be used.
From Stephen Kennedy:
- Add support for a configurable global .sconsign.dbm file which
can be used to avoid cluttering each directory with an individual
.sconsign file.
From John Johnson:
- Fix (re-)scanning of dependencies in generated or installed
header files.
From Steven Knight:
- The -Q option suppressed too many messages; fix it so that it only
suppresses the Reading/Building messages.
- Support #include when there's no space before the opening quote
or angle bracket.
- Accomodate alphanumeric version strings in EnsurePythonVersion().
- Support arbitrary expansion of construction variables within
file and directory arguments to Builder calls and Environment methods.
- Add Environment-method versions of the following global functions:
Action(), AddPostAction(), AddPreAction(), Alias(), Builder(),
BuildDir(), CacheDir(), Clean(), Configure(), Default(),
EnsurePythonVersion(), EnsureSConsVersion(), Environment(),
Exit(), Export(), FindFile(), GetBuildPath(), GetOption(), Help(),
Import(), Literal(), Local(), Platform(), Repository(), Scanner(),
SConscriptChdir(), SConsignFile(), SetOption(), SourceSignatures(),
Split(), TargetSignatures(), Tool(), Value().
- Add the following global functions that correspond to the same-named
Environment methods: AlwaysBuild(), Command(), Depends(), Ignore(),
Install(), InstallAs(), Precious(), SideEffect() and SourceCode().
- Add the following global functions that correspond to the default
Builder methods supported by SCons: CFile(), CXXFile(), DVI(), Jar(),
Java(), JavaH(), Library(), M4(), MSVSProject(), Object(), PCH(),
PDF(), PostScript(), Program(), RES(), RMIC(), SharedLibrary(),
SharedObject(), StaticLibrary(), StaticObject(), Tar(), TypeLibrary()
and Zip().
- Rearrange the man page to show construction environment methods and
global functions in the same list, and to explain the difference.
- Alphabetize the explanations of the builder methods in the man page.
- Rename the Environment.Environment class to Enviroment.Base.
Allow the wrapping interface to extend an Environment by using its own
subclass of Environment.Base and setting a new Environment.Environment
variable as the calling entry point.
- Deprecate the ParseConfig() global function in favor of a same-named
construction environment method.
- Allow the Environment.WhereIs() method to take explicit path and
pathext arguments (like the underlying SCons.Util.WhereIs() function).
- Remove the long-obsolete {Get,Set}CommandHandler() functions.
- Enhance env.Append() to suppress null values when appropriate.
- Fix ParseConfig() so it works regardless of initial construction
variable values.
Extend CheckHeader(), CheckCHeader(), CheckCXXHeader() and
CheckLibWithHeader() to accept a list of header files that will be
#included in the test. The last one in the list is assumed to be
the one being checked for. (Prototype code contributed by Gerard
Patel and Niall Douglas).
- Supply a warning when -j is used and threading isn't built in to
the current version of Python.
- First release of the User's Guide (finally, and despite a lot
of things still missing from it...).
From Clark McGrew:
- Generalize the action for .tex files so that it will decide whether
a file is TeX or LaTeX, check the .aux output to decide if it should
run bibtex, and check the .log output to re-run LaTeX if needed.
From Bram Moolenaar:
- Split the non-SCons-specific functionality from SConf.py to a new,
re-usable Conftest.py module.
From Gary Oberbrunner:
- Allow a directory to be the target or source or dependency of a
Depends(), Ignore(), Precious() or SideEffect() call.
From Gerard Patel:
- Use the %{_mandir} macro when building our RPM package.
From Marko Rauhamaa:
- Have the closing message say "...terminated because of errors" if
there were any.
From Anthony Roach:
- On Win32 systems, only use "rm" to delete files if Cygwin is being
used. ("rm" doesn't understand Win32-format path names.)
From Christoph Wiedemann:
- Fix test/SWIG.py to find the Python include directory in all cases.
- Fix a bug in detection of Qt installed on the local system.
- Support returning Python 2.3 BooleanType values from Configure checks.
- Provide an error message if someone mistakenly tries to call a
Configure check from within a Builder function.
- Support calling a Builder when a Configure context is still open.
- Handle interrupts better by eliminating all try:-except: blocks
which caught any and all exceptions, including KeyboardInterrupt.
- Add a --duplicate= option to control how files are duplicated.
RELEASE 0.92 - Wed, 20 Aug 2003 03:45:28 -0500
From Charles Crain and Gary Oberbrunner:
- Fix Tool import problems with the Intel and PharLap linkers.
From Steven Knight
- Refactor the DictCmdGenerator class to be a Selector subclass.
- Allow the DefaultEnvironment() function to take arguments and pass
them to instantiation of the default construction environment.
- Update the Debian package so it uses Python 2.2 and more closely
resembles the currently official Debian packaging info.
From Gerard Patel
- When the yacc -d flag is used, take the .h file base name from the
target .c file, not the source (matching what yacc does).
RELEASE 0.91 - Thu, 14 Aug 2003 13:00:44 -0500
From Chad Austin:
- Support specifying a list of tools when calling Environment.Copy().
- Give a Value Nodes a timestamp of the system time when they're
created, so they'll work when using timestamp-based signatures.
- Add a DefaultEnvironment() function that only creates a default
environment on-demand (for fetching source files, e.g.).
- Portability fix for test/M4.py.
From Steven Knight:
- Tighten up the scons -H help output.
- When the input yacc file ends in .yy and the -d flag is specified,
recognize that a .hpp file (not a .h file) will be created.
- Make builder prefixes work correctly when deducing a target
from a source file name in another directory.
- Documentation fixes: typo in the man page; explain up-front about
not propagating the external environment.
- Use "cvs co -d" instead of "cvs co -p >" when checking out something
from CVS with a specified module name. This avoids zero-length
files when there is a checkout error.
- Add an "sconsign" script to print the contents of .sconsign files.
- Speed up maintaining the various lists of Node children by using
dictionaries to avoid "x in list" searches.
- Cache the computed list of Node children minus those being Ignored
so it's only calculated once.
- Fix use of the --cache-show option when building a Program()
(or using any other arbitrary action) by making sure all Action
instances have strfunction() methods.
- Allow the source of Command() to be a directory.
- Better error handling of things like raw TypeErrors in SConscripts.
- When installing using "setup.py install --prefix=", suppress the
distutils warning message about adding the (incorrect) library
directory to your search path.
- Correct the spelling of the "validater" option to "validator."
Add a DeprecatedWarning when the old spelling is used.
- Allow a Builder's emitter to be a dictionary that maps source file
suffixes to emitter functions, using the suffix of the first file
in the source list to pick the right one.
- Refactor the creation of the Program, *Object and *Library Builders
so that they're moved out of SCons.Defaults and created on demand.
- Don't split SConscript file names on white space.
- Document the SConscript function's "dirs" and "name" keywords.
- Remove the internal (and superfluous) SCons.Util.argmunge() function.
- Add /TP to the default CXXFLAGS for msvc, so it can compile all
of the suffixes we use as C++ files.
- Allow the "prefix" and "suffix" attributes of a Builder to be
callable objects that return generated strings, or dictionaries
that map a source file suffix to the right prefix/suffix.
- Support a MAXLINELINELENGTH construction variable on Win32 systems
to control when a temporary file is used for long command lines.
- Make how we build .rpm packages not depend on the installation
locations from the distutils being used.
- When deducing a target Node, create it directly from the first
source Node, not by trying to create the right string to pass to
arg2nodes().
- Add support for SWIG.
From Bram Moolenaar:
- Test portability fixes for FreeBSD.
From Gary Oberbrunner:
- Report the target being built in error messages when building
multiple sources from different extensions, or when the target file
extension can't be deduced, or when we don't have an action for a
file suffix.
- Provide helpful error messages when the arguments to env.Install()
are incorrect.
- Fix the value returned by the Node.prevsiginfo() method to conform
to a previous change when checking whether a node is current.
- Supply a stack trace if the Taskmaster catches an exception.
- When using a temporary file for a long link line on Win32 systems,
(also) print the command line that is being executed through the
temporary file.
- Initialize the LIB environment variable when using the Intel
compiler (icl).
- Documentation fixes: better explain the AlwaysBuild() function.
From Laurent Pelecq:
- When the -debug=pdb option is specified, use pdb.Pdb().runcall() to
call pdb directly, don't call Python recursively.
From Ben Scott:
- Add support for a platform-independent CPPDEFINES variable.
From Christoph Wiedemann:
- Have the g++ Tool actually use g++ in preference to c++.
- Have the gcc Tool actually use gcc in preference to cc.
- Add a gnutools.py test of the GNU tool chain.
- Be smarter about linking: use $CC by default and $CXX only if we're
linking with any C++ objects.
- Avoid SCons hanging when a piped command has a lot of output to read.
- Add QT support for preprocessing .ui files into .c files.
RELEASE 0.90 - Wed, 25 Jun 2003 14:24:52 -0500
From Chad Austin:
- Fix the _concat() documentation, and add a test for it.
- Portability fixes for non-GNU versions of lex and yacc.
From Matt Balvin:
- Fix handling of library prefixes when the subdirectory matches
the prefix.
From Timothee Bessett:
- Add an M4 Builder.
From Charles Crain:
- Use '.lnk' as the suffix on the temporary file for linking long
command lines (necessary for the Phar Lap linkloc linker).
- Save non-string Options values as their actual type.
- Save Options string values that contain a single quote correctly.
- Save any Options values that are changed from the default
Environment values, not just ones changed on the command line or in
an Options file.
- Make closing the Options file descriptor exception-safe.
From Steven Knight:
- SCons now enforces (with an error) that construction variables
must have the same form as valid Python identifiers.
- Fix man page bugs: remove duplicate AddPostAction() description;
document no_import_lib; mention that CPPFLAGS does not contain
$_CPPINCFLAGS; mention that F77FLAGS does not contain $_F77INCFLAGS;
mention that LINKFLAGS and SHLINKFLAGS contains neither $_LIBFLAGS
nor $_LIBDIRFLAGS.
- Eliminate a dependency on the distutils.fancy_getopt module by
copying and pasting its wrap_text() function directly.
- Make the Script.Options() subclass match the underlying base class
implementation.
- When reporting a target is up to date, quote the target like make
(backquote-quote) instead of with double quotes.
- Fix handling of ../* targets when using -U, -D or -u.
From Steve Leblanc:
- Don't update the .sconsign files when run with -n.
From Gary Oberbrunner:
- Add support for the Intel C Compiler (icl.exe).
From Anthony Roach
- Fix Import('*').
From David Snopek
- Fix use of SConf in paths with white space in them.
- Add CheckFunc and CheckType functionality to SConf.
- Fix use of SConf with Builders that return a list of nodes.
From David Snopek and Christoph Wiedemann
- Fix use of the SConf subsystem with SConscriptChdir().
From Greg Spencer
- Check for the existence of MS Visual Studio on disk before using it,
to avoid getting fooled by leftover junk in the registry.
- Add support for MSVC++ .NET.
- Add support for MS Visual Studio project files (DSP, DSW,
SLN and VCPROJ files).
From Christoph Wiedemann
- SConf now works correctly when the -n and -q options are used.
RELEASE 0.14 - Wed, 21 May 2003 05:16:32 -0500
From Chad Austin:
- Use .dll (not .so) for shared libraries on Cygwin; use -fPIC
when compiling them.
- Use 'rm' to remove files under Cygwin.
- Add a PLATFORM variable to construction environments.
- Remove the "platform" argument from tool specifications.
- Propogate PYTHONPATH when running the regression tests so distutils
can be found in non-standard locations.
- Using MSVC long command-line linking when running Cygwin.
- Portability fixes for a lot of tests.
- Add a Value Node class for dependencies on in-core Python values.
From Allen Bierbaum:
- Pass an Environment to the Options validator method, and
add an Options.Save() method.
From Steve Christensen:
- Add an optional sort function argument to the GenerateHelpText()
Options function.
- Evaluate the "varlist" variables when computing the signature of a
function action.
From Charles Crain:
- Parse the source .java files for class names (including inner class
names) to figure out the target .class files that will be created.
- Make Java support work with Repositories and SConscriptChdir(0).
- Pass Nodes, not strings, to Builder emitter functions.
- Refactor command-line interpolation and signature calculation
so we can use real Node attributes.
From Steven Knight:
- Add Java support (javac, javah, jar and rmic).
- Propagate the external SYSTEMROOT environment variable into ENV on
Win32 systems, so external commands that use sockets will work.
- Add a .posix attribute to PathList expansions.
- Check out CVS source files using POSIX path names (forward slashes
as separators) even on Win32.
- Add Node.clear() and Node.FS.Entry.clear() methods to wipe out a
Node's state, allowing it to be re-evaluated by continuous
integration build interfaces.
- Change the name of the Set{Build,Content}SignatureType() functions
to {Target,Source}Signatures(). Deprecate the old names but support
them for backwards compatibility.
- Add internal SCons.Node.FS.{Dir,File}.Entry() methods.
- Interpolate the null string if an out-of-range subscript is used
for a construction variable.
- Fix the internal Link function so that it properly links or copies
files in subsidiary BuildDir directories.
- Refactor the internal representation of a single execution instance
of an action to eliminate redundant signature calculations.
- Eliminate redundant signature calculations for Nodes.
- Optimize out calling hasattr() before accessing attributes.
- Say "Cleaning targets" (not "Building...") when the -c option is
used.
From Damyan Pepper:
- Quote the "Entering directory" message like Make.
From Stefan Reichor:
- Add support for using Ghostscript to convert Postscript to PDF files.
From Anthony Roach:
- Add a standalone "Alias" function (separate from an Environment).
- Make Export() work for local variables.
- Support passing a dictionary to Export().
- Support Import('*') to import everything that's been Export()ed.
- Fix an undefined exitvalmap on Win32 systems.
- Support new SetOption() and GetOption() functions for setting
various command-line options from with an SConscript file.
- Deprecate the old SetJobs() and GetJobs() functions in favor of
using the new generic {Set,Get}Option() functions.
- Fix a number of tests that searched for a Fortran compiler using the
external PATH instead of what SCons would use.
- Fix the interaction of SideEffect() and BuildDir() so that (for
example) PDB files get put correctly in a BuildDir().
From David Snopek:
- Contribute the "Autoscons" code for Autoconf-like checking for
the existence of libraries, header files and the like.
- Have the Tool() function add the tool name to the $TOOLS
construction variable.
From Greg Spencer:
- Support the C preprocessor #import statement.
- Allow the SharedLibrary() Builder on Win32 systems to be able to
register a newly-built dll using regsvr32.
- Add a Builder for Windows type library (.tlb) files from IDL files.
- Add an IDL scanner.
- Refactor the Fortran, C and IDL scanners to share common logic.
- Add .srcpath and .srcdir attributes to $TARGET and $SOURCE.
From Christoph Wiedemann:
- Integrate David Snopek's "Autoscons" code as the new SConf
configuration subsystem, including caching of values between
runs (using normal SCons dependency mechanisms), tests, and
documentation.
RELEASE 0.13 - Mon, 31 Mar 2003 20:22:00 -0600
From Charles Crain:
- Fix a bug when BuildDir(duplicate=0) is used and SConscript
files are called from within other SConscript files.
- Support (older) versions of Perforce which don't set the Windows
registry.
RELEASE 0.12 - Thu, 27 Mar 2003 23:52:09 -0600
From Charles Crain:
- Added support for the Perforce source code management system.
- Fix str(Node.FS) so that it returns a path relative to the calling
SConscript file's directory, not the top-level directory.
- Added support for a separate src_dir argument to SConscript()
that allows explicit specification of where the source files
for an SConscript file can be found.
- Support more easily re-usable flavors of command generators by
calling callable variables when strings are expanded.
From Steven Knight:
- Added an INSTALL construction variable that can be set to a function
to control how the Install() and InstallAs() Builders install files.
The default INSTALL function now copies, not links, files.
- Remove deprecated features: the "name" argument to Builder objects,
and the Environment.Update() method.
- Add an Environment.SourceCode() method to support fetching files
from source code systems. Add factory methods that create Builders
to support BitKeeper, CVS, RCS, and SCCS. Add support for fetching
files from RCS or SCCS transparently (like GNU Make).
- Make the internal to_String() function more efficient.
- Make the error message the same as other build errors when there's a
problem unlinking a target file in preparation for it being built.
- Make TARGET, TARGETS, SOURCE and SOURCES reserved variable names and
warn if the user tries to set them in a construction environment.
- Add support for Tar and Zip files.
- Better documentation of the different ways to export variables to a
subsidiary SConscript file. Fix documentation bugs in a tools
example, places that still assumed SCons split strings on white
space, and typos.
- Support fetching arbitrary files from the TARGETS or SOURCES lists
(e.g. ${SOURCES[2]}) when calculating the build signature of a
command.
- Don't silently swallow exceptions thrown by Scanners (or other
exceptions while finding a node's dependent children).
- Push files to CacheDir() before calling the superclass built()
method (which may clear the build signature as part of clearing
cached implicit dependencies, if the file has a source scanner).
(Bug reported by Jeff Petkau.)
- Raise an internal error if we attempt to push a file to CacheDir()
with a build signature of None.
- Add an explicit Exit() function for terminating early.
- Change the documentation to correctly describe that the -f option
doesn't change to the directory in which the specified file lives.
- Support changing directories locally with SConscript directory
path names relative to any SConstruct file specified with -f.
This allows you to build in another directory by simply changing
there and pointing at the SConstruct file in another directory.
- Change the default SConscriptChdir() behavior to change to the
SConscript directory while it's being read.
- Fix an exception thrown when the -U option was used with no
Default() target specified.
- Fix -u so that it builds things in corresponding build directories
when used in a source directory.
From Lachlan O'Dea:
- Add SharedObject() support to the masm tool.
- Fix WhereIs() to return normalized paths.
From Jeff Petkau:
- Don't copy a built file to a CacheDir() if it's already there.
- Avoid partial copies of built files in a CacheDir() by copying
to a temporary file and renaming.
From Anthony Roach:
- Fix incorrect dependency-cycle errors when an Aliased source doesn't
exist.
RELEASE 0.11 - Tue, 11 Feb 2003 05:24:33 -0600
From Chad Austin:
- Add support for IRIX and the SGI MIPSPro tool chain.
- Support using the MSVC tool chain when running Cygwin Python.
From Michael Cook:
- Avoid losing signal bits in the exit status from a command,
helping terminate builds on interrupt (CTRL+C).
From Charles Crain:
- Added new AddPreAction() and AddPostAction() functions that support
taking additional actions before or after building specific targets.
- Add support for the PharLap ETS tool chain.
From Steven Knight:
- Allow Python function Actions to specify a list of construction
variables that should be included in the Action's signature.
- Allow libraries in the LIBS variable to explicitly include the prefix
and suffix, even when using the GNU linker.
(Bug reported by Neal Becker.)
- Use DOS-standard CR-LF line endings in the scons.bat file.
(Bug reported by Gary Ruben.)
- Doc changes: Eliminate description of deprecated "name" keyword
argument from Builder definition (reported by Gary Ruben).
- Support using env.Append() on BUILDERS (and other dictionaries).
(Bug reported by Bj=F6rn Bylander.)
- Setting the BUILDERS construction variable now properly clears
the previous Builder attributes from the construction Environment.
(Bug reported by Bj=F6rn Bylander.)
- Fix adding a prefix to a file when the target isn't specified.
(Bug reported by Esa Ilari Vuokko.)
- Clean up error messages from problems duplicating into read-only
BuildDir directories or into read-only files.
- Add a CommandAction.strfunction() method, and add an "env" argument
to the FunctionAction.strfunction() method, so that all Action
objects have strfunction() methods, and the functions for building
and returning a string both take the same arguments.
- Add support for new CacheDir() functionality to share derived files
between builds, with related options --cache-disable, --cache-force,
and --cache-show.
- Change the default behavior when no targets are specified to build
everything in the current directory and below (like Make). This
can be disabled by specifying Default(None) in an SConscript.
- Revamp SCons installation to fix a case-sensitive installation
on Win32 systems, and to add SCons-specific --standard-lib,
--standalone-lib, and --version-lib options for easier user
control of where the libraries get installed.
- Fix the ability to directly import and use Platform and Tool modules
that have been implicitly imported into an Environment().
- Add support for allowing an embedding interface to annotate a node
when it's created.
- Extend the SConscript() function to accept build_dir and duplicate
keyword arguments that function like a BuildDir() call.
From Steve Leblanc:
- Fix the output of -c -n when directories are involved, so it
matches -c.
From Anthony Roach:
- Use a different shared object suffix (.os) when using gcc so shared
and static objects can exist side-by-side in the same directory.
- Allow the same object files on Win32 to be linked into either
shared or static libraries.
- Cache implicit cache values when using --implicit-cache.
RELEASE 0.10 - Thu, 16 Jan 2003 04:11:46 -0600
From Derrick 'dman' Hudson:
- Support Repositories on other file systems by symlinking or
copying files when hard linking won't work.
From Steven Knight:
- Remove Python bytecode (*.pyc) files from the scons-local packages.
- Have FunctionActions print a description of what they're doing
(a representation of the Python call).
- Fix the Install() method so that, like other actions, it prints
what would have happened when the -n option is used.
- Don't create duplicate source files in a BuildDir when the -n
option is used.
- Refactor the Scanner interface to eliminate unnecessary Scanner
calls and make it easier to write efficient scanners.
- Added a "recursive" flag to Scanner creation that specifies the
Scanner should be invoked recursively on dependency files returned
by the scanner.
- Significant performance improvement from using a more efficient
check, throughout the code, for whether a Node has a Builder.
- Fix specifying only the source file to MultiStepBuilders such as
the Program Builder. (Bug reported by Dean Bair.)
- Fix an exception when building from a file with the same basename as
the subdirectory in which it lives. (Bug reported by Gerard Patel.)
- Fix automatic deduction of a target file name when there are
multiple source files specified; the target is now deduced from just
the first source file in the list.
- Documentation fixes: better initial explanation of SConscript files;
fix a misformatted "table" in the StaticObject explanation.
From Steven Knight and Steve Leblanc:
- Fix the -c option so it will remove symlinks.
From Steve Leblanc:
- Add a Clean() method to support removing user-specified targets
when using the -c option.
- Add a development script for running SCons through PyChecker.
- Clean up things found by PyChecker (mostly unnecessary imports).
- Add a script to use HappyDoc to create HTML class documentation.
From Lachlan O'Dea:
- Make the Environment.get() method return None by default.
From Anthony Roach:
- Add SetJobs() and GetJobs() methods to allow configuration of the
number of default jobs (still overridden by -j).
- Convert the .sconsign file format from ASCII to a pickled Python
data structure.
- Error message cleanups: Made consistent the format of error
messages (now all start with "scons: ***") and warning messages (now
all start with "scons: warning:"). Caught more cases with the "Do
not know how to build" error message.
- Added support for the MinGW tool chain.
- Added a --debug=includes option.
RELEASE 0.09 - Thu, 5 Dec 2002 04:48:25 -0600
From Chad Austin:
- Add a Prepend() method to Environments, to append values to
the beginning of construction variables.
From Matt Balvin:
- Add long command-line support to the "lib" Tool (Microsoft library
archiver), too.
From Charles Crain:
- Allow $$ in a string to be passed through as $.
- Support file names with odd characters in them.
- Add support for construction variable substition on scanner
directories (in CPPPATH, F77PATH, LIBPATH, etc.).
From Charles Crain and Steven Knight:
- Add Repository() functionality, including the -Y option.
From Steven Knight:
- Fix auto-deduction of target names so that deduced targets end
up in the same subdirectory as the source.
- Don't remove source files specified on the command line!
- Suport the Intel Fortran Compiler (ifl.exe).
- Supply an error message if there are no command-line or
Default() targets specified.
- Fix the ASPPCOM values for the GNU assembler.
(Bug reported by Brett Polivka.)
- Fix an exception thrown when a Default() directory was specified
when using the -U option.
- Issue a warning when -c can't remove a target.
- Eliminate unnecessary Scanner calls by checking for the
existence of a file before scanning it. (This adds a generic
hook to check an arbitrary condition before scanning.)
- Add explicit messages to tell when we're "Reading SConscript files
...," "done reading SConscript files," "Building targets," and
"done building targets." Add a -Q option to supress these.
- Add separate $SHOBJPREFIX and $SHOBJSUFFIX construction variables
(by default, the same as $OBJPREFIX and $OBJSUFFIX).
- Add Make-like error messages when asked to build a source file,
and before trying to build a file that doesn't have all its source
files (including when an invalid drive letter is used on WIN32).
- Add an scons-local-{version} package (in both .tar.gz and .zip
flavors) to help people who want to ship SCons as a stand-alone
build tool in their software packages.
- Prevent SCons from unlinking files in certain situations when
the -n option is used.
- Change the name of Tool/lib.py to Tool/mslib.py.
From Steven Knight and Anthony Roach:
- Man page: document the fact that Builder calls return Node objects.
From Steve LeBlanc:
- Refactor option processing to use our own version of Greg Ward's
Optik module, modified to run under Python 1.5.2.
- Add a ParseConfig() command to modify an environment based on
parsing output from a *-config command.
From Jeff Petkau:
- Fix interpretation of '#/../foo' on Win32 systems.
From Anthony Roach:
- Fixed use of command lines with spaces in their arguments,
and use of Nodes with spaces in their string representation.
- Make access and modification times of files in a BuildDir match
the source file, even when hard linking isn't available.
- Make -U be case insensitive on Win32 systems.
- Issue a warning and continue when finding a corrupt .sconsign file.
- Fix using an alias as a dependency of a target so that if one of the
alias' dependencies gets rebuilt, the resulting target will, too.
- Fix differently ordered targets causing unnecessary rebuilds
on case insensitive systems.
- Use os.system() to execute external commands whenever the "env"
utility is available, which is much faster than fork()/exec(),
and fixes the -j option on several platforms.
- Fix use of -j with multiple targets.
- Add an Options() object for friendlier accomodation of command-
line arguments.
- Add support for Microsoft VC++ precompiled header (.pch) files,
debugger (.pdb) files, and resource (.rc) files.
- Don't compute the $_CPPINCFLAGS, $_F77INCFLAGS, $_LIBFLAGS and
$_LIBDIRFLAGS variables each time a command is executed, define
them so they're computed only as needed. Add a new _concat
function to the Environment that allows people to define their
own similar variables.
- Fix dependency scans when $LIBS is overridden.
- Add EnsurePythonVersion() and EnsureSConsVersion() functions.
- Fix the overly-verbose stack trace on ListBuilder build errors.
- Add a SetContentSignatureType() function, allowing use of file
timestamps instead of MD5 signatures.
- Make -U and Default('source') fail gracefully.
- Allow the File() and Dir() methods to take a path-name string as
the starting directory, in addition to a Dir object.
- Allow the command handler to be selected via the SPAWN, SHELL
and ESCAPE construction variables.
- Allow construction variables to be overridden when a Builder
is called.
From sam th:
- Dynamically check for the existence of utilities with which to
initialize Environments by default.
RELEASE 0.08 - Mon, 15 Jul 2002 12:08:51 -0500
From Charles Crain:
- Fixed a bug with relative CPPPATH dirs when using BuildDir().
(Bug reported by Bob Summerwill.)
- Added a warnings framework and a --warn option to enable or
disable warnings.
- Make the C scanner warn users if files referenced by #include
directives cannot be found and --warn=dependency is specified.
- The BUILDERS construction variable should now be a dictionary
that maps builder names to actions. Existing uses of lists,
and the Builder name= keyword argument, generate warnings
about use of deprecated features.
- Removed the "shared" keyword argument from the Object and
Library builders.
- Added separated StaticObject, SharedObject, StaticLibrary and
SharedLibrary builders. Made Object and Library synonyms for
StaticObject and StaticLibrary, respectively.
- Add LIBS and LIBPATH dependencies for shared libraries.
- Removed support for the prefix, suffix and src_suffix arguments
to Builder() to be callable functions.
- Fix handling file names with multiple dots.
- Allow a build directory to be outside of the SConstruct tree.
- Add a FindFile() function that searches for a file node with a
specified name.
- Add $CPPFLAGS to the shared-object command lines for g++ and gcc.
From Charles Crain and Steven Knight:
- Add a "tools=" keyword argument to Environment instantiation,
and a separate Tools() method, for more flexible specification
of tool-specific environment changes.
From Steven Knight:
- Add a "platform=" keyword argument to Environment instantiation,
and a separate Platform() method, for more flexible specification
of platform-specific environment changes.
- Updated README instructions and setup.py code to catch an
installation failure from not having distutils installed.
- Add descriptions to the -H help text for -D, -u and -U so
people can tell them apart.
- Remove the old feature of automatically splitting strings
of file names on white space.
- Add a dependency Scanner for native Fortran "include" statements,
using a new "F77PATH" construction variable.
- Fix C #include scanning to detect file names with characters like
'-' in them.
- Add more specific version / build output to the -v option.
- Add support for the GNU as, Microsoft masm, and nasm assemblers.
- Allow the "target" argument to a Builder call to be omitted, in
which case the target(s) are deduced from the source file(s) and the
Builder's specified suffix.
- Add a tar archive builder.
- Add preliminary support for the OS/2 Platform, including the icc
and ilink Tools.
From Jeff Petkau:
- Fix --implicit-cache if the scanner returns an empty list.
From Anthony Roach:
- Add a "multi" keyword argument to Builder creation that specifies
it's okay to call the builder multiple times for a target.
- Set a "multi" on Aliases so multiple calls will append to an Alias.
- Fix emitter functions' use of path names when using BuildDir or
in subdirectories.
- Fix --implicit-cache causing redundant rebuilds when the header
file list changed.
- Fix --implicit-cache when a file has no implicit dependencies and
its source is generated.
- Make the drive letters on Windows always be the same case, so that
changes in the case of drive letters don't cause a rebuild.
- Fall back to importing the SCons.TimeStamp module if the SCons.MD5
module can't be imported.
- Fix interrupt handling to guarantee that a single interrupt will
halt SCons both when using -j and not.
- Fix .sconsign signature storage so that output files of one build
can be safely used as input files to another build.
- Added a --debug=time option to print SCons execution times.
- Print an error message if a file can't be unlinked before being
built, rather than just silently terminating the build.
- Add a SideEffect() method that can be used to tell the build
engine that a given file is created as a side effect of building
a target. A file can be specified as a side effect of more than
one build comand, in which case the commands will not be executed
simultaneously.
- Significant performance gains from not using our own version of
the inefficient stock os.path.splitext() method, caching source
suffix computation, code cleanup in MultiStepBuilder.__call__(),
and replicating some logic in scons_subst().
- Add --implicit-deps-changed and --implicit-deps-unchanged options.
- Add a GetLaunchDir() function.
- Add a SetBuildSignatureType() function.
From Zed Shaw:
- Add an Append() method to Environments, to append values to
construction variables.
- Change the name of Update() to Replace(). Keep Update() as a
deprecated synonym, at least for now.
From Terrel Shumway:
- Use a $PYTHON construction variable, initialized to sys.executable,
when using Python to build parts of the SCons packages.
- Use sys.prefix, not sys.exec_prefix, to find pdb.py.
RELEASE 0.07 - Thu, 2 May 2002 13:37:16 -0500
From Chad Austin:
- Changes to build SCons packages on IRIX (and other *NIces).
- Don't create a directory Node when a file already exists there,
and vice versa.
- Add 'dirs' and 'names' keyword arguments to SConscript for
easier specification of subsidiary SConscript files.
From Charles Crain:
- Internal cleanup of environment passing to function Actions.
- Builders can now take arbitrary keyword arguments to create
attributes to be passed to: command generator functions,
FunctionAction functions, Builder emitter functions (below),
and prefix/suffix generator functions (below).
- Command generator functions can now return ANYTHING that can be
converted into an Action (a function, a string, a CommandGenerator
instance, even an ActionBase instance).
- Actions now call get_contents() with the actual target and source
nodes used for the build.
- A new DictCmdGenerator class replaces CompositeBuilder to support
more flexible Builder behavior internally.
- Builders can now take an emitter= keyword argument. An emitter
is a function that takes target, source, and env argument, then
return a 2-tuple of (new sources, new targets). The emitter is
called when the Builder is __call__'ed, allowing a user to modify
source and target lists.
- The prefix, suffix and src_suffix Builder arguments now take a
callable as well a string. The callable is passed the Environment
and any extra Builder keyword arguments and is expected to return
the appropriate prefix or suffix.
- CommandActions can now be a string, a list of command + argument
strings, or a list of commands (strings or lists).
- Added shared library support. The Object and Library Builders now
take a "shared=1" keyword argument to specify that a shared object
or shared library should be built. It is an error to try to build
static objects into a shared library or vice versa.
- Win32 support for .def files has been added. Added the Win32-specific
construction variables $WIN32DEFPREFIX, $WIN32DEFSUFFIX,
$WIN32DLLPREFIX and $WIN32IMPLIBPREFIX. When building a .dll,
the new construction variable $WIN32_INSERT_DEF, controls whether
the appropriately-named .def file is inserted into the target
list (if not already present). A .lib file is always added to
a Library build if not present in the list of targets.
- ListBuilder now passes all targets to the action, not just the first.
- Fix so that -c now deletes generated yacc .h files.
- Builder actions and emitter functions can now be initialized, through
construction variables, to things other than strings.
- Make top-relative '#/dir' lookups work like '#dir'.
- Fix for relative CPPPATH directories in subsidiary SConscript files
(broken in 0.06).
- Add a for_signature argument to command generators, so that
generators that need to can return distinct values for the
command signature and for executing the command.
From Alex Jacques:
- Create a better scons.bat file from a py2bat.py script on the Python
mailing list two years ago (modeled after pl2bat.pl).
From Steven Knight:
- Fix so that -c -n does *not* remove the targets!
- Man page: Add a hierarchical libraries + Program example.
- Support long MSVC linker command lines through a builder action
that writes to a temporary file and uses the magic MSVC "link @file"
argument syntax if the line is longer than 2K characters.
- Fix F77 command-line options on Win32 (use /Fo instead of -o).
- Use the same action to build from .c (lower case) and .C (upper
case) files on case-insensitive systems like Win32.
- Support building a PDF file directly from a TeX or LaTeX file
using pdftex or pdflatex.
- Add a -x option to runtest.py to specify the script being tested.
A -X option indicates it's an executable, not a script to feed
to the Python interpreter.
- Add a Split() function (identical to SCons.Util.argmunge()) for use
in the next release, when Builders will no longer automatically split
strings on white space.
From Steve Leblanc:
- Add the SConscriptChdir() method.
From Anthony Roach:
- Fix --debug=tree when used with directory targets.
- Significant internal restructuring of Scanners and Taskmaster.
- Added new --debug=dtree option.
- Fixes for --profile option.
- Performance improvement in construction variable substitution.
- Implemented caching of content signatures, plus added --max-drift
option to control caching.
- Implemented caching of dependency signatures, enabled by new
--implicit-cache option.
- Added abspath construction variable modifier.
- Added $SOURCE variable as a synonym for $SOURCES[0].
- Write out .sconsign files on error or interrupt so intermediate
build results are saved.
- Change the -U option to -D. Make a new -U that builds just the
targets from the local SConscript file.
- Fixed use of sys.path so Python modules can be imported from
the SConscript directory.
- Fix for using Aliases with the -u, -U and -D options.
- Fix so that Nodes can be passed to SConscript files.
From Moshe Zadka:
- Changes for official Debian packaging.
RELEASE 0.06 - Thu, 28 Mar 2002 01:24:29 -0600
From Charles Crain:
- Fix command generators to expand construction variables.
- Make FunctionAction arguments be Nodes, not strings.
From Stephen Kennedy:
- Performance: Use a dictionary, not a list, for a Node's parents.
From Steven Knight:
- Add .zip files to the packages we build.
- Man page: document LIBS, fix a typo, document ARGUMENTS.
- Added RANLIB and RANLIBFLAGS construction variables. Only use them
in ARCOM if there's a "ranlib" program on the system.
- Add a configurable CFILESUFFIX for the Builder of .l and .y files
into C files.
- Add a CXXFile Builder that turns .ll and .yy files into .cc files
(configurable via a CXXFILESUFFIX construction variable).
- Use the POSIX-standard lex -t flag, not the GNU-specific -o flag.
(Bug reported by Russell Christensen.)
- Fixed an exception when CPPPATH or LIBPATH is a null string.
(Bug reported by Richard Kiss.)
- Add a --profile=FILE option to make profiling SCons easier.
- Modify the new DVI builder to create .dvi files from LaTeX (.ltx
and .latex) files.
- Add support for Aliases (phony targets).
- Add a WhereIs() method for searching for path names to executables.
- Add PDF and PostScript document builders.
- Add support for compiling Fortran programs from a variety of
suffixes (a la GNU Make): .f, .F, .for, .FOR, .fpp and .FPP
- Support a CPPFLAGS variable on all default commands that use the
C preprocessor.
From Steve Leblanc:
- Add support for the -U option.
- Allow CPPPATH, LIBPATH and LIBS to be specified as white-space
separated strings.
- Add a document builder to create .dvi files from TeX (.tex) files.
From Anthony Roach:
- Fix: Construction variables with values of 0 were incorrectly
interpolated as ''.
- Support env['VAR'] to fetch construction variable values.
- Man page: document Precious().
RELEASE 0.05 - Thu, 21 Feb 2002 16:50:03 -0600
From Chad Austin:
- Set PROGSUFFIX to .exe under Cygwin.
From Charles Crain:
- Allow a library to specified as a command-line source file, not just
in the LIBS construction variable.
- Compensate for a bug in os.path.normpath() that returns '' for './'
on WIN32.
- More performance optimizations: cache #include lines from files,
eliminate unnecessary calls.
- If a prefix or suffix contains white space, treat the resulting
concatenation as separate arguments.
- Fix irregularities in the way we fetch DevStudio information from
the Windows registry, and in our registry error handling.
From Steven Knight:
- Flush stdout after print so it intermixes correctly with stderr
when redirected.
- Allow Scanners to return a list of strings, and document how to
write your own Scanners.
- Look up implicit (scanned) dependencies relative to the directory
of file being scanned.
- Make writing .sconsign files more robust by first trying to write
to a temp file that gets renamed.
- Create all of the directories for a list of targets before trying
to build any of the targets.
- WIN32 portability fixes in tests.
- Allow the list of variables exported to an SConscript file to be
a UserList, too.
- Document the overlooked LIBPATH construction variable.
(Bug reported by Eicke Godehardt.)
- Fix so that Ignore() ignores indirect, implicit dependencies
(included files), not just direct dependencies.
- Put the man page in the Debian distribution.
- Run HTML docs through tidy to clean up the HTML (for Konqueror).
- Add preliminary support for Unicode strings.
- Efficiency: don't scan dependencies more than once during the
walk of a tree.
- Fix the -c option so it doesn't stop removing targets if one doesn't
already exist.
(Bug reported by Paul Connell.)
- Fix the --debug=pdb option when run on Windows NT.
(Bug reported by Paul Connell.)
- Add support for the -q option.
From Steve Leblanc:
- Add support for the -u option.
- Add .cc and .hh file suffixes to the C Scanner.
From Anthony Roach:
- Make the scons script return an error code on failures.
- Add support for using code to generate a command to build a target.
RELEASE 0.04 - Wed, 30 Jan 2002 11:09:42 -0600
From Charles Crain:
- Significant performance improvements in the Node.FS and
Scanner subsystems.
- Fix signatures of binary files on Win32 systems.
- Allow LIBS and LIBPATH to be strings, not just arrays.
- Print a traceback if a Python-function builder throws an exception.
From Steven Knight:
- Fix using a directory as a Default(), and allow Default() to
support white space in file names for strings in arrays.
- Man page updates: corrected some mistakes, documented various
missing Environment methods, alphabetized the construction
variables and other functions, defined begin and end macros for
the example sections, regularized white space separation, fixed
the use of Export() in the Multiple Variants example.
- Function action fixes: None is now a successful return value.
Exceptions are now reported. Document function actions.
- Add 'Action' and 'Scanner' to the global keywords so SConscript
files can use them too.
- Removed the Wrapper class between Nodes and Walkers.
- Add examples using Library, LIBS, and LIBPATH.
- The C Scanner now always returns a sorted list of dependencies
so order changes don't cause unnecessary rebuilds.
- Strip $(-$) bracketed text from command lines. Use this to
surround $_INCDIRS and $_LIBDIRS so we don't rebuild in response
to changes to -I or -L options.
- Add the Ignore() method to ignore dependencies.
- Provide an error message when a nonexistent target is specified
on the command line.
- Remove targets before building them, and add an Environment
Precious() method to override that.
- Eliminate redundant calls to the same builder when the target is a
list of targets: Add a ListBuilder class that wraps Builders to
handle lists atomically. Extend the Task class to support building
and updating multiple targets in a single Task. Simplify the
interface between Task and Taskmaster.
- Add a --debug=pdb option to re-run SCons under the Python debugger.
- Only compute a build signature once for each node.
- Changes to our sys.path[] manipulation to support installation into
an arbitrary --prefix value.
From Steve Leblanc:
- Add var=value command-line arguments.
RELEASE 0.03 - Fri, 11 Jan 2002 01:09:30 -0600
From Charles Crain:
- Performance improvements in the Node.FS and Sig.Calculator classes.
- Add the InstallAs() method.
- Execute commands through an external interpreter (sh, cmd.exe, or
command.com) to handle redirection metacharacters.
- Allow the user to supply a command handler.
From Steven Knight:
- Search both /usr/lib and /usr/local/lib for scons directories by
adding them both to sys.path, with whichever is in sys.prefix first.
- Fix interpreting strings of multiple white-space separated file names
as separate file names, allowing prefixes and suffixes to be appended
to each individually.
- Refactor to move CompositeBuilder initialization logic from the
factory wrapper to the __init__() method, and allow a Builder to
have both an action and a src_builder (or array of them).
- Refactor BuilderBase.__call__() to separate Node creation/lookup
from initialization of the Node's builder information.
- Add a CFile Builder object that supports turning lex (.l) and
yacc (.y) files into .c files.
- Document: variable interpretation attributes; how to propogate
the user's environment variables to executed commands; how to
build variants in multiple BuildDirs.
- Collect String, Dict, and List type-checking in common utility
routines so we can accept User{String,Dict,List}s all over.
- Put the Action factory and classes into their own module.
- Use one CPlusPlusAction in the Object Builder's action dictionary,
instead of letting it create multiple identical instances.
- Document the Install() and InstallAs() methods.
From Steve Leblanc:
- Require that a Builder be given a name argument, supplying a
useful error message when it isn't.
From Anthony Roach:
- Add a "duplicate" keyword argument to BuildDir() that can be set
to prevent linking/copying source files into build directories.
- Add a "--debug=tree" option to print an ASCII dependency tree.
- Fetch the location of the Microsoft Visual C++ compiler(s) from
the Registry, instead of hard-coding the location.
- Made Scanner objects take Nodes, not path names.
- Have the C Scanner cache the #include file names instead of
(re-)scanning the file each time it's called.
- Created a separate class for parent "nodes" of file system roots,
eliminating the need for separate is-parent-null checks everywhere.
- Removed defined __hash__() and __cmp() methods from FS.Entry, in
favor of Python's more efficient built-in identity comparisons.
RELEASE 0.02 - Sun, 23 Dec 2001 19:05:09 -0600
From Charles Crain:
- Added the Install(), BuildDir(), and Export() methods.
- Fix the -C option by delaying setting the top of the FS tree.
- Avoid putting the directory path on the libraries in the LIBS
construction variable.
- Added a GetBuildPath() method to return the full path to the
Node for a specified string.
- Fixed variable substitution in CPPPATH and LIBPATH.
From Steven Knight:
- Fixed the version comment in the scons.bat (the UNIX geek used
# instead of @rem).
- Fix to setup.py so it doesn't require a sys.argv[1] argument.
- Provide make-like warning message for "command not found" and
similar errors.
- Added an EXAMPLES section to the man page.
- Make Default() targets properly relative to their SConscript
file's subdirectory.
From Anthony Roach:
- Documented CXXFLAGS, CXXCOM, and CPPPATH.
- Fixed SCONS_LIB_DIR to work as documented.
- Made Default() accept Nodes as arguments.
- Changed Export() to make it easier to use.
- Added the Import() and Return() methods.
RELEASE 0.01 - Thu Dec 13 19:25:23 CST 2001
A brief overview of important functionality available in release 0.01:
- C and C++ compilation on POSIX and Windows NT.
- Automatic scanning of C/C++ source files for #include dependencies.
- Support for building libraries; setting construction variables
allows creation of shared libraries.
- Library and C preprocessor search paths.
- File changes detected using MD5 signatures.
- User-definable Builder objects for building files.
- User-definable Scanner objects for scanning for dependencies.
- Parallel build (-j) support.
- Dependency cycles detected.
- Linux packages available in RPM and Debian format.
- Windows installer available.
|