Skip to content

Commit

Permalink
omniorb working with python 3 recipe .
Browse files Browse the repository at this point in the history
  • Loading branch information
Charles PIGNEROL committed Oct 4, 2024
1 parent b7d4819 commit c98c806
Showing 1 changed file with 22 additions and 11 deletions.
33 changes: 22 additions & 11 deletions meshing_supersede/packages/omniorb-anl/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,27 +39,38 @@
#
from spack import *


#
# omniORB 4.1.7 de ATT tres legerement retouche pour qu'il puisse s'installe dans
# omniORB 4.1.7 de ATT tres legerement retouche pour qu'il puisse s'installe dans
# un environnement spack (de base il y a un probleme de shebang ...)
#
class OmniorbAnl(AutotoolsPackage):
"""ORB de ATT"""

homepage = ""
url = "omniorb-anl-4.1.7.tar.gz"
homepage = ""
url = "omniorb-anl-4.1.7.tar.gz"
maintainers = ['meshing_team']
version('4.1.7', sha256='3f42d97cb0344afb25c3b203ec874ad3d2ea944ea75a16bcb5e084c66273691d')
version('4.3.0')
version('4.3.0.1', sha256="9a33c5ba83f3c8a0fc5e7f30ad10acea9923b1787c50feb6c0b20cbee64f8e85")

# On a besoin de 2.7 <= python < 3.0.0 :
# depends_on('python@2.7:', type=('link'))
# depends_on('python@:2.7.16', type=('build', 'link'))
depends_on('python@:2.7.16', type='run', when="@:4.2.99")
depends_on('python@3:', type='run', when="@4.3.0:")
# On a besoin de 2.7 <= python < 3.0.0 :
depends_on('python', type=('build', 'link', 'run'))

def configure_args(self):
# FIXME: Add arguments other than --prefix
# FIXME: If not needed delete this function
args = []
args = []
py = self.spec['python']
args.append (f'PYTHON={py.command.path}')
if self.spec.satisfies ('@4.2.99:') :
args.append ('CXXFLAGS=-std=c++11')

return args

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

def setup_run_environment (self, env):
py = self.spec['python']
env.set ('PYTHON', py.command.path)

0 comments on commit c98c806

Please sign in to comment.