Ignore:
Timestamp:
Mar 19, 2014, 11:11:30 AM (11 years ago)
Author:
dmik
Message:

python: Update vendor to 2.7.6.

Location:
python/vendor/current/PCbuild
Files:
14 edited

Legend:

Unmodified
Added
Removed
  • python/vendor/current/PCbuild/_multiprocessing.vcproj

    r2 r388  
    44        Version="9,00"
    55        Name="_multiprocessing"
    6         ProjectGUID="{9e48b300-37d1-11dd-8c41-005056c00008}"
     6        ProjectGUID="{9E48B300-37D1-11DD-8C41-005056C00008}"
    77        RootNamespace="_multiprocessing"
    88        Keyword="Win32Proj"
  • python/vendor/current/PCbuild/build_ssl.bat

    r2 r388  
    33  if %1 EQU Debug (
    44    set HOST_PYTHON=python_d.exe
    5     if not exist python26_d.dll exit 1
     5    if not exist python27_d.dll exit 1
    66  ) ELSE (
    77    set HOST_PYTHON=python.exe
    8     if not exist python26.dll exit 1
     8    if not exist python27.dll exit 1
    99  )
    1010)
  • python/vendor/current/PCbuild/build_ssl.py

    r2 r388  
     1from __future__ import with_statement, print_function
    12# Script for building the _ssl and _hashlib modules for Windows.
    23# Uses Perl to setup the OpenSSL environment correctly
     
    4748def find_working_perl(perls):
    4849    for perl in perls:
    49         fh = os.popen(perl + ' -e "use Win32;"')
     50        fh = os.popen('"%s" -e "use Win32;"' % perl)
    5051        fh.read()
    5152        rc = fh.close()
     
    6465    return None
    6566
    66 # Locate the best SSL directory given a few roots to look into.
    67 def find_best_ssl_dir(sources):
    68     candidates = []
    69     for s in sources:
    70         try:
    71             # note: do not abspath s; the build will fail if any
    72             # higher up directory name has spaces in it.
    73             fnames = os.listdir(s)
    74         except os.error:
    75             fnames = []
    76         for fname in fnames:
    77             fqn = os.path.join(s, fname)
    78             if os.path.isdir(fqn) and fname.startswith("openssl-"):
    79                 candidates.append(fqn)
    80     # Now we have all the candidates, locate the best.
    81     best_parts = []
    82     best_name = None
    83     for c in candidates:
    84         parts = re.split("[.-]", os.path.basename(c))[1:]
    85         # eg - openssl-0.9.7-beta1 - ignore all "beta" or any other qualifiers
    86         if len(parts) >= 4:
    87             continue
    88         if parts > best_parts:
    89             best_parts = parts
    90             best_name = c
    91     if best_name is not None:
    92         print("Found an SSL directory at '%s'" % (best_name,))
    93     else:
    94         print("Could not find an SSL directory in '%s'" % (sources,))
    95     sys.stdout.flush()
    96     return best_name
     67# Fetch SSL directory from VC properties
     68def get_ssl_dir():
     69    propfile = (os.path.join(os.path.dirname(__file__), 'pyproject.vsprops'))
     70    with open(propfile) as f:
     71        m = re.search('openssl-([^"]+)"', f.read())
     72        return "..\..\openssl-"+m.group(1)
     73
    9774
    9875def create_makefile64(makefile, m32):
     
    10380    if not os.path.isfile(m32):
    10481        return
    105     # 2.4 compatibility
    106     fin = open(m32)
    107     if 1: # with open(m32) as fin:
    108         fout = open(makefile, 'w')
    109         if 1: # with open(makefile, 'w') as fout:
     82    with open(m32) as fin:
     83        with open(makefile, 'w') as fout:
    11084            for line in fin:
    11185                line = line.replace("=tmp32", "=tmp64")
     
    187161    perls = find_all_on_path("perl.exe", ["\\perl\\bin", "C:\\perl\\bin"])
    188162    perl = find_working_perl(perls)
    189     if perl is None:
     163    if perl:
     164        print("Found a working perl at '%s'" % (perl,))
     165    else:
    190166        print("No Perl installation was found. Existing Makefiles are used.")
    191 
    192     print("Found a working perl at '%s'" % (perl,))
    193167    sys.stdout.flush()
    194168    # Look for SSL 2 levels up from pcbuild - ie, same place zlib etc all live.
    195     ssl_dir = find_best_ssl_dir(("..\\..",))
     169    ssl_dir = get_ssl_dir()
    196170    if ssl_dir is None:
    197171        sys.exit(1)
  • python/vendor/current/PCbuild/build_tkinter.py

    r2 r388  
    5353        os.chdir(os.path.join(ROOT, TK, "win"))
    5454        if clean:
    55             nmake("makefile.vc", "clean", TCLDIR=tcldir)
    56         nmake("makefile.vc", TCLDIR=tcldir, MACHINE=machine)
    57         nmake("makefile.vc", "install", TCLDIR=tcldir, INSTALLDIR=dest, MACHINE=machine)
     55            nmake("makefile.vc", "clean", DEBUG=0, TCLDIR=tcldir)
     56        nmake("makefile.vc", DEBUG=0, MACHINE=machine)
     57        nmake("makefile.vc", "install", DEBUG=0, INSTALLDIR=dest, MACHINE=machine)
    5858
    5959    # TIX
     
    6262        os.chdir(os.path.join(ROOT, TIX, "win"))
    6363        if clean:
    64             nmake("python9.mak", "clean")
    65         nmake("python9.mak", MACHINE=machine, INSTALL_DIR=dest)
    66         nmake("python9.mak", "install", INSTALL_DIR=dest)
     64            nmake("python.mak", "clean")
     65        nmake("python.mak", MACHINE=machine, INSTALL_DIR=dest)
     66        nmake("python.mak", "install", INSTALL_DIR=dest)
    6767
    6868def main():
  • python/vendor/current/PCbuild/bz2.vcproj

    r2 r388  
    4444                                Name="VCCLCompilerTool"
    4545                                AdditionalIncludeDirectories="$(bz2Dir)"
    46                         />
    47                         <Tool
    48                                 Name="VCManagedResourceCompilerTool"
    49                         />
    50                         <Tool
    51                                 Name="VCResourceCompilerTool"
    52                         />
    53                         <Tool
    54                                 Name="VCPreLinkEventTool"
    55                                 Description="Build libbz2"
    56                                 CommandLine="cd $(bz2Dir)&#x0D;&#x0A;if exist $(PlatformName)-Debug\libbz2.lib exit 0&#x0D;&#x0A;if not exist $(PlatformName)-Debug mkdir $(PlatformName)-Debug&#x0D;&#x0A;nmake /nologo /f makefile.msc lib&#x0D;&#x0A;copy libbz2.lib $(PlatformName)-Debug&#x0D;&#x0A;nmake /nologo /f makefile.msc clean&#x0D;&#x0A;"
    57                         />
    58                         <Tool
    59                                 Name="VCLinkerTool"
    60                                 AdditionalDependencies="$(bz2Dir)\$(PlatformName)-Debug\libbz2.lib"
     46                                PreprocessorDefinitions="WIN32;_FILE_OFFSET_BITS=64"
     47                        />
     48                        <Tool
     49                                Name="VCManagedResourceCompilerTool"
     50                        />
     51                        <Tool
     52                                Name="VCResourceCompilerTool"
     53                        />
     54                        <Tool
     55                                Name="VCPreLinkEventTool"
     56                        />
     57                        <Tool
     58                                Name="VCLinkerTool"
     59                                BaseAddress="0x1D170000"
    6160                        />
    6261                        <Tool
     
    107106                                Name="VCCLCompilerTool"
    108107                                AdditionalIncludeDirectories="$(bz2Dir)"
    109                         />
    110                         <Tool
    111                                 Name="VCManagedResourceCompilerTool"
    112                         />
    113                         <Tool
    114                                 Name="VCResourceCompilerTool"
    115                         />
    116                         <Tool
    117                                 Name="VCPreLinkEventTool"
    118                                 Description="Build libbz2"
    119                                 CommandLine="cd $(bz2Dir)&#x0D;&#x0A;if exist $(PlatformName)-Debug\libbz2.lib exit 0&#x0D;&#x0A;if not exist $(PlatformName)-Debug mkdir $(PlatformName)-Debug&#x0D;&#x0A;nmake /nologo /f makefile.msc lib&#x0D;&#x0A;copy libbz2.lib $(PlatformName)-Debug&#x0D;&#x0A;nmake /nologo /f makefile.msc clean&#x0D;&#x0A;"
    120                         />
    121                         <Tool
    122                                 Name="VCLinkerTool"
    123                                 AdditionalDependencies="$(bz2Dir)\$(PlatformName)-Debug\libbz2.lib"
     108                                PreprocessorDefinitions="WIN32;_FILE_OFFSET_BITS=64"
     109                        />
     110                        <Tool
     111                                Name="VCManagedResourceCompilerTool"
     112                        />
     113                        <Tool
     114                                Name="VCResourceCompilerTool"
     115                        />
     116                        <Tool
     117                                Name="VCPreLinkEventTool"
     118                        />
     119                        <Tool
     120                                Name="VCLinkerTool"
     121                                BaseAddress="0x1D170000"
    124122                        />
    125123                        <Tool
     
    170168                                Name="VCCLCompilerTool"
    171169                                AdditionalIncludeDirectories="$(bz2Dir)"
    172                         />
    173                         <Tool
    174                                 Name="VCManagedResourceCompilerTool"
    175                         />
    176                         <Tool
    177                                 Name="VCResourceCompilerTool"
    178                         />
    179                         <Tool
    180                                 Name="VCPreLinkEventTool"
    181                                 Description="Build libbz2"
    182                                 CommandLine="cd $(bz2Dir)&#x0D;&#x0A;if exist $(PlatformName)-Release\libbz2.lib exit 0&#x0D;&#x0A;if not exist $(PlatformName)-Release mkdir $(PlatformName)-Release&#x0D;&#x0A;nmake /nologo /f makefile.msc lib&#x0D;&#x0A;copy libbz2.lib $(PlatformName)-Release&#x0D;&#x0A;nmake /nologo /f makefile.msc clean&#x0D;&#x0A;"
    183                         />
    184                         <Tool
    185                                 Name="VCLinkerTool"
    186                                 AdditionalDependencies="$(bz2Dir)\$(PlatformName)-Release\libbz2.lib"
     170                                PreprocessorDefinitions="WIN32;_FILE_OFFSET_BITS=64"
     171                        />
     172                        <Tool
     173                                Name="VCManagedResourceCompilerTool"
     174                        />
     175                        <Tool
     176                                Name="VCResourceCompilerTool"
     177                        />
     178                        <Tool
     179                                Name="VCPreLinkEventTool"
     180                        />
     181                        <Tool
     182                                Name="VCLinkerTool"
     183                                BaseAddress="0x1D170000"
    187184                        />
    188185                        <Tool
     
    234231                                Name="VCCLCompilerTool"
    235232                                AdditionalIncludeDirectories="$(bz2Dir)"
    236                         />
    237                         <Tool
    238                                 Name="VCManagedResourceCompilerTool"
    239                         />
    240                         <Tool
    241                                 Name="VCResourceCompilerTool"
    242                         />
    243                         <Tool
    244                                 Name="VCPreLinkEventTool"
    245                                 Description="Build libbz2"
    246                                 CommandLine="cd $(bz2Dir)&#x0D;&#x0A;if exist $(PlatformName)-Release\libbz2.lib exit 0&#x0D;&#x0A;if not exist $(PlatformName)-Release mkdir $(PlatformName)-Release&#x0D;&#x0A;nmake /nologo /f makefile.msc lib&#x0D;&#x0A;copy libbz2.lib $(PlatformName)-Release&#x0D;&#x0A;nmake /nologo /f makefile.msc clean&#x0D;&#x0A;"
    247                         />
    248                         <Tool
    249                                 Name="VCLinkerTool"
    250                                 AdditionalDependencies="$(bz2Dir)\$(PlatformName)-Release\libbz2.lib"
     233                                PreprocessorDefinitions="WIN32;_FILE_OFFSET_BITS=64"
     234                        />
     235                        <Tool
     236                                Name="VCManagedResourceCompilerTool"
     237                        />
     238                        <Tool
     239                                Name="VCResourceCompilerTool"
     240                        />
     241                        <Tool
     242                                Name="VCPreLinkEventTool"
     243                        />
     244                        <Tool
     245                                Name="VCLinkerTool"
     246                                BaseAddress="0x1D170000"
    251247                        />
    252248                        <Tool
     
    297293                                Name="VCCLCompilerTool"
    298294                                AdditionalIncludeDirectories="$(bz2Dir)"
    299                         />
    300                         <Tool
    301                                 Name="VCManagedResourceCompilerTool"
    302                         />
    303                         <Tool
    304                                 Name="VCResourceCompilerTool"
    305                         />
    306                         <Tool
    307                                 Name="VCPreLinkEventTool"
    308                                 Description="Build libbz2"
    309                                 CommandLine="cd $(bz2Dir)&#x0D;&#x0A;if exist $(PlatformName)-Release\libbz2.lib exit 0&#x0D;&#x0A;if not exist $(PlatformName)-Release mkdir $(PlatformName)-Release&#x0D;&#x0A;nmake /nologo /f makefile.msc lib&#x0D;&#x0A;copy libbz2.lib $(PlatformName)-Release&#x0D;&#x0A;nmake /nologo /f makefile.msc clean&#x0D;&#x0A;"
    310                         />
    311                         <Tool
    312                                 Name="VCLinkerTool"
    313                                 AdditionalDependencies="$(bz2Dir)\$(PlatformName)-Release\libbz2.lib"
     295                                PreprocessorDefinitions="WIN32;_FILE_OFFSET_BITS=64"
     296                        />
     297                        <Tool
     298                                Name="VCManagedResourceCompilerTool"
     299                        />
     300                        <Tool
     301                                Name="VCResourceCompilerTool"
     302                        />
     303                        <Tool
     304                                Name="VCPreLinkEventTool"
     305                        />
     306                        <Tool
     307                                Name="VCLinkerTool"
     308                                BaseAddress="0x1D170000"
    314309                        />
    315310                        <Tool
     
    361356                                Name="VCCLCompilerTool"
    362357                                AdditionalIncludeDirectories="$(bz2Dir)"
    363                         />
    364                         <Tool
    365                                 Name="VCManagedResourceCompilerTool"
    366                         />
    367                         <Tool
    368                                 Name="VCResourceCompilerTool"
    369                         />
    370                         <Tool
    371                                 Name="VCPreLinkEventTool"
    372                                 Description="Build libbz2"
    373                                 CommandLine="cd $(bz2Dir)&#x0D;&#x0A;if exist $(PlatformName)-Release\libbz2.lib exit 0&#x0D;&#x0A;if not exist $(PlatformName)-Release mkdir $(PlatformName)-Release&#x0D;&#x0A;nmake /nologo /f makefile.msc lib&#x0D;&#x0A;copy libbz2.lib $(PlatformName)-Release&#x0D;&#x0A;nmake /nologo /f makefile.msc clean&#x0D;&#x0A;"
    374                         />
    375                         <Tool
    376                                 Name="VCLinkerTool"
    377                                 AdditionalDependencies="$(bz2Dir)\$(PlatformName)-Release\libbz2.lib"
     358                                PreprocessorDefinitions="WIN32;_FILE_OFFSET_BITS=64"
     359                        />
     360                        <Tool
     361                                Name="VCManagedResourceCompilerTool"
     362                        />
     363                        <Tool
     364                                Name="VCResourceCompilerTool"
     365                        />
     366                        <Tool
     367                                Name="VCPreLinkEventTool"
     368                        />
     369                        <Tool
     370                                Name="VCLinkerTool"
     371                                BaseAddress="0x1D170000"
    378372                                TargetMachine="17"
    379373                        />
     
    425419                                Name="VCCLCompilerTool"
    426420                                AdditionalIncludeDirectories="$(bz2Dir)"
    427                         />
    428                         <Tool
    429                                 Name="VCManagedResourceCompilerTool"
    430                         />
    431                         <Tool
    432                                 Name="VCResourceCompilerTool"
    433                         />
    434                         <Tool
    435                                 Name="VCPreLinkEventTool"
    436                                 Description="Build libbz2"
    437                                 CommandLine="cd $(bz2Dir)&#x0D;&#x0A;if exist $(PlatformName)-Release\libbz2.lib exit 0&#x0D;&#x0A;if not exist $(PlatformName)-Release mkdir $(PlatformName)-Release&#x0D;&#x0A;nmake /nologo /f makefile.msc lib&#x0D;&#x0A;copy libbz2.lib $(PlatformName)-Release&#x0D;&#x0A;nmake /nologo /f makefile.msc clean&#x0D;&#x0A;"
    438                         />
    439                         <Tool
    440                                 Name="VCLinkerTool"
    441                                 AdditionalDependencies="$(bz2Dir)\$(PlatformName)-Release\libbz2.lib"
     421                                PreprocessorDefinitions="WIN32;_FILE_OFFSET_BITS=64"
     422                        />
     423                        <Tool
     424                                Name="VCManagedResourceCompilerTool"
     425                        />
     426                        <Tool
     427                                Name="VCResourceCompilerTool"
     428                        />
     429                        <Tool
     430                                Name="VCPreLinkEventTool"
     431                        />
     432                        <Tool
     433                                Name="VCLinkerTool"
     434                                BaseAddress="0x1D170000"
    442435                        />
    443436                        <Tool
     
    489482                                Name="VCCLCompilerTool"
    490483                                AdditionalIncludeDirectories="$(bz2Dir)"
    491                         />
    492                         <Tool
    493                                 Name="VCManagedResourceCompilerTool"
    494                         />
    495                         <Tool
    496                                 Name="VCResourceCompilerTool"
    497                         />
    498                         <Tool
    499                                 Name="VCPreLinkEventTool"
    500                                 Description="Build libbz2"
    501                                 CommandLine="cd $(bz2Dir)&#x0D;&#x0A;if exist $(PlatformName)-Release\libbz2.lib exit 0&#x0D;&#x0A;if not exist $(PlatformName)-Release mkdir $(PlatformName)-Release&#x0D;&#x0A;nmake /nologo /f makefile.msc lib&#x0D;&#x0A;copy libbz2.lib $(PlatformName)-Release&#x0D;&#x0A;nmake /nologo /f makefile.msc clean&#x0D;&#x0A;"
    502                         />
    503                         <Tool
    504                                 Name="VCLinkerTool"
    505                                 AdditionalDependencies="$(bz2Dir)\$(PlatformName)-Release\libbz2.lib"
     484                                PreprocessorDefinitions="WIN32;_FILE_OFFSET_BITS=64"
     485                        />
     486                        <Tool
     487                                Name="VCManagedResourceCompilerTool"
     488                        />
     489                        <Tool
     490                                Name="VCResourceCompilerTool"
     491                        />
     492                        <Tool
     493                                Name="VCPreLinkEventTool"
     494                        />
     495                        <Tool
     496                                Name="VCLinkerTool"
     497                                BaseAddress="0x1D170000"
    506498                                TargetMachine="17"
    507499                        />
     
    540532                        </File>
    541533                </Filter>
     534                <Filter
     535                        Name="bzip2 1.0.6 Header Files"
     536                        >
     537                        <File
     538                                RelativePath="$(bz2Dir)\bzlib.h"
     539                                >
     540                        </File>
     541                        <File
     542                                RelativePath="$(bz2Dir)\bzlib_private.h"
     543                                >
     544                        </File>
     545                </Filter>
     546                <Filter
     547                        Name="bzip2 1.0.6 Source Files"
     548                        >
     549                        <File
     550                                RelativePath="$(bz2Dir)\blocksort.c"
     551                                >
     552                        </File>
     553                        <File
     554                                RelativePath="$(bz2Dir)\bzlib.c"
     555                                >
     556                        </File>
     557                        <File
     558                                RelativePath="$(bz2Dir)\compress.c"
     559                                >
     560                        </File>
     561                        <File
     562                                RelativePath="$(bz2Dir)\crctable.c"
     563                                >
     564                        </File>
     565                        <File
     566                                RelativePath="$(bz2Dir)\decompress.c"
     567                                >
     568                        </File>
     569                        <File
     570                                RelativePath="$(bz2Dir)\huffman.c"
     571                                >
     572                        </File>
     573                        <File
     574                                RelativePath="$(bz2Dir)\randtable.c"
     575                                >
     576                        </File>
     577                </Filter>
    542578        </Files>
    543579        <Globals>
  • python/vendor/current/PCbuild/make_buildinfo.c

    r2 r388  
    2424int make_buildinfo2()
    2525{
    26         struct _stat st;
    27         HKEY hTortoise;
    28         char command[CMD_SIZE+1];
    29         DWORD type, size;
    30         if (_stat(".svn", &st) < 0)
    31                 return 0;
    32         /* Allow suppression of subwcrev.exe invocation if a no_subwcrev file is present. */
    33         if (_stat("no_subwcrev", &st) == 0)
    34                 return 0;
    35         if (RegOpenKey(HKEY_LOCAL_MACHINE, "Software\\TortoiseSVN", &hTortoise) != ERROR_SUCCESS &&
    36             RegOpenKey(HKEY_CURRENT_USER, "Software\\TortoiseSVN", &hTortoise) != ERROR_SUCCESS)
    37                 /* Tortoise not installed */
    38                 return 0;
    39         command[0] = '"';  /* quote the path to the executable */
    40         size = sizeof(command) - 1;
    41         if (RegQueryValueEx(hTortoise, "Directory", 0, &type, command+1, &size) != ERROR_SUCCESS ||
    42             type != REG_SZ)
    43                 /* Registry corrupted */
    44                 return 0;
    45         strcat_s(command, CMD_SIZE, "bin\\subwcrev.exe");
    46         if (_stat(command+1, &st) < 0)
    47                 /* subwcrev.exe not part of the release */
    48                 return 0;
    49         strcat_s(command, CMD_SIZE, "\" .. ..\\Modules\\getbuildinfo.c getbuildinfo2.c");
    50         puts(command); fflush(stdout);
    51         if (system(command) < 0)
    52                 return 0;
    53         return 1;
     26    struct _stat st;
     27    HKEY hTortoise;
     28    char command[CMD_SIZE+1];
     29    DWORD type, size;
     30    if (_stat(".svn", &st) < 0)
     31        return 0;
     32    /* Allow suppression of subwcrev.exe invocation if a no_subwcrev file is present. */
     33    if (_stat("no_subwcrev", &st) == 0)
     34        return 0;
     35    if (RegOpenKey(HKEY_LOCAL_MACHINE, "Software\\TortoiseSVN", &hTortoise) != ERROR_SUCCESS &&
     36        RegOpenKey(HKEY_CURRENT_USER, "Software\\TortoiseSVN", &hTortoise) != ERROR_SUCCESS)
     37        /* Tortoise not installed */
     38        return 0;
     39    command[0] = '"';  /* quote the path to the executable */
     40    size = sizeof(command) - 1;
     41    if (RegQueryValueEx(hTortoise, "Directory", 0, &type, command+1, &size) != ERROR_SUCCESS ||
     42        type != REG_SZ)
     43        /* Registry corrupted */
     44        return 0;
     45    strcat_s(command, CMD_SIZE, "bin\\subwcrev.exe");
     46    if (_stat(command+1, &st) < 0)
     47        /* subwcrev.exe not part of the release */
     48        return 0;
     49    strcat_s(command, CMD_SIZE, "\" .. ..\\Modules\\getbuildinfo.c getbuildinfo2.c");
     50    puts(command); fflush(stdout);
     51    if (system(command) < 0)
     52        return 0;
     53    return 1;
    5454}
    5555
    5656int main(int argc, char*argv[])
    5757{
    58         char command[500] = "cl.exe -c -D_WIN32 -DUSE_DL_EXPORT -D_WINDOWS -DWIN32 -D_WINDLL ";
    59         int do_unlink, result;
    60         if (argc != 2) {
    61                 fprintf(stderr, "make_buildinfo $(ConfigurationName)\n");
    62                 return EXIT_FAILURE;
    63         }
    64         if (strcmp(argv[1], "Release") == 0) {
    65                 strcat_s(command, CMD_SIZE, "-MD ");
    66         }
    67         else if (strcmp(argv[1], "Debug") == 0) {
    68                 strcat_s(command, CMD_SIZE, "-D_DEBUG -MDd ");
    69         }
    70         else if (strcmp(argv[1], "ReleaseItanium") == 0) {
    71                 strcat_s(command, CMD_SIZE, "-MD /USECL:MS_ITANIUM ");
    72         }
    73         else if (strcmp(argv[1], "ReleaseAMD64") == 0) {
    74                 strcat_s(command, CMD_SIZE, "-MD ");
    75                 strcat_s(command, CMD_SIZE, "-MD /USECL:MS_OPTERON ");
    76         }
    77         else {
    78                 fprintf(stderr, "unsupported configuration %s\n", argv[1]);
    79                 return EXIT_FAILURE;
    80         }
     58    char command[500] = "cl.exe -c -D_WIN32 -DUSE_DL_EXPORT -D_WINDOWS -DWIN32 -D_WINDLL ";
     59    int do_unlink, result;
     60    if (argc != 2) {
     61        fprintf(stderr, "make_buildinfo $(ConfigurationName)\n");
     62        return EXIT_FAILURE;
     63    }
     64    if (strcmp(argv[1], "Release") == 0) {
     65        strcat_s(command, CMD_SIZE, "-MD ");
     66    }
     67    else if (strcmp(argv[1], "Debug") == 0) {
     68        strcat_s(command, CMD_SIZE, "-D_DEBUG -MDd ");
     69    }
     70    else if (strcmp(argv[1], "ReleaseItanium") == 0) {
     71        strcat_s(command, CMD_SIZE, "-MD /USECL:MS_ITANIUM ");
     72    }
     73    else if (strcmp(argv[1], "ReleaseAMD64") == 0) {
     74        strcat_s(command, CMD_SIZE, "-MD ");
     75        strcat_s(command, CMD_SIZE, "-MD /USECL:MS_OPTERON ");
     76    }
     77    else {
     78        fprintf(stderr, "unsupported configuration %s\n", argv[1]);
     79        return EXIT_FAILURE;
     80    }
    8181
    82         if ((do_unlink = make_buildinfo2()))
    83                 strcat_s(command, CMD_SIZE, "getbuildinfo2.c -DSUBWCREV ");
    84         else
    85                 strcat_s(command, CMD_SIZE, "..\\Modules\\getbuildinfo.c");
    86         strcat_s(command, CMD_SIZE, " -Fogetbuildinfo.o -I..\\Include -I..\\PC");
    87         puts(command); fflush(stdout);
    88         result = system(command);
    89         if (do_unlink)
    90                 _unlink("getbuildinfo2.c");
    91         if (result < 0)
    92                 return EXIT_FAILURE;
    93         return 0;
     82    if ((do_unlink = make_buildinfo2()))
     83        strcat_s(command, CMD_SIZE, "getbuildinfo2.c -DSUBWCREV ");
     84    else
     85        strcat_s(command, CMD_SIZE, "..\\Modules\\getbuildinfo.c");
     86    strcat_s(command, CMD_SIZE, " -Fogetbuildinfo.o -I..\\Include -I..\\PC");
     87    puts(command); fflush(stdout);
     88    result = system(command);
     89    if (do_unlink)
     90        _unlink("getbuildinfo2.c");
     91    if (result < 0)
     92        return EXIT_FAILURE;
     93    return 0;
    9494}
  • python/vendor/current/PCbuild/pginstrument.vsprops

    r2 r388  
    2323                Name="VCLinkerTool"
    2424                OptimizeReferences="2"
    25                 EnableCOMDATFolding="2"
     25                EnableCOMDATFolding="1"
    2626                LinkTimeCodeGeneration="2"
    2727                ProfileGuidedDatabase="$(SolutionDir)$(PlatformName)-pgi\$(TargetName).pgd"
  • python/vendor/current/PCbuild/pyd.vsprops

    r2 r388  
    1 
     1<?xml version="1.0" encoding="Windows-1252"?>
    22<VisualStudioPropertySheet
    33        ProjectType="Visual C++"
  • python/vendor/current/PCbuild/pyproject.vsprops

    r2 r388  
    3939        <UserMacro
    4040                Name="PyDllName"
    41                 Value="python26"
     41                Value="python27"
    4242        />
    4343        <UserMacro
     
    7575        <UserMacro
    7676                Name="sqlite3Dir"
    77                 Value="$(externalsDir)\sqlite-3.5.9"
     77                Value="$(externalsDir)\sqlite-3.6.21"
    7878        />
    7979        <UserMacro
    8080                Name="bz2Dir"
    81                 Value="$(externalsDir)\bzip2-1.0.5"
     81                Value="$(externalsDir)\bzip2-1.0.6"
    8282        />
    8383        <UserMacro
    8484                Name="opensslDir"
    85                 Value="$(externalsDir)\openssl-0.9.8l"
     85                Value="$(externalsDir)\openssl-0.9.8y"
    8686        />
    8787        <UserMacro
  • python/vendor/current/PCbuild/pythoncore.vcproj

    r2 r388  
    716716                        </File>
    717717                        <File
     718                                RelativePath="..\Include\dtoa.h"
     719                                >
     720                        </File>
     721                        <File
    718722                                RelativePath="..\Include\enumobject.h"
    719723                                >
     
    849853                        <File
    850854                                RelativePath="..\Include\pyarena.h"
     855                                >
     856                        </File>
     857                        <File
     858                                RelativePath="..\Include\pycapsule.h"
     859                                >
     860                        </File>
     861                        <File
     862                                RelativePath="..\Include\pyctype.h"
    851863                                >
    852864                        </File>
     
    9961008                        </File>
    9971009                        <File
    998                                 RelativePath="..\Modules\_fileio.c"
    999                                 >
    1000                         </File>
    1001                         <File
    1002                                 RelativePath="..\Modules\_bytesio.c"
    1003                                 >
    1004                         </File>
    1005                         <File
    10061010                                RelativePath="..\Modules\_functoolsmodule.c"
    10071011                                >
     
    10281032                        </File>
    10291033                        <File
     1034                                RelativePath="..\Modules\_math.c"
     1035                                >
     1036                        </File>
     1037                        <File
     1038                                RelativePath="..\Modules\_math.h"
     1039                                >
     1040                        </File>
     1041                        <File
    10301042                                RelativePath="..\Modules\_randommodule.c"
    10311043                                >
     
    11691181                        <File
    11701182                                RelativePath="..\Modules\xxsubtype.c"
    1171                                 >
    1172                         </File>
    1173                         <File
    1174                                 RelativePath="..\Modules\yuv.h"
    1175                                 >
    1176                         </File>
    1177                         <File
    1178                                 RelativePath="..\Modules\yuvconvert.c"
    11791183                                >
    11801184                        </File>
     
    13521356                                <File
    13531357                                        RelativePath="..\Modules\cjkcodecs\multibytecodec.h"
     1358                                        >
     1359                                </File>
     1360                        </Filter>
     1361                        <Filter
     1362                                Name="_io"
     1363                                >
     1364                                <File
     1365                                        RelativePath="..\Modules\_io\_iomodule.c"
     1366                                        >
     1367                                </File>
     1368                                <File
     1369                                        RelativePath="..\Modules\_io\_iomodule.h"
     1370                                        >
     1371                                </File>
     1372                                <File
     1373                                        RelativePath="..\Modules\_io\bufferedio.c"
     1374                                        >
     1375                                </File>
     1376                                <File
     1377                                        RelativePath="..\Modules\_io\bytesio.c"
     1378                                        >
     1379                                </File>
     1380                                <File
     1381                                        RelativePath="..\Modules\_io\fileio.c"
     1382                                        >
     1383                                </File>
     1384                                <File
     1385                                        RelativePath="..\Modules\_io\iobase.c"
     1386                                        >
     1387                                </File>
     1388                                <File
     1389                                        RelativePath="..\Modules\_io\stringio.c"
     1390                                        >
     1391                                </File>
     1392                                <File
     1393                                        RelativePath="..\Modules\_io\textio.c"
    13541394                                        >
    13551395                                </File>
     
    13801420                        </File>
    13811421                        <File
     1422                                RelativePath="..\Objects\capsule.c"
     1423                                >
     1424                        </File>
     1425                        <File
     1426                                RelativePath="..\Objects\cellobject.c"
     1427                                >
     1428                        </File>
     1429                        <File
     1430                                RelativePath="..\Objects\classobject.c"
     1431                                >
     1432                        </File>
     1433                        <File
     1434                                RelativePath="..\Objects\cobject.c"
     1435                                >
     1436                        </File>
     1437                        <File
     1438                                RelativePath="..\Objects\codeobject.c"
     1439                                >
     1440                        </File>
     1441                        <File
     1442                                RelativePath="..\Objects\complexobject.c"
     1443                                >
     1444                        </File>
     1445                        <File
     1446                                RelativePath="..\Objects\stringlib\count.h"
     1447                                >
     1448                        </File>
     1449                        <File
     1450                                RelativePath="..\Objects\descrobject.c"
     1451                                >
     1452                        </File>
     1453                        <File
     1454                                RelativePath="..\Objects\dictobject.c"
     1455                                >
     1456                        </File>
     1457                        <File
     1458                                RelativePath="..\Objects\enumobject.c"
     1459                                >
     1460                        </File>
     1461                        <File
     1462                                RelativePath="..\Objects\exceptions.c"
     1463                                >
     1464                        </File>
     1465                        <File
     1466                                RelativePath="..\Objects\stringlib\fastsearch.h"
     1467                                >
     1468                        </File>
     1469                        <File
     1470                                RelativePath="..\Objects\fileobject.c"
     1471                                >
     1472                        </File>
     1473                        <File
     1474                                RelativePath="..\Objects\stringlib\find.h"
     1475                                >
     1476                        </File>
     1477                        <File
     1478                                RelativePath="..\Objects\floatobject.c"
     1479                                >
     1480                        </File>
     1481                        <File
     1482                                RelativePath="..\Objects\frameobject.c"
     1483                                >
     1484                        </File>
     1485                        <File
     1486                                RelativePath="..\Objects\funcobject.c"
     1487                                >
     1488                        </File>
     1489                        <File
     1490                                RelativePath="..\Objects\genobject.c"
     1491                                >
     1492                        </File>
     1493                        <File
     1494                                RelativePath="..\Objects\intobject.c"
     1495                                >
     1496                        </File>
     1497                        <File
     1498                                RelativePath="..\Objects\iterobject.c"
     1499                                >
     1500                        </File>
     1501                        <File
     1502                                RelativePath="..\Objects\listobject.c"
     1503                                >
     1504                        </File>
     1505                        <File
     1506                                RelativePath="..\Objects\longobject.c"
     1507                                >
     1508                        </File>
     1509                        <File
     1510                                RelativePath="..\Objects\memoryobject.c"
     1511                                >
     1512                        </File>
     1513                        <File
     1514                                RelativePath="..\Objects\methodobject.c"
     1515                                >
     1516                        </File>
     1517                        <File
     1518                                RelativePath="..\Objects\moduleobject.c"
     1519                                >
     1520                        </File>
     1521                        <File
     1522                                RelativePath="..\Objects\object.c"
     1523                                >
     1524                        </File>
     1525                        <File
     1526                                RelativePath="..\Objects\obmalloc.c"
     1527                                >
     1528                        </File>
     1529                        <File
     1530                                RelativePath="..\Objects\stringlib\partition.h"
     1531                                >
     1532                        </File>
     1533                        <File
     1534                                RelativePath="..\Objects\rangeobject.c"
     1535                                >
     1536                        </File>
     1537                        <File
     1538                                RelativePath="..\Objects\setobject.c"
     1539                                >
     1540                        </File>
     1541                        <File
     1542                                RelativePath="..\Objects\sliceobject.c"
     1543                                >
     1544                        </File>
     1545                        <File
     1546                                RelativePath="..\Objects\stringlib\split.h"
     1547                                >
     1548                        </File>
     1549                        <File
    13821550                                RelativePath="..\Objects\stringobject.c"
    1383                                 >
    1384                         </File>
    1385                         <File
    1386                                 RelativePath="..\Objects\cellobject.c"
    1387                                 >
    1388                         </File>
    1389                         <File
    1390                                 RelativePath="..\Objects\classobject.c"
    1391                                 >
    1392                         </File>
    1393                         <File
    1394                                 RelativePath="..\Objects\cobject.c"
    1395                                 >
    1396                         </File>
    1397                         <File
    1398                                 RelativePath="..\Objects\codeobject.c"
    1399                                 >
    1400                         </File>
    1401                         <File
    1402                                 RelativePath="..\Objects\complexobject.c"
    1403                                 >
    1404                         </File>
    1405                         <File
    1406                                 RelativePath="..\Objects\stringlib\count.h"
    1407                                 >
    1408                         </File>
    1409                         <File
    1410                                 RelativePath="..\Objects\descrobject.c"
    1411                                 >
    1412                         </File>
    1413                         <File
    1414                                 RelativePath="..\Objects\dictobject.c"
    1415                                 >
    1416                         </File>
    1417                         <File
    1418                                 RelativePath="..\Objects\enumobject.c"
    1419                                 >
    1420                         </File>
    1421                         <File
    1422                                 RelativePath="..\Objects\exceptions.c"
    1423                                 >
    1424                         </File>
    1425                         <File
    1426                                 RelativePath="..\Objects\stringlib\fastsearch.h"
    1427                                 >
    1428                         </File>
    1429                         <File
    1430                                 RelativePath="..\Objects\fileobject.c"
    1431                                 >
    1432                         </File>
    1433                         <File
    1434                                 RelativePath="..\Objects\stringlib\find.h"
    1435                                 >
    1436                         </File>
    1437                         <File
    1438                                 RelativePath="..\Objects\floatobject.c"
    1439                                 >
    1440                         </File>
    1441                         <File
    1442                                 RelativePath="..\Objects\frameobject.c"
    1443                                 >
    1444                         </File>
    1445                         <File
    1446                                 RelativePath="..\Objects\funcobject.c"
    1447                                 >
    1448                         </File>
    1449                         <File
    1450                                 RelativePath="..\Objects\genobject.c"
    1451                                 >
    1452                         </File>
    1453                         <File
    1454                                 RelativePath="..\Objects\intobject.c"
    1455                                 >
    1456                         </File>
    1457                         <File
    1458                                 RelativePath="..\Objects\iterobject.c"
    1459                                 >
    1460                         </File>
    1461                         <File
    1462                                 RelativePath="..\Objects\listobject.c"
    1463                                 >
    1464                         </File>
    1465                         <File
    1466                                 RelativePath="..\Objects\longobject.c"
    1467                                 >
    1468                         </File>
    1469                         <File
    1470                                 RelativePath="..\Objects\methodobject.c"
    1471                                 >
    1472                         </File>
    1473                         <File
    1474                                 RelativePath="..\Objects\moduleobject.c"
    1475                                 >
    1476                         </File>
    1477                         <File
    1478                                 RelativePath="..\Objects\object.c"
    1479                                 >
    1480                         </File>
    1481                         <File
    1482                                 RelativePath="..\Objects\obmalloc.c"
    1483                                 >
    1484                         </File>
    1485                         <File
    1486                                 RelativePath="..\Objects\stringlib\partition.h"
    1487                                 >
    1488                         </File>
    1489                         <File
    1490                                 RelativePath="..\Objects\rangeobject.c"
    1491                                 >
    1492                         </File>
    1493                         <File
    1494                                 RelativePath="..\Objects\setobject.c"
    1495                                 >
    1496                         </File>
    1497                         <File
    1498                                 RelativePath="..\Objects\sliceobject.c"
    14991551                                >
    15001552                        </File>
     
    16601712                        </File>
    16611713                        <File
     1714                                RelativePath="..\Python\dtoa.c"
     1715                                >
     1716                        </File>
     1717                        <File
    16621718                                RelativePath="..\Python\dynload_win.c"
    16631719                                >
     
    16961752                        </File>
    16971753                        <File
    1698                                 RelativePath="..\Python\getmtime.c"
    1699                                 >
    1700                         </File>
    1701                         <File
    17021754                                RelativePath="..\Python\getopt.c"
    17031755                                >
     
    17521804                        </File>
    17531805                        <File
     1806                                RelativePath="..\Python\pyctype.c"
     1807                                >
     1808                        </File>
     1809                        <File
    17541810                                RelativePath="..\Python\pyfpe.c"
    17551811                                >
     
    17771833                        <File
    17781834                                RelativePath="..\Python\pythonrun.c"
     1835                                >
     1836                        </File>
     1837                        <File
     1838                                RelativePath="..\Python\random.c"
    17791839                                >
    17801840                        </File>
  • python/vendor/current/PCbuild/readme.txt

    r2 r388  
    5656PC/VS7.1/
    5757    Visual Studio 2003 (7.1)
    58 PCbuild8/
     58PC/VS8.0/
    5959    Visual Studio 2005 (8.0)
    6060
     
    108108    project (see below).
    109109_sqlite3
    110     Wraps SQLite 3.5.9, which is currently built by sqlite3.vcproj (see below).
     110    Wraps SQLite 3.6.21, which is currently built by sqlite3.vcproj (see below).
    111111_tkinter
    112112    Wraps the Tk windowing system.  Unlike _bsddb and _sqlite3, there's no
     
    122122    directory:
    123123
    124     svn export http://svn.python.org/projects/external/bzip2-1.0.5
     124    svn export http://svn.python.org/projects/external/bzip2-1.0.6
    125125
    126126    ** NOTE: if you use the Tools\buildbot\external(-amd64).bat approach for
     
    129129
    130130    A custom pre-link step in the bz2 project settings should manage to
    131     build bzip2-1.0.5\libbz2.lib by magic before bz2.pyd (or bz2_d.pyd) is
     131    build bzip2-1.0.6\libbz2.lib by magic before bz2.pyd (or bz2_d.pyd) is
    132132    linked in PCbuild\.
    133133    However, the bz2 project is not smart enough to remove anything under
    134     bzip2-1.0.5\ when you do a clean, so if you want to rebuild bzip2.lib
    135     you need to clean up bzip2-1.0.5\ by hand.
     134    bzip2-1.0.6\ when you do a clean, so if you want to rebuild bzip2.lib
     135    you need to clean up bzip2-1.0.6\ by hand.
    136136
    137137    All of this managed to build libbz2.lib in
    138     bzip2-1.0.5\$platform-$configuration\, which the Python project links in.
     138    bzip2-1.0.6\$platform-$configuration\, which the Python project links in.
    139139
    140140_ssl
     
    143143    Get the source code through
    144144
    145     svn export http://svn.python.org/projects/external/openssl-0.9.8l
     145    svn export http://svn.python.org/projects/external/openssl-0.9.8y
    146146
    147147    ** NOTE: if you use the Tools\buildbot\external(-amd64).bat approach for
     
    156156        http://nasm.sf.net
    157157    for x86 builds.  Put nasmw.exe anywhere in your PATH.
     158    Note: recent releases of nasm only have nasm.exe. Just rename it to
     159    nasmw.exe.
    158160
    159161    You can also install ActivePerl from
    160         http://www.activestate.com/Products/ActivePerl/
     162        http://www.activestate.com/activeperl/
    161163    if you like to use the official sources instead of the files from
    162164    python's subversion repository. The svn version contains pre-build
     
    261263from http://sf.net/projects/vsextcomp. The plugin will wrap cl.exe, to
    262264locate the proper target compiler, and convert compiler options
    263 accordingly. The project files require atleast version 0.9.
     265accordingly. The project files require at least version 0.9.
    264266
    265267Building for AMD64
  • python/vendor/current/PCbuild/rt.bat

    r2 r388  
    3131set qmode=
    3232set dashO=
    33 set tcltk=
     33set tcltk=tcltk
    3434
    3535:CheckOpts
     
    3939if "%1"=="-x64" (set prefix=amd64) & (set tcltk=tcltk64) & shift & goto CheckOpts
    4040
    41 PATH %PATH%;..\..\%tcltk%\bin
     41PATH %PATH%;%~dp0..\..\%tcltk%\bin
    4242set exe=%prefix%\python%suffix%
    43 set cmd=%exe% %dashO% -E -tt ../lib/test/regrtest.py %1 %2 %3 %4 %5 %6 %7 %8 %9
     43set cmd=%exe% %dashO% -Wd -3 -E -tt ../lib/test/regrtest.py %1 %2 %3 %4 %5 %6 %7 %8 %9
    4444if defined qmode goto Qmode
    4545
  • python/vendor/current/PCbuild/select.vcproj

    r2 r388  
    5555                        <Tool
    5656                                Name="VCLinkerTool"
    57                                 AdditionalDependencies="wsock32.lib"
     57                                AdditionalDependencies="ws2_32.lib"
    5858                                IgnoreDefaultLibraryNames="libc"
    5959                                BaseAddress="0x1D110000"
     
    117117                        <Tool
    118118                                Name="VCLinkerTool"
    119                                 AdditionalDependencies="wsock32.lib"
     119                                AdditionalDependencies="ws2_32.lib"
    120120                                IgnoreDefaultLibraryNames="libc"
    121121                                BaseAddress="0x1D110000"
     
    179179                        <Tool
    180180                                Name="VCLinkerTool"
    181                                 AdditionalDependencies="wsock32.lib"
     181                                AdditionalDependencies="ws2_32.lib"
    182182                                IgnoreDefaultLibraryNames="libc"
    183183                                BaseAddress="0x1D110000"
     
    242242                        <Tool
    243243                                Name="VCLinkerTool"
    244                                 AdditionalDependencies="wsock32.lib"
     244                                AdditionalDependencies="ws2_32.lib"
    245245                                IgnoreDefaultLibraryNames="libc"
    246246                                BaseAddress="0x1D110000"
     
    304304                        <Tool
    305305                                Name="VCLinkerTool"
    306                                 AdditionalDependencies="wsock32.lib"
     306                                AdditionalDependencies="ws2_32.lib"
    307307                                IgnoreDefaultLibraryNames="libc"
    308308                                BaseAddress="0x1D110000"
     
    367367                        <Tool
    368368                                Name="VCLinkerTool"
    369                                 AdditionalDependencies="wsock32.lib"
     369                                AdditionalDependencies="ws2_32.lib"
    370370                                IgnoreDefaultLibraryNames="libc"
    371371                                BaseAddress="0x1D110000"
     
    430430                        <Tool
    431431                                Name="VCLinkerTool"
    432                                 AdditionalDependencies="wsock32.lib"
     432                                AdditionalDependencies="ws2_32.lib"
    433433                                IgnoreDefaultLibraryNames="libc"
    434434                                BaseAddress="0x1D110000"
     
    493493                        <Tool
    494494                                Name="VCLinkerTool"
    495                                 AdditionalDependencies="wsock32.lib"
     495                                AdditionalDependencies="ws2_32.lib"
    496496                                IgnoreDefaultLibraryNames="libc"
    497497                                BaseAddress="0x1D110000"
  • python/vendor/current/PCbuild/vs9to8.py

    r2 r388  
    2525            # Bah. VS8.0 does not expand macros in file names.
    2626            # Replace them here.
    27             lines = lines.replace('$(sqlite3Dir)', '..\\..\\..\\sqlite-3.5.9')
     27            lines = lines.replace('$(sqlite3Dir)', '..\\..\\..\\sqlite-3.6.21')
    2828            lines = lines.replace('$(bsddbDir)\\..\\..', '..\\..\\..\\db-4.7.25.0\\build_windows\\..')
    2929            lines = lines.replace('$(bsddbDir)', '..\\..\\..\\db-4.7.25.0\\build_windows')
Note: See TracChangeset for help on using the changeset viewer.