From 5bc9fdecb88b067d140fb4cd57ace03edc3090b0 Mon Sep 17 00:00:00 2001 From: Michael Catanzaro Date: Sat, 6 Jul 2024 15:36:51 -0400 Subject: [PATCH] Update debug statement --- README.md | 9 +++++++++ setup.py | 6 ++++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7a06d61..a09be72 100644 --- a/README.md +++ b/README.md @@ -63,6 +63,15 @@ To be able to use `robin_hood` instead of STL, you only need to clone the reposi git clone https://github.com/martinus/robin-hood-hashing ripser/robinhood ``` +After cloning robinhood with the above command, install `ripser.py` with + +``` +pip install -v -e . +``` + +This will install a local, editable version of `ripser.py` with verbose output. In the verbose output, +you will see confirmation that robinhood was found or not. + 1 The Python package is already compiled with `robin_hood` by default. ## Usage diff --git a/setup.py b/setup.py index d0aa7aa..1d75635 100644 --- a/setup.py +++ b/setup.py @@ -62,7 +62,9 @@ def run(self): # Robinhood robinhood_path = os.path.join("ripser", "robinhood") if os.path.isdir(robinhood_path): - print("\nFound robinhood. Using for ripser.py compilation.\n") + print( + "\nFound local copy of robinhood! Using robinhood for ripser.py compilation.\n" + ) macros.extend([("USE_ROBINHOOD_HASHMAP", 1)]) robinhood_include_path = os.path.join("src", "include") @@ -75,7 +77,7 @@ def run(self): ["-I" + os.path.join(robinhood_path, robinhood_include_path)] ) else: - print("did not find robinhood") + print("Did not find a local copy of robinhood. Proceeding anyways.") ext_modules = Extension( "pyRipser",