File tree 1 file changed +7
-4
lines changed
1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -85,16 +85,19 @@ For example:
85
85
},
86
86
# For the list of standard platforms that the rules_python has toolchains for, default to
87
87
# the following requirements file.
88
- " requirements_lock" = " requirements_lock.txt" ,
88
+ requirements_lock = " requirements_lock.txt" ,
89
89
```
90
90
91
+ In case of duplicate platforms, ` rules_python ` will raise an error as there has
92
+ to be unambiguous mapping of the requirement files to the (os, arch) tuples.
93
+
91
94
An alternative way is to use per-OS requirement attributes.
92
95
``` starlark
93
96
# ...
97
+ requirements_windows = " requirements_windows.txt" ,
94
98
requirements_darwin = " requirements_darwin.txt" ,
95
- # For the list of standard platforms that the rules_python has toolchains for, default to
96
- # the following requirements file.
97
- " requirements_lock" = " requirements_lock.txt" ,
99
+ # For the remaining platforms (which is basically only linux OS), use this file.
100
+ requirements_lock = " requirements_lock.txt" ,
98
101
)
99
102
```
100
103
You can’t perform that action at this time.
0 commit comments