diff options
author | Christoph Gohlke <cgohlke@uci.edu> | 2015-08-01 19:06:18 -0700 |
---|---|---|
committer | Christoph Gohlke <cgohlke@uci.edu> | 2015-08-01 19:06:18 -0700 |
commit | 211d0426b0f945d4098d4002e62898997badaeec (patch) | |
tree | adae13708c4a2cb0c4b2c44bc2745fb29a5bde66 /numpy/random/setup.py | |
parent | ab1ea1f094367070b475c5bfc5c0dfc9284eb1d1 (diff) | |
download | numpy-211d0426b0f945d4098d4002e62898997badaeec.tar.gz |
BLD: try_run fails on Python 3.5b4 for Windows
Diffstat (limited to 'numpy/random/setup.py')
-rw-r--r-- | numpy/random/setup.py | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/numpy/random/setup.py b/numpy/random/setup.py index 33c12975b..9d905900c 100644 --- a/numpy/random/setup.py +++ b/numpy/random/setup.py @@ -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 @@ -56,18 +55,6 @@ def configuration(parent_package='',top_path=None): 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 |