diff --git a/deps/buildcore/base.mk b/deps/buildcore/base.mk index 83392380..0941ff26 100644 --- a/deps/buildcore/base.mk +++ b/deps/buildcore/base.mk @@ -137,7 +137,6 @@ endif .PHONY: conan conan: ${ENV_RUN} ${PYBB} conan-install ${PROJECT_NAME} - #@mkdir -p .conanbuild && cd .conanbuild && conan install ../ --build=missing -pr=${PROJECT_NAME} endif # USE_VCPKG ############################################### .PHONY: configure-xcode diff --git a/deps/buildcore/scripts/pybb.py b/deps/buildcore/scripts/pybb.py index 12f64f76..16d0b05a 100755 --- a/deps/buildcore/scripts/pybb.py +++ b/deps/buildcore/scripts/pybb.py @@ -31,9 +31,15 @@ def cat(paths: str) -> int: def mkdir(path: str) -> int: - if not os.path.exists(path) and os.path.isdir(path): - os.mkdir(path) - return 0 + if not os.path.exists(path): + try: + os.mkdir(path) + except: + return 1 + return 0 + if os.path.isdir(path): + return 0 + return 1 # this exists because Windows is utterly incapable of providing a proper rm -rf