File tree 2 files changed +9
-1
lines changed
2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -6,3 +6,4 @@ diffpy.structure
6
6
gsl
7
7
# periodictable
8
8
# pyobjcryst (up to py3.11 for mac)
9
+ # dlfcn-win32 (for windows)
Original file line number Diff line number Diff line change @@ -47,14 +47,21 @@ def get_boost_config():
47
47
lib = Path (conda_prefix ) / "lib"
48
48
return {"include_dirs" : [str (inc )], "library_dirs" : [str (lib )]}
49
49
50
+ if os .name == "nt" :
51
+ compile_args = ["/std:c++14" ]
52
+ macros = [("_USE_MATH_DEFINES" , None )]
53
+ else :
54
+ compile_args = ["-std=c++11" ]
55
+ macros = []
50
56
51
57
boost_cfg = get_boost_config ()
52
58
ext_kws = {
53
59
"libraries" : ["diffpy" ] + get_boost_libraries (),
54
- "extra_compile_args" : [ "-std=c++11" ] ,
60
+ "extra_compile_args" : compile_args ,
55
61
"extra_link_args" : [],
56
62
"include_dirs" : [numpy .get_include ()] + boost_cfg ["include_dirs" ],
57
63
"library_dirs" : boost_cfg ["library_dirs" ],
64
+ "define_macros" : macros ,
58
65
}
59
66
60
67
You can’t perform that action at this time.
0 commit comments