I tried it few times. BTW, first there was an error because it assumed I have the “six” package and didn’t download it iself. I was able to fix it myself, but just letting you know.
The file build.py exists:
#!/usr/bin/python
import sys
import os
import argparse
from os.path import join, realpath, dirname
from Scripts.common import get_ini_conf, write_ini_conf
if __name__ == "__main__":
# Arguments
parser = argparse.ArgumentParser(description="P3DModuleBuilder")
parser.add_argument(
'--optimize', type=int, default=None,
help="Optimize level, should match the one used for the Panda3D build",)
parser.add_argument(
"--clean", action="store_true", help="Forces a clean rebuild")
args = parser.parse_args()
# Python 2 compatibility
if sys.version_info.major > 2:
raw_input = input
config_file = join(dirname(realpath(__file__)), "config.ini")
config = get_ini_conf(config_file)
# Find cached module name
if "module_name" not in config or not config["module_name"]:
module_name = str(raw_input("Enter a module name: "))
config["module_name"] = module_name.strip()
# Write back config
write_ini_conf(config, config_file)
# Just execute the build script
from Scripts.setup import make_output_dir, run_cmake, run_cmake_build
make_output_dir(clean=args.clean)
run_cmake(config, args)
run_cmake_build(config, args)
print("Success!")
sys.exit(0)
As for the second option, I ran update, then executed build.py .Got an error:
Creating directory C:\Users\User\Desktop\RenderPipeline-refactoring_beta\Code\Na
tive\Scripts\..\win_amd64_py27
Executing command: cmake C:/Users/User/Desktop/RenderPipeline-refactoring_beta/
Code/Native -DCMAKE_BUILD_TYPE=RelWithDebInfo -DPYTHON_EXECUTABLE:STRING=C:\Pand
a3D-1.10.0-x64\python\python.exe -DPROJECT_NAME:STRING=RSNative -DINTERROGATE_LI
B:STRING=libp3interrogatedb -GVisual Studio 10 2010 Win64 -DPYTHONVER:STRING=27
-DIGATE_VERBOSE=0 -DOPTIMIZE=3
Traceback (most recent call last):
File "build.py", line 40, in <module>
run_cmake(config, args)
File "C:\Users\User\Desktop\RenderPipeline-refactoring_beta\Code\Native\Script
s\setup.py", line 90, in run_cmake
try_execute("cmake", join_abs(get_script_dir(), ".."), *cmake_args)
File "C:\Users\User\Desktop\RenderPipeline-refactoring_beta\Code\Native\Script
s\common.py", line 157, in try_execute
output = subprocess.check_output(args, bufsize=1, stderr=subprocess.STDOUT)
File "C:\Panda3D-1.10.0-x64\python\lib\subprocess.py", line 566, in check_outp
ut
process = Popen(stdout=PIPE, *popenargs, **kwargs)
File "C:\Panda3D-1.10.0-x64\python\lib\subprocess.py", line 710, in __init__
errread, errwrite)
File "C:\Panda3D-1.10.0-x64\python\lib\subprocess.py", line 958, in _execute_c
hild
startupinfo)
WindowsError: [Error 2] The system cannot find the file specified
I downloaded the WHL of subprocess from here, pypi.python.org/pypi/pyutilib.subprocess , installed it with PIP,
pip install pyutilib.subprocess-3.6.2-py2-none-any.whl
but same error.