@@ -129,6 +129,7 @@ def create_buildinfo(output_dir_path: str, pymoldir: str = "."):
129129 """
130130 )
131131
132+
132133# handle extra arguments
133134def str2bool (v : str ) -> bool :
134135 if v .lower () in ("true" , "yes" ):
@@ -166,7 +167,7 @@ class options:
166167 "--jobs" ,
167168 "-j" ,
168169 type = int ,
169- help = "for parallel builds " " (defaults to number of processors)" ,
170+ help = "for parallel builds (defaults to number of processors)" ,
170171)
171172parser .add_argument (
172173 "--libxml" ,
@@ -430,9 +431,7 @@ def install_pymol_path(self, base_path):
430431 self .copy (name , os .path .join (base_path , name ))
431432
432433 if options .openvr :
433- self .copy (
434- "contrib/vr/README.md" , os .path .join (base_path , "README-VR.txt" )
435- )
434+ self .copy ("contrib/vr/README.md" , os .path .join (base_path , "README-VR.txt" ))
436435
437436 def make_launch_script (self ):
438437 if sys .platform .startswith ("win" ):
@@ -674,7 +673,7 @@ def make_launch_script(self):
674673 break
675674 else :
676675 raise LookupError (
677- "VTK-m headers not found." f' PREFIX_PATH={ ":" .join (prefix_path )} '
676+ f "VTK-m headers not found. PREFIX_PATH={ ':' .join (prefix_path )} "
678677 )
679678 def_macros += [
680679 ("_PYMOL_VTKM" , None ),
@@ -737,19 +736,13 @@ def get_sources(subdirs, suffixes=(".c", ".cpp")):
737736 [f for d in subdirs for s in suffixes for f in glob .glob (d + "/*" + s )]
738737 )
739738
740- # Python includes
741739inc_dirs .append (sysconfig .get_paths ()["include" ])
742740inc_dirs .append (sysconfig .get_paths ()["platinclude" ])
743741
744742champ_inc_dirs = ["contrib/champ" ]
745743champ_inc_dirs .append (sysconfig .get_paths ()["include" ])
746744champ_inc_dirs .append (sysconfig .get_paths ()["platinclude" ])
747745
748- if WIN :
749- # pyconfig.py forces linking against pythonXY.lib on MSVC
750- py_lib = Path (sysconfig .get_paths ()["stdlib" ]).parent / "libs"
751- lib_dirs .append (str (py_lib ))
752-
753746ext_modules += [
754747 CMakeExtension (
755748 name = "pymol._cmd" ,
@@ -761,7 +754,7 @@ def get_sources(subdirs, suffixes=(".c", ".cpp")):
761754 extra_link_args = ext_link_args ,
762755 extra_compile_args = ext_comp_args ,
763756 ),
764- CMakeExtension (
757+ CMakeExtension (
765758 name = "chempy.champ._champ" ,
766759 sources = get_sources (["contrib/champ" ]),
767760 include_dirs = champ_inc_dirs ,
0 commit comments