Skip to content

Commit c410304

Browse files
committed
Update validation
1 parent c4e081d commit c410304

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/validation.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1726,9 +1726,7 @@ fn validate_distribution(
17261726
};
17271727

17281728
let is_debug = dist_filename.contains("-debug-");
1729-
1730-
// For now, there are now static builds — this is historic
1731-
let is_static = false;
1729+
let is_static = dist_filename.contains("+static");
17321730

17331731
let mut tf = crate::open_distribution_archive(dist_path)?;
17341732

src/verify_distribution.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def test_ctypes(self):
5353
import ctypes
5454

5555
# pythonapi will be None on statically linked binaries.
56-
is_static = False # TODO: Populate if we have statically linked binaries again
56+
is_static = "static" in os.environ["BUILD_OPTIONS"]
5757
if is_static:
5858
self.assertIsNone(ctypes.pythonapi)
5959
else:

0 commit comments

Comments
 (0)