Skip to content

Commit

Permalink
BLD: try_run fails on Python 3.5b4 for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
cgohlke committed Aug 2, 2015
1 parent ab1ea1f commit 211d042
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions numpy/random/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ def configuration(parent_package='',top_path=None):
def generate_libraries(ext, build_dir):
config_cmd = config.get_config_cmd()
libs = get_mathlibs()
tc = testcode_wincrypt()
if config_cmd.try_run(tc):
if sys.platform == 'win32':
libs.append('Advapi32')
ext.libraries.extend(libs)
return None
Expand Down Expand Up @@ -56,18 +55,6 @@ def generate_libraries(ext, build_dir):

return config

def testcode_wincrypt():
return """\
/* check to see if _WIN32 is defined */
int main(int argc, char *argv[])
{
#ifdef _WIN32
return 0;
#else
return 1;
#endif
}
"""

if __name__ == '__main__':
from numpy.distutils.core import setup
Expand Down

0 comments on commit 211d042

Please sign in to comment.