Skip to content

Commit 7d5d60f

Browse files
authored
create_package_and_install properly handles when a specifier is not set for a targeted package within setup.py (Azure#25719)
1 parent aac54ba commit 7d5d60f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eng/tox/create_package_and_install.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ def build_and_discover_package(setuppy_path, dist_dir, target_setup, package_typ
234234
addition_necessary = False
235235

236236
# ...do we need to install the new version? if the existing specifier matches, we're fine
237-
if installed_pkgs[req_name] in req_specifier:
237+
if req_specifier is not None and installed_pkgs[req_name] in req_specifier:
238238
addition_necessary = False
239239

240240
if addition_necessary:

0 commit comments

Comments
 (0)