MCPcopy Create free account
hub / github.com/cztomczak/cefpython / build_vcproj_DEPRECATED

Function build_vcproj_DEPRECATED

tools/build.py:461–503  ·  view source on GitHub ↗

DEPRECATED. Not used currently.

(vcproj)

Source from the content-addressed store, hash-verified

459
460
461def 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
506def compile_ask_to_continue():

Calls 1

compile_ask_to_continueFunction · 0.85

Tested by

no test coverage detected