File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,11 @@ def __init__(
24
24
else :
25
25
packages = base_packages
26
26
27
+ # keep only the pinned version of a library
28
+ for pkg in packages :
29
+ if "==" in pkg and pkg .split ("==" )[0 ] in packages :
30
+ lib_name = pkg .split ("==" )[0 ]
31
+ packages .remove (lib_name )
27
32
print (packages )
28
33
29
34
self .project_name = project_name
Original file line number Diff line number Diff line change @@ -46,12 +46,6 @@ def __init__(
46
46
if "packages" in config_kwargs :
47
47
packages = list (set (packages + config_kwargs .pop ("packages" )))
48
48
49
- # keep only the pinned version of a library
50
- for pkg in packages :
51
- if "==" in pkg and pkg .split ("==" )[0 ] in packages :
52
- lib_name = pkg .split ("==" )[0 ]
53
- packages .remove (lib_name )
54
-
55
49
# Initialize base parameters
56
50
super ().__init__ (
57
51
project_name = project_name ,
You can’t perform that action at this time.
0 commit comments