DEPRECATED. Not used currently.
(vcproj)
| 459 | |
| 460 | |
| 461 | def build_vcproj_DEPRECATED(vcproj): |
| 462 | """DEPRECATED. Not used currently.""" |
| 463 | |
| 464 | # TODO: Remove code after setuptools compilation was tested for some time |
| 465 | |
| 466 | # In VS2010 vcbuild.exe was replaced by msbuild.exe. |
| 467 | # Ufortunately WinSDK 7.1 does not come with msbuild.exe, |
| 468 | # so it would be required to install Visual Studio 2010, |
| 469 | # and to support both 32-bit ad 64-bit compilations it |
| 470 | # a non-express version would have to be installed, which |
| 471 | # is not free. So to make it free open-source it was |
| 472 | # required migrate to a new compilation system that uses |
| 473 | # distutils/setuptools packages. |
| 474 | |
| 475 | # msbuild.exe flags: |
| 476 | # /clp:disableconsolecolor |
| 477 | # msbuild /p:BuildProjectReferences=false project.proj |
| 478 | # MSBuild.exe MyProject.proj /t:build |
| 479 | |
| 480 | VS2008_BUILD = ("%LocalAppData%\\Programs\\Common\\" |
| 481 | "Microsoft\\Visual C++ for Python\\9.0\\" |
| 482 | "VC\\bin\\amd64\\vcbuild.exe") |
| 483 | VS2008_BUILD = VS2008_BUILD.replace("%LocalAppData%", |
| 484 | os.environ["LOCALAPPDATA"]) |
| 485 | |
| 486 | if PYVERSION == "27": |
| 487 | args = list() |
| 488 | args.append(VS2008_VCVARS) |
| 489 | args.append(VS_PLATFORM_ARG) |
| 490 | args.append("&&") |
| 491 | args.append(VS2008_BUILD) |
| 492 | args.append("/nocolor") |
| 493 | args.append("/nologo") |
| 494 | args.append("/nohtmllog") |
| 495 | if REBUILD_CPP: |
| 496 | args.append("/rebuild") |
| 497 | args.append(vcproj) |
| 498 | ret = subprocess.call(args, shell=True) |
| 499 | if ret != 0: |
| 500 | compile_ask_to_continue() |
| 501 | return ret |
| 502 | else: |
| 503 | raise Exception("Only Python 2.7 32-bit is currently supported") |
| 504 | |
| 505 | |
| 506 | def compile_ask_to_continue(): |
no test coverage detected