Skip to content

Commit fd34018

Browse files
Merge pull request #9 from isuruf/windows
Fix windows support
2 parents e739f95 + 1483f1f commit fd34018

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

setup.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,12 @@
88

99
from distutils.sysconfig import get_config_vars
1010

11-
(opt,) = get_config_vars('OPT')
12-
os.environ['OPT'] = " ".join(flag for flag in opt.split() if flag != '-Wstrict-prototypes')
13-
1411
if sys.platform == 'win32':
15-
libraries = ["flint", "arb", "mpir", "mpfr", "pthreads"]
16-
default_lib_dirs += [
17-
os.path.join(d, "manual-link") for d in default_lib_dirs
18-
]
12+
libraries = ["arb", "flint", "mpir", "mpfr", "pthreads"]
1913
else:
20-
libraries = ["flint", "arb"]
14+
libraries = ["arb", "flint"]
15+
(opt,) = get_config_vars('OPT')
16+
os.environ['OPT'] = " ".join(flag for flag in opt.split() if flag != '-Wstrict-prototypes')
2117

2218
default_include_dirs += [
2319
os.path.join(d, "flint") for d in default_include_dirs

0 commit comments

Comments
 (0)