Skip to content

Commit 1e48867

Browse files
author
Charles PIGNEROL
committed
omniorb working with python 3 recipe .
1 parent c98c806 commit 1e48867

File tree

1 file changed

+18
-16
lines changed

1 file changed

+18
-16
lines changed

meshing_supersede/packages/omniorb-anl/package.py

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -40,37 +40,39 @@
4040
from spack import *
4141

4242
#
43-
# omniORB 4.1.7 de ATT tres legerement retouche pour qu'il puisse s'installe dans
43+
# omniORB 4.1.7 de ATT tres legerement retouche pour qu'il puisse s'installe dans
4444
# un environnement spack (de base il y a un probleme de shebang ...)
4545
#
46+
47+
4648
class OmniorbAnl(AutotoolsPackage):
4749
"""ORB de ATT"""
4850

49-
homepage = ""
50-
url = "omniorb-anl-4.1.7.tar.gz"
51+
homepage = ""
52+
url = "omniorb-anl-4.1.7.tar.gz"
5153
maintainers = ['meshing_team']
5254
version('4.1.7', sha256='3f42d97cb0344afb25c3b203ec874ad3d2ea944ea75a16bcb5e084c66273691d')
5355
version('4.3.0.1', sha256="9a33c5ba83f3c8a0fc5e7f30ad10acea9923b1787c50feb6c0b20cbee64f8e85")
5456

55-
# On a besoin de 2.7 <= python < 3.0.0 :
57+
# On a besoin de 2.7 <= python < 3.0.0 :
5658
depends_on('python', type=('build', 'link', 'run'))
5759

5860
def configure_args(self):
5961
# FIXME: Add arguments other than --prefix
6062
# FIXME: If not needed delete this function
61-
args = []
62-
py = self.spec['python']
63-
args.append (f'PYTHON={py.command.path}')
64-
if self.spec.satisfies ('@4.2.99:') :
65-
args.append ('CXXFLAGS=-std=c++11')
66-
63+
args = []
64+
py = self.spec['python']
65+
args.append(f'PYTHON={py.command.path}')
66+
if self.spec.satisfies('@4.2.99:'):
67+
args.append('CXXFLAGS=-std=c++11')
68+
6769
return args
6870

6971
# Positionnement de l'environnement PYTHON nécéssaire sous RedHat 7/Spack Organizer master 200923
70-
def setup_build_environment (self, env):
71-
py = self.spec['python']
72-
env.set ('PYTHON', py.command.path)
72+
def setup_build_environment(self, env):
73+
py = self.spec['python']
74+
env.set('PYTHON', py.command.path)
7375

74-
def setup_run_environment (self, env):
75-
py = self.spec['python']
76-
env.set ('PYTHON', py.command.path)
76+
def setup_run_environment(self, env):
77+
py = self.spec['python']
78+
env.set('PYTHON', py.command.path)

0 commit comments

Comments
 (0)