Skip to content

Commit

Permalink
Add tests, ignore packages from other platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
nkaretnikov committed Apr 8, 2024
1 parent 3432c61 commit 08a673f
Show file tree
Hide file tree
Showing 4 changed files with 1,160 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,13 @@ def write_file(filename, s):

# Adds dependencies
for p in specification.lockfile.package:
# Ignores packages not matching the current platform. Versions can
# be different between platforms or a package might not support all
# platforms. constructor is cross-friendly, but we're currently
# building only for the current architecture, see the comment in
# get_installer_platform
if p.platform != get_installer_platform():
continue
if p.manager == "pip":
pip_dependencies.append(f"{p.name}=={p.version}")
else:
Expand Down
Loading

0 comments on commit 08a673f

Please sign in to comment.