Skip to content

Commit c5b526c

Browse files
author
Niall O'Higgins
committed
tweak ordering of detection rules
1 parent 8df0a6f commit c5b526c

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

worker.js

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,6 @@ module.exports = function(ctx, cb) {
1313

1414
var CREATE_VIRTUAL_ENV = VIRTUAL_ENV_CMD + " && " + VIRTUAL_PIP + " install -r requirements.txt && "
1515

16-
ctx.addDetectionRule({
17-
filename:"setup.py",
18-
exists:true,
19-
language:"python",
20-
framework:null,
21-
prepare:CREATE_VIRTUAL_ENV + VIRTUAL_PYTHON + " setup.py develop",
22-
test:VIRTUAL_PYTHON + " setup.py test",
23-
})
24-
2516
ctx.addDetectionRule({
2617
filename:"setup.py",
2718
grep:/pyramid/i,
@@ -40,6 +31,16 @@ module.exports = function(ctx, cb) {
4031
test:VIRTUAL_PYTHON + " manage.py test",
4132
})
4233

34+
ctx.addDetectionRule({
35+
filename:"setup.py",
36+
exists:true,
37+
language:"python",
38+
framework:null,
39+
prepare:CREATE_VIRTUAL_ENV + VIRTUAL_PYTHON + " setup.py develop",
40+
test:VIRTUAL_PYTHON + " setup.py test",
41+
})
42+
43+
4344
console.log("strider-python extension loaded")
4445
cb(null, null)
4546

0 commit comments

Comments
 (0)