@@ -37,7 +37,8 @@ def get_boost_config():
3737 conda_prefix = os .environ .get ("CONDA_PREFIX" )
3838 if not conda_prefix :
3939 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."
4142 )
4243 if os .name == "nt" :
4344 inc = Path (conda_prefix ) / "Library" / "include"
@@ -52,7 +53,8 @@ def get_objcryst_libraries():
5253 conda_prefix = os .environ .get ("CONDA_PREFIX" )
5354 if not conda_prefix :
5455 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."
5658 )
5759 if os .name == "nt" :
5860 libdir = Path (conda_prefix ) / "Library" / "lib"
@@ -64,7 +66,8 @@ def get_objcryst_libraries():
6466 stem = Path (fn ).stem
6567 if "objcryst" not in stem .lower ():
6668 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
6871 if os .name != "nt" and stem .startswith ("lib" ):
6972 stem = stem [3 :]
7073 libs .append (stem )
@@ -99,7 +102,11 @@ def get_objcryst_libraries():
99102
100103def create_extensions ():
101104 "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+ )
103110 return [ext ]
104111
105112
0 commit comments