File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments