You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kudu.apache.org by mg...@apache.org on 2024/10/04 11:23:03 UTC
(kudu) 02/02: [build] Fix the directory creation
This is an automated email from the ASF dual-hosted git repository.
mgreber pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/kudu.git
commit c32708d5b957514420aaa13953c25db8940fe7cb
Author: root <ac...@apache.org>
AuthorDate: Thu Oct 3 18:19:07 2024 -0700
[build] Fix the directory creation
Fixes the recursive directory creation which according to
python documentation [1] should be os.makedirs() and not
os.path.makedirs() which results in the below error:
AttributeError: module 'posixpath' has no attribute 'makedirs'
1.
https://docs.python.org/2.6/library/os.html#os.makedirs
https://docs.python.org/3.11/library/os.html#os.makedirs
Change-Id: Ifef12fd681050c5d1e6841070fdd754a7d436f8f
Reviewed-on: http://gerrit.cloudera.org:8080/21883
Reviewed-by: Alexey Serbin <al...@apache.org>
Tested-by: Marton Greber <gr...@gmail.com>
Reviewed-by: Marton Greber <gr...@gmail.com>
---
build-support/build_source_release.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/build-support/build_source_release.py b/build-support/build_source_release.py
index 933e768dc..7e5b24010 100755
--- a/build-support/build_source_release.py
+++ b/build-support/build_source_release.py
@@ -74,7 +74,7 @@ def create_tarball():
artifact_name = "apache-kudu-%s" % get_version_number()
build_dir = os.path.join(ROOT, "build")
if not os.path.exists(build_dir):
- os.path.makedirs(build_dir)
+ os.makedirs(build_dir)
tarball_path = os.path.join(build_dir, artifact_name + ".tar.gz")
print("Exporting source tarball...")
subprocess.check_output(["git", "archive",