File tree 2 files changed +10
-1
lines changed
2 files changed +10
-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 @@ -48,13 +48,21 @@ def get_boost_config():
48
48
return {"include_dirs" : [str (inc )], "library_dirs" : [str (lib )]}
49
49
50
50
51
+ if os .name == "nt" :
52
+ compile_args = ["/std:c++14" ]
53
+ macros = [("_USE_MATH_DEFINES" , None )]
54
+ else :
55
+ compile_args = ["-std=c++11" ]
56
+ macros = []
57
+
51
58
boost_cfg = get_boost_config ()
52
59
ext_kws = {
53
60
"libraries" : ["diffpy" ] + get_boost_libraries (),
54
- "extra_compile_args" : [ "-std=c++11" ] ,
61
+ "extra_compile_args" : compile_args ,
55
62
"extra_link_args" : [],
56
63
"include_dirs" : [numpy .get_include ()] + boost_cfg ["include_dirs" ],
57
64
"library_dirs" : boost_cfg ["library_dirs" ],
65
+ "define_macros" : macros ,
58
66
}
59
67
60
68
You can’t perform that action at this time.
0 commit comments