Skip to content

Commit 3dc1218

Browse files
committed
Use pip -e flag
This speeds local 'make check' round trips while developing, though at the trade of having to push dependencies into more localized Make recipes. References: * https://pip.pypa.io/en/stable/reference/pip_install/#cmdoption-e Signed-off-by: Alex Nelson <alexander.nelson@nist.gov>
1 parent c902db3 commit 3dc1218

File tree

4 files changed

+10
-5
lines changed

4 files changed

+10
-5
lines changed

tests/Makefile

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,6 @@ all: \
3737
.venv.done.log: \
3838
$(top_srcdir)/.git_submodule_init.done.log \
3939
$(top_srcdir)/case_utils/__init__.py \
40-
$(top_srcdir)/case_utils/case_file/__init__.py \
41-
$(top_srcdir)/case_utils/case_sparql_construct/__init__.py \
42-
$(top_srcdir)/case_utils/case_sparql_select/__init__.py \
43-
$(top_srcdir)/case_utils/local_uuid.py \
4440
$(top_srcdir)/setup.cfg \
4541
$(top_srcdir)/setup.py \
4642
requirements.txt
@@ -58,7 +54,9 @@ all: \
5854
--requirement requirements.txt
5955
source venv/bin/activate \
6056
&& cd $(top_srcdir) \
61-
&& python3 setup.py install
57+
&& pip install \
58+
--editable \
59+
.
6260
touch $@
6361

6462
all-case_file: \

tests/case_file/Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,8 @@ sample.txt.done.log: \
105105
sample.txt.json: \
106106
$(tests_srcdir)/src/compact.py \
107107
$(tests_srcdir)/src/isomorphic_diff.py \
108+
$(top_srcdir)/case_utils/case_file/__init__.py \
109+
$(top_srcdir)/case_utils/local_uuid.py \
108110
sample.txt-nocompact.json
109111
rm -f $@ _$@ __$@
110112
export DEMO_UUID_REQUESTING_NONRANDOM=NONRANDOM_REQUESTED \
@@ -135,6 +137,7 @@ sample.txt.ttl: \
135137
$(RDF_TOOLKIT_JAR) \
136138
$(tests_srcdir)/.venv.done.log \
137139
$(top_srcdir)/case_utils/case_file/__init__.py \
140+
$(top_srcdir)/case_utils/local_uuid.py \
138141
sample.txt.done.log
139142
rm -f _$@ __$@
140143
export DEMO_UUID_REQUESTING_NONRANDOM=NONRANDOM_REQUESTED \
@@ -156,6 +159,7 @@ sample.txt-disable_hashes.ttl: \
156159
$(RDF_TOOLKIT_JAR) \
157160
$(tests_srcdir)/.venv.done.log \
158161
$(top_srcdir)/case_utils/case_file/__init__.py \
162+
$(top_srcdir)/case_utils/local_uuid.py \
159163
sample.txt.done.log
160164
rm -f _$@ __$@
161165
export DEMO_UUID_REQUESTING_NONRANDOM=NONRANDOM_REQUESTED \
@@ -179,6 +183,7 @@ sample.txt-nocompact.json: \
179183
$(tests_srcdir)/.venv.done.log \
180184
$(tests_srcdir)/src/isomorphic_diff.py \
181185
$(top_srcdir)/case_utils/case_file/__init__.py \
186+
$(top_srcdir)/case_utils/local_uuid.py \
182187
sample.txt.done.log
183188
rm -f _$@
184189
export DEMO_UUID_REQUESTING_NONRANDOM=NONRANDOM_REQUESTED \

tests/case_sparql_construct/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ clean:
3535

3636
output.ttl: \
3737
$(tests_srcdir)/.venv.done.log \
38+
$(top_srcdir)/case_utils/case_sparql_construct/__init__.py \
3839
input-1.sparql \
3940
input-2.ttl \
4041
input-3.json

tests/case_sparql_select/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ clean:
5252

5353
output.%: \
5454
$(tests_srcdir)/.venv.done.log \
55+
$(top_srcdir)/case_utils/case_sparql_select/__init__.py \
5556
input-1.sparql \
5657
input-2.ttl \
5758
input-3.json

0 commit comments

Comments
 (0)