Fix flake8 errors.
This commit is contained in:
		| @@ -218,11 +218,14 @@ def setup_environment(self, spack_env, run_env): | ||||
|         if (self.spec.satisfies('+all') or self.spec.satisfies('+mpi')) and \ | ||||
|            self.spec.satisfies('@cluster'): | ||||
|             run_env.prepend_path('PATH', | ||||
|                                  join_path(self.prefix, 'mpi', 'intel64', 'bin')) | ||||
|                                  join_path(self.prefix, 'mpi', 'intel64', | ||||
|                                            'bin')) | ||||
|             run_env.prepend_path('LD_LIBRARY_PATH', | ||||
|                                  join_path(self.prefix, 'mpi', 'intel64', 'lib')) | ||||
|                                  join_path(self.prefix, 'mpi', 'intel64', | ||||
|                                            'lib')) | ||||
|             run_env.prepend_path('LIBRARY_PATH', | ||||
|                                  join_path(self.prefix, 'mpi', 'intel64', 'lib')) | ||||
|                                  join_path(self.prefix, 'mpi', 'intel64', | ||||
|                                            'lib')) | ||||
|             run_env.prepend_path('LD_LIBRARY_PATH', | ||||
|                                  join_path(self.prefix, 'mpi', 'mic', 'lib')) | ||||
|             run_env.prepend_path('MIC_LIBRARY_PATH', | ||||
| @@ -233,9 +236,11 @@ def setup_environment(self, spack_env, run_env): | ||||
|  | ||||
|         if self.spec.satisfies('+all') or self.spec.satisfies('+mkl'): | ||||
|             run_env.prepend_path('LD_LIBRARY_PATH', | ||||
|                                  join_path(self.prefix, 'mkl', 'lib', 'intel64')) | ||||
|                                  join_path(self.prefix, 'mkl', 'lib', | ||||
|                                            'intel64')) | ||||
|             run_env.prepend_path('LIBRARY_PATH', | ||||
|                                  join_path(self.prefix, 'mkl', 'lib', 'intel64')) | ||||
|                                  join_path(self.prefix, 'mkl', 'lib', | ||||
|                                            'intel64')) | ||||
|             run_env.prepend_path('CPATH', | ||||
|                                  join_path(self.prefix, 'mkl', 'include')) | ||||
|             run_env.prepend_path('MIC_LD_LIBRARY_PATH', | ||||
| @@ -258,12 +263,13 @@ def setup_environment(self, spack_env, run_env): | ||||
|  | ||||
|         if self.spec.satisfies('+all') or self.spec.satisfies('+ipp'): | ||||
|             run_env.prepend_path('LD_LIBRARY_PATH', | ||||
|                                  join_path(self.prefix, 'ipp', 'lib', 'intel64')) | ||||
|                                  join_path(self.prefix, 'ipp', 'lib', | ||||
|                                            'intel64')) | ||||
|             run_env.prepend_path('LIBRARY_PATH', | ||||
|                                  join_path(self.prefix, 'ipp', 'lib', 'intel64')) | ||||
|                                  join_path(self.prefix, 'ipp', 'lib', | ||||
|                                            'intel64')) | ||||
|             run_env.prepend_path('CPATH', | ||||
|                                  join_path(self.prefix, 'ipp', 'include')) | ||||
|             run_env.prepend_path('MIC_LD_LIBRARY_PATH', | ||||
|                                  join_path(self.prefix, 'ipp', 'lib', 'mic')) | ||||
|             run_env.set('IPPROOT', join_path(self.prefix, 'ipp')) | ||||
|  | ||||
|   | ||||
| @@ -106,8 +106,8 @@ def install(self, spec, prefix): | ||||
|             self.prefix.lib, "intel64", "libimf.a")))[0] | ||||
|  | ||||
|         # symlink or copy? | ||||
|         os.symlink(self.global_license_file, os.path.join(absbindir, | ||||
|                    "license.lic")) | ||||
|         os.symlink(self.global_license_file, | ||||
|                    os.path.join(absbindir, "license.lic")) | ||||
|  | ||||
|         if spec.satisfies('+rpath'): | ||||
|             for compiler_command in ["icc", "icpc", "ifort"]: | ||||
| @@ -150,4 +150,3 @@ def setup_environment(self, spack_env, run_env): | ||||
|                              join_path(self.prefix, 'tbb', 'lib', 'mic')) | ||||
|         run_env.prepend_path('MIC_LD_LIBRARY_PATH', | ||||
|                              join_path(self.prefix, 'tbb', 'lib', 'mic')) | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Glenn Johnson
					Glenn Johnson