Skip to content

Commit

Permalink
work around pypa/pip#11386
Browse files Browse the repository at this point in the history
  • Loading branch information
fgregg committed Aug 17, 2022
1 parent 14521e4 commit 12f2ee6
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Install dependencies
run: |
pip install --upgrade pip
pip install -e .
pip install -e . --config-settings editable_mode=compat

This comment has been minimized.

Copy link
@fgregg

fgregg Aug 17, 2022

Author Contributor

@NickCrews i think this is the problem pypa/pip#11386

pip install -r requirements.txt
- name: flake8
run: flake8 dedupe tests benchmarks/benchmarks
Expand Down
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,8 @@ Once you have virtualenvwrapper set up,
mkvirtualenv dedupe
git clone git://github.com/dedupeio/dedupe.git
cd dedupe
pip install "numpy>=1.9"
pip install -e . --config-settings editable_mode=compat
pip install -r requirements.txt
cython src/*.pyx
pip install -e .
```

If these tests pass, then everything should have been installed correctly!
Expand Down
6 changes: 3 additions & 3 deletions dedupe/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,10 +401,10 @@ def pairs(self, data_1: Data, data_2: Data) -> RecordPairs:
self.fingerprinter.reset_indices()

con.executescript(
"""CREATE INDEX block_key_a_idx
"""CREATE UNIQUE INDEX block_key_a_idx
ON blocking_map_a (record_id, block_key);
CREATE INDEX block_key_b_idx
CREATE UNIQUE INDEX block_key_b_idx
ON blocking_map_b (block_key, record_id);"""
)
con.execute("""ANALYZE""")
Expand Down Expand Up @@ -682,7 +682,7 @@ def index(self, data: Data) -> None: # pragma: no cover
)

con.execute(
"""CREATE INDEX IF NOT EXISTS
"""CREATE UNIQUE INDEX IF NOT EXISTS
indexed_records_block_key_idx
ON indexed_records
(block_key, record_id)"""
Expand Down
1 change: 0 additions & 1 deletion tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import warnings
from collections import OrderedDict

import dedupe
import dedupe.api


Expand Down

0 comments on commit 12f2ee6

Please sign in to comment.