From e7574054f51fffc1510284bf61f5059c827a48bd Mon Sep 17 00:00:00 2001 From: Robin Linacre Date: Mon, 8 Nov 2021 07:24:22 +0000 Subject: [PATCH 1/2] add function that outputs jar path --- splink/case_statements.py | 5 ++--- splink/jar_location.py | 5 +++++ 2 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 splink/jar_location.py diff --git a/splink/case_statements.py b/splink/case_statements.py index 8ba87bec29..5d4587abdb 100644 --- a/splink/case_statements.py +++ b/splink/case_statements.py @@ -1,5 +1,6 @@ import warnings import re +from .jar_location import similarity_jar_location def _check_jaro_registered(spark): @@ -32,9 +33,7 @@ def _get_spark_jars_string(): """ - import splink - - path = splink.__file__[0:-11] + "jars/scala-udf-similarity-0.0.9.jar" + path = similarity_jar_location() message = ( "You will need to add it by correctly configuring your spark config\n" diff --git a/splink/jar_location.py b/splink/jar_location.py new file mode 100644 index 0000000000..da562f9581 --- /dev/null +++ b/splink/jar_location.py @@ -0,0 +1,5 @@ +def similarity_jar_location(): + import splink + + path = splink.__file__[0:-11] + "jars/scala-udf-similarity-0.0.9.jar" + return path \ No newline at end of file From 77f8a452f1bd4230c527bd0e5a3ab787f6ecfc31 Mon Sep 17 00:00:00 2001 From: Robin Linacre Date: Mon, 8 Nov 2021 07:24:37 +0000 Subject: [PATCH 2/2] bump version --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 838b1c4e6a..b90220803c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "splink" -version = "2.0.0" +version = "2.0.1" description = "Implementation in Apache Spark of the EM algorithm to estimate parameters of Fellegi-Sunter's canonical model of record linkage." authors = ["Robin Linacre ", "Sam Lindsay", "Theodore Manassis"] license = "MIT"