Skip to content

Commit ee19bbd

Browse files
authored
Nox: use inplace installs (#5865)
1 parent aa2e0c3 commit ee19bbd

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

nox.py

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,9 @@ def default(session, django_dep=('django',)):
5151
else:
5252
deps += django_dep
5353

54-
deps += LOCAL_DEPS
5554
session.install(*deps)
55+
for local_dep in LOCAL_DEPS:
56+
session.install('-e', local_dep)
5657
session.install('-e', '.')
5758

5859
# Run py.test against the unit tests.
@@ -114,10 +115,18 @@ def system(session, py):
114115

115116
# Install all test dependencies, then install this package into the
116117
# virtualenv's dist-packages.
117-
session.install('mock', 'pytest', *LOCAL_DEPS)
118-
session.install('../test_utils/', '../bigquery/', '../pubsub/',
119-
'../storage/')
120-
session.install('.')
118+
session.install('mock', 'pytest')
119+
for local_dep in LOCAL_DEPS:
120+
session.install('-e', local_dep)
121+
systest_deps = [
122+
'../bigquery/',
123+
'../pubsub/',
124+
'../storage/',
125+
'../test_utils/',
126+
]
127+
for systest_dep in systest_deps:
128+
session.install('-e', systest_dep)
129+
session.install('-e', '.')
121130

122131
# Run py.test against the system tests.
123132
session.run(

0 commit comments

Comments
 (0)