This is an automated email from the ASF dual-hosted git repository.
jmalkin pushed a commit to branch python
in repository https://gitbox.apache.org/repos/asf/datasketches-spark.git
The following commit(s) were added to refs/heads/python by this push:
new 8945522 Ensure python deps path exists before copying into it
8945522 is described below
commit 894552247e75f82119e82921e24d99b68a5caf85
Author: Jon <[email protected]>
AuthorDate: Thu Feb 13 21:18:44 2025 -0800
Ensure python deps path exists before copying into it
---
python/setup.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/python/setup.py b/python/setup.py
index 57a73f0..5da288a 100644
--- a/python/setup.py
+++ b/python/setup.py
@@ -22,7 +22,7 @@ from setuptools import setup
from shutil import copyfile
DS_SPARK_HOME = os.environ.get("DS_SPARK_HOME", os.path.abspath("../"))
-DEPS_PATH = "src/datasketches_spark/deps" # we can store the relevant jars in
here
+DEPS_PATH = os.path.abspath("src/datasketches_spark/deps") # we can store the
relevant jars in here
# An error message if trying to run this without first building the jars
missing_jars_message = """
@@ -63,6 +63,8 @@ def check_or_copy_files(filename_pattern: str, src: str, dst:
str) -> None:
print(missing_jars_message, file=sys.stderr)
sys.exit(-1)
+# Ensure target directory exists
+os.makedirs(DEPS_PATH, exist_ok=True)
# Find the datasketches-spark jar path -- other dependencies handled separately
sbt_scala_dir = os.path.join(DS_SPARK_HOME, "target", "scala-*")
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]