File tree Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 33class CustomBuildHook (BuildHookInterface ):
44 def initialize (self , version , build_data ):
55 """Add agent package if not installing core-only."""
6- target = build_data ['wheel' ]['targets' ][0 ]
7- extras = target .get ('options' , {}).get ('extras' , [])
8-
9- if 'core' not in extras :
10- target ['packages' ].append ('commit0.optional.agent' )
6+ if 'wheel' not in build_data :
7+ return
8+
9+ for target in build_data .get ('wheel' , {}).get ('targets' , []):
10+ extras = target .get ('options' , {}).get ('extras' , [])
11+ packages = target .get ('packages' , [])
12+
13+ if 'core' not in extras and 'commit0.optional.agent' not in packages :
14+ packages .append ('commit0.optional.agent' )
15+ target ['packages' ] = packages
Original file line number Diff line number Diff line change 1+ Subproject commit a853f8168dc8187eebbd788c8fc4a4137644f74b
You can’t perform that action at this time.
0 commit comments