@@ -37,7 +37,8 @@ def get_boost_config():
37
37
conda_prefix = os .environ .get ("CONDA_PREFIX" )
38
38
if not conda_prefix :
39
39
raise EnvironmentError (
40
- "Neither BOOST_PATH nor CONDA_PREFIX are set. " "Please install Boost or set BOOST_PATH."
40
+ "Neither BOOST_PATH nor CONDA_PREFIX are set. "
41
+ "Please install Boost or set BOOST_PATH."
41
42
)
42
43
if os .name == "nt" :
43
44
inc = Path (conda_prefix ) / "Library" / "include"
@@ -52,7 +53,8 @@ def get_objcryst_libraries():
52
53
conda_prefix = os .environ .get ("CONDA_PREFIX" )
53
54
if not conda_prefix :
54
55
raise EnvironmentError (
55
- "CONDA_PREFIX is not set. Please install ObjCryst using conda and activate the environment."
56
+ "CONDA_PREFIX is not set. "
57
+ "Please install ObjCryst using conda and activate the environment."
56
58
)
57
59
if os .name == "nt" :
58
60
libdir = Path (conda_prefix ) / "Library" / "lib"
@@ -64,7 +66,8 @@ def get_objcryst_libraries():
64
66
stem = Path (fn ).stem
65
67
if "objcryst" not in stem .lower ():
66
68
continue
67
- # strip a leading "lib" so that setuptools does -lObjCryst, not -llibObjCryst
69
+ # strip a leading "lib"
70
+ # so that setuptools does -lObjCryst, not -llibObjCryst
68
71
if os .name != "nt" and stem .startswith ("lib" ):
69
72
stem = stem [3 :]
70
73
libs .append (stem )
@@ -99,7 +102,11 @@ def get_objcryst_libraries():
99
102
100
103
def create_extensions ():
101
104
"Initialize Extension objects for the setup function."
102
- ext = Extension ("diffpy.srreal.srreal_ext" , glob .glob ("src/extensions/*.cpp" ), ** ext_kws )
105
+ ext = Extension (
106
+ "diffpy.srreal.srreal_ext" ,
107
+ glob .glob ("src/extensions/*.cpp" ),
108
+ ** ext_kws ,
109
+ )
103
110
return [ext ]
104
111
105
112
0 commit comments