Skip to content

Commit

Permalink
Update debug statement
Browse files Browse the repository at this point in the history
  • Loading branch information
catanzaromj committed Jul 6, 2024
1 parent b1c7c38 commit 5bc9fde
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

<sup>1</sup> The Python package is already compiled with `robin_hood` by default.

## Usage
Expand Down
6 changes: 4 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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",
Expand Down

0 comments on commit 5bc9fde

Please sign in to comment.