5
5
# ScanCode is a trademark of nexB Inc.
6
6
# SPDX-License-Identifier: Apache-2.0
7
7
# See http://www.apache.org/licenses/LICENSE-2.0 for the license text.
8
- # See https://github.com/nexB /skeleton for support or download.
8
+ # See https://github.com/aboutcode-org /skeleton for support or download.
9
9
# See https://aboutcode.org for more information about nexB OSS projects.
10
10
#
11
11
55
55
"-d" ,
56
56
"--dest" ,
57
57
"dest_dir" ,
58
- type = click .Path (exists = True , readable = True , path_type = str , file_okay = False ),
58
+ type = click .Path (exists = True , readable = True ,
59
+ path_type = str , file_okay = False ),
59
60
metavar = "DIR" ,
60
61
default = utils_thirdparty .THIRDPARTY_DIR ,
61
62
show_default = True ,
@@ -224,7 +225,8 @@ def fetch_thirdparty(
224
225
environments = None
225
226
if wheels :
226
227
evts = itertools .product (python_versions , operating_systems )
227
- environments = [utils_thirdparty .Environment .from_pyver_and_os (pyv , os ) for pyv , os in evts ]
228
+ environments = [utils_thirdparty .Environment .from_pyver_and_os (
229
+ pyv , os ) for pyv , os in evts ]
228
230
229
231
# Collect PyPI repos
230
232
repos = []
@@ -260,13 +262,14 @@ def fetch_thirdparty(
260
262
repos = repos ,
261
263
)
262
264
if not fetched :
263
- wheels_or_sdist_not_found [f"{ name } =={ version } " ].append (environment )
265
+ wheels_or_sdist_not_found [f"{ name } =={ version } " ].append (
266
+ environment )
264
267
if TRACE :
265
268
print (f" NOT FOUND" )
266
269
267
270
if (sdists or
268
271
(f"{ name } =={ version } " in wheels_or_sdist_not_found and name in sdist_only )
269
- ):
272
+ ):
270
273
if TRACE :
271
274
print (f" ==> Fetching sdist: { name } =={ version } " )
272
275
@@ -289,7 +292,8 @@ def fetch_thirdparty(
289
292
sdist_missing = sdists and "sdist" in dists and not name in wheel_only
290
293
if sdist_missing :
291
294
mia .append (f"SDist missing: { nv } { dists } " )
292
- wheels_missing = wheels and any (d for d in dists if d != "sdist" ) and not name in sdist_only
295
+ wheels_missing = wheels and any (
296
+ d for d in dists if d != "sdist" ) and not name in sdist_only
293
297
if wheels_missing :
294
298
mia .append (f"Wheels missing: { nv } { dists } " )
295
299
@@ -299,7 +303,8 @@ def fetch_thirdparty(
299
303
raise Exception (mia )
300
304
301
305
print (f"==> FETCHING OR CREATING ABOUT AND LICENSE FILES" )
302
- utils_thirdparty .fetch_abouts_and_licenses (dest_dir = dest_dir , use_cached_index = use_cached_index )
306
+ utils_thirdparty .fetch_abouts_and_licenses (
307
+ dest_dir = dest_dir , use_cached_index = use_cached_index )
303
308
utils_thirdparty .clean_about_files (dest_dir = dest_dir )
304
309
305
310
# check for problems
0 commit comments